1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0
2 /*******************************************************************************
4 * Module Name: dbinput - user front-end to the AML debugger
6 ******************************************************************************/
12 #ifdef ACPI_APPLICATION
16 #define _COMPONENT ACPI_CA_DEBUGGER
17 ACPI_MODULE_NAME("dbinput")
19 /* Local prototypes */
20 static u32 acpi_db_get_line(char *input_buffer);
22 static u32 acpi_db_match_command(char *user_command);
24 static void acpi_db_display_command_info(const char *command, u8 display_all);
26 static void acpi_db_display_help(char *command);
29 acpi_db_match_command_help(const char *command,
30 const struct acpi_db_command_help *help);
33 * Top-level debugger commands.
35 * This list of commands must match the string table below it
37 enum acpi_ex_debugger_commands {
90 #ifdef ACPI_APPLICATION
111 #define CMD_FIRST_VALID 2
113 /* Second parameter is the required argument count */
115 static const struct acpi_db_command_info acpi_gbl_db_commands[] = {
168 #ifdef ACPI_APPLICATION
191 * Help for all debugger commands. First argument is the number of lines
192 * of help to output for the command.
194 * Note: Some commands are not supported by the kernel-level version of
197 static const struct acpi_db_command_help acpi_gbl_db_command_help[] = {
198 {0, "\nNamespace Access:", "\n"},
199 {1, " Businfo", "Display system bus info\n"},
200 {1, " Disassemble <Method>", "Disassemble a control method\n"},
201 {1, " Find <AcpiName> (? is wildcard)",
202 "Find ACPI name(s) with wildcards\n"},
203 {1, " Integrity", "Validate namespace integrity\n"},
204 {1, " Methods", "Display list of loaded control methods\n"},
205 {1, " Fields <AddressSpaceId>",
206 "Display list of loaded field units by space ID\n"},
207 {1, " Namespace [Object] [Depth]",
208 "Display loaded namespace tree/subtree\n"},
209 {1, " Notify <Object> <Value>", "Send a notification on Object\n"},
210 {1, " Objects [ObjectType]",
211 "Display summary of all objects or just given type\n"},
212 {1, " Owner <OwnerId> [Depth]",
213 "Display loaded namespace by object owner\n"},
214 {1, " Paths", "Display full pathnames of namespace objects\n"},
215 {1, " Predefined", "Check all predefined names\n"},
216 {1, " Prefix [<Namepath>]", "Set or Get current execution prefix\n"},
217 {1, " References <Addr>", "Find all references to object at addr\n"},
218 {1, " Resources [DeviceName]",
219 "Display Device resources (no arg = all devices)\n"},
220 {1, " Set N <NamedObject> <Value>", "Set value for named integer\n"},
221 {1, " Template <Object>", "Format/dump a Buffer/ResourceTemplate\n"},
222 {1, " Type <Object>", "Display object type\n"},
224 {0, "\nControl Method Execution:", "\n"},
225 {1, " Evaluate <Namepath> [Arguments]",
226 "Evaluate object or control method\n"},
227 {1, " Execute <Namepath> [Arguments]", "Synonym for Evaluate\n"},
228 #ifdef ACPI_APPLICATION
229 {1, " Background <Namepath> [Arguments]",
230 "Evaluate object/method in a separate thread\n"},
231 {1, " Thread <Threads><Loops><NamePath>",
232 "Spawn threads to execute method(s)\n"},
234 {1, " Debug <Namepath> [Arguments]", "Single-Step a control method\n"},
235 {7, " [Arguments] formats:", "Control method argument formats\n"},
236 {1, " Hex Integer", "Integer\n"},
237 {1, " \"Ascii String\"", "String\n"},
238 {1, " (Hex Byte List)", "Buffer\n"},
239 {1, " (01 42 7A BF)", "Buffer example (4 bytes)\n"},
240 {1, " [Package Element List]", "Package\n"},
241 {1, " [0x01 0x1234 \"string\"]",
242 "Package example (3 elements)\n"},
244 {0, "\nMiscellaneous:", "\n"},
245 {1, " Allocations", "Display list of current memory allocations\n"},
246 {2, " Dump <Address>|<Namepath>", "\n"},
247 {0, " [Byte|Word|Dword|Qword]",
248 "Display ACPI objects or memory\n"},
249 {1, " Handlers", "Info about global handlers\n"},
250 {1, " Help [Command]", "This help screen or individual command\n"},
251 {1, " History", "Display command history buffer\n"},
252 {1, " Level <DebugLevel>] [console]",
253 "Get/Set debug level for file or console\n"},
254 {1, " Locks", "Current status of internal mutexes\n"},
255 {1, " Osi [Install|Remove <name>]",
256 "Display or modify global _OSI list\n"},
257 {1, " Quit or Exit", "Exit this command\n"},
258 {8, " Stats <SubCommand>",
259 "Display namespace and memory statistics\n"},
260 {1, " Allocations", "Display list of current memory allocations\n"},
261 {1, " Memory", "Dump internal memory lists\n"},
262 {1, " Misc", "Namespace search and mutex stats\n"},
263 {1, " Objects", "Summary of namespace objects\n"},
264 {1, " Sizes", "Sizes for each of the internal objects\n"},
265 {1, " Stack", "Display CPU stack usage\n"},
266 {1, " Tables", "Info about current ACPI table(s)\n"},
267 {1, " Tables", "Display info about loaded ACPI tables\n"},
268 #ifdef ACPI_APPLICATION
269 {1, " Terminate", "Delete namespace and all internal objects\n"},
271 {1, " ! <CommandNumber>", "Execute command from history buffer\n"},
272 {1, " !!", "Execute last command again\n"},
274 {0, "\nMethod and Namespace Debugging:", "\n"},
275 {5, " Trace <State> [<Namepath>] [Once]",
276 "Trace control method execution\n"},
277 {1, " Enable", "Enable all messages\n"},
278 {1, " Disable", "Disable tracing\n"},
279 {1, " Method", "Enable method execution messages\n"},
280 {1, " Opcode", "Enable opcode execution messages\n"},
281 {3, " Test <TestName>", "Invoke a debug test\n"},
282 {1, " Objects", "Read/write/compare all namespace data objects\n"},
284 "Validate all ACPI predefined names (_STA, etc.)\n"},
285 {1, " Execute predefined",
286 "Execute all predefined (public) methods\n"},
288 {0, "\nControl Method Single-Step Execution:", "\n"},
289 {1, " Arguments (or Args)", "Display method arguments\n"},
290 {1, " Breakpoint <AmlOffset>", "Set an AML execution breakpoint\n"},
291 {1, " Call", "Run to next control method invocation\n"},
292 {1, " Go", "Allow method to run to completion\n"},
293 {1, " Information", "Display info about the current method\n"},
294 {1, " Into", "Step into (not over) a method call\n"},
295 {1, " List [# of Aml Opcodes]", "Display method ASL statements\n"},
296 {1, " Locals", "Display method local variables\n"},
297 {1, " Results", "Display method result stack\n"},
298 {1, " Set <A|L> <#> <Value>", "Set method data (Arguments/Locals)\n"},
299 {1, " Stop", "Terminate control method\n"},
300 {1, " Tree", "Display control method calling tree\n"},
301 {1, " <Enter>", "Single step next AML opcode (over calls)\n"},
303 #ifdef ACPI_APPLICATION
304 {0, "\nFile Operations:", "\n"},
305 {1, " Close", "Close debug output file\n"},
306 {1, " Load <Input Filename>", "Load ACPI table from a file\n"},
307 {1, " Open <Output Filename>", "Open a file for debug output\n"},
308 {1, " Unload <Namepath>",
309 "Unload an ACPI table via namespace object\n"},
311 {0, "\nHardware Simulation:", "\n"},
312 {1, " EnableAcpi", "Enable ACPI (hardware) mode\n"},
313 {1, " Event <F|G> <Value>", "Generate AcpiEvent (Fixed/GPE)\n"},
314 {1, " Gpe <GpeNum> [GpeBlockDevice]", "Simulate a GPE\n"},
315 {1, " Gpes", "Display info on all GPE devices\n"},
316 {1, " Sci", "Generate an SCI\n"},
317 {1, " Sleep [SleepState]", "Simulate sleep/wake sequence(s) (0-5)\n"},
322 /*******************************************************************************
324 * FUNCTION: acpi_db_match_command_help
326 * PARAMETERS: command - Command string to match
327 * help - Help table entry to attempt match
329 * RETURN: TRUE if command matched, FALSE otherwise
331 * DESCRIPTION: Attempt to match a command in the help table in order to
332 * print help information for a single command.
334 ******************************************************************************/
337 acpi_db_match_command_help(const char *command,
338 const struct acpi_db_command_help *help)
340 char *invocation = help->invocation;
343 /* Valid commands in the help table begin with a couple of spaces */
345 if (*invocation != ' ') {
349 while (*invocation == ' ') {
353 /* Match command name (full command or substring) */
355 while ((*command) && (*invocation) && (*invocation != ' ')) {
356 if (tolower((int)*command) != tolower((int)*invocation)) {
364 /* Print the appropriate number of help lines */
366 line_count = help->line_count;
368 acpi_os_printf("%-38s : %s", help->invocation,
377 /*******************************************************************************
379 * FUNCTION: acpi_db_display_command_info
381 * PARAMETERS: command - Command string to match
382 * display_all - Display all matching commands, or just
383 * the first one (substring match)
387 * DESCRIPTION: Display help information for a Debugger command.
389 ******************************************************************************/
391 static void acpi_db_display_command_info(const char *command, u8 display_all)
393 const struct acpi_db_command_help *next;
396 next = acpi_gbl_db_command_help;
397 while (next->invocation) {
398 matched = acpi_db_match_command_help(command, next);
399 if (!display_all && matched) {
407 /*******************************************************************************
409 * FUNCTION: acpi_db_display_help
411 * PARAMETERS: command - Optional command string to display help.
412 * if not specified, all debugger command
413 * help strings are displayed
417 * DESCRIPTION: Display help for a single debugger command, or all of them.
419 ******************************************************************************/
421 static void acpi_db_display_help(char *command)
423 const struct acpi_db_command_help *next = acpi_gbl_db_command_help;
427 /* No argument to help, display help for all commands */
429 acpi_os_printf("\nSummary of AML Debugger Commands\n\n");
431 while (next->invocation) {
432 acpi_os_printf("%-38s%s", next->invocation,
436 acpi_os_printf("\n");
439 /* Display help for all commands that match the subtring */
441 acpi_db_display_command_info(command, TRUE);
445 /*******************************************************************************
447 * FUNCTION: acpi_db_get_next_token
449 * PARAMETERS: string - Command buffer
450 * next - Return value, end of next token
452 * RETURN: Pointer to the start of the next token.
454 * DESCRIPTION: Command line parsing. Get the next token on the command line
456 ******************************************************************************/
458 char *acpi_db_get_next_token(char *string,
459 char **next, acpi_object_type *return_type)
463 acpi_object_type type = ACPI_TYPE_INTEGER;
465 /* At end of buffer? */
467 if (!string || !(*string)) {
471 /* Remove any spaces at the beginning, ignore blank lines */
473 while (*string && isspace(*string)) {
484 /* This is a quoted string, scan until closing quote */
488 type = ACPI_TYPE_STRING;
490 /* Find end of string */
492 while (*string && (*string != '"')) {
499 /* This is the start of a buffer, scan until closing paren */
503 type = ACPI_TYPE_BUFFER;
505 /* Find end of buffer */
507 while (*string && (*string != ')')) {
514 /* This is the start of a field unit, scan until closing brace */
518 type = ACPI_TYPE_FIELD_UNIT;
520 /* Find end of buffer */
522 while (*string && (*string != '}')) {
529 /* This is the start of a package, scan until closing bracket */
534 type = ACPI_TYPE_PACKAGE;
536 /* Find end of package (closing bracket) */
540 /* Handle String package elements */
542 if (*string == '"') {
543 /* Find end of string */
546 while (*string && (*string != '"')) {
552 } else if (*string == '[') {
553 depth++; /* A nested package declaration */
554 } else if (*string == ']') {
556 if (depth == 0) { /* Found final package closing bracket */
569 /* Find end of token */
571 while (*string && !isspace(*string)) {
588 /*******************************************************************************
590 * FUNCTION: acpi_db_get_line
592 * PARAMETERS: input_buffer - Command line buffer
594 * RETURN: Count of arguments to the command
596 * DESCRIPTION: Get the next command line from the user. Gets entire line
597 * up to the next newline
599 ******************************************************************************/
601 static u32 acpi_db_get_line(char *input_buffer)
608 if (acpi_ut_safe_strcpy
609 (acpi_gbl_db_parsed_buf, sizeof(acpi_gbl_db_parsed_buf),
612 ("Buffer overflow while parsing input line (max %u characters)\n",
613 (u32)sizeof(acpi_gbl_db_parsed_buf));
617 this = acpi_gbl_db_parsed_buf;
618 for (i = 0; i < ACPI_DEBUGGER_MAX_ARGS; i++) {
619 acpi_gbl_db_args[i] = acpi_db_get_next_token(this, &next,
620 &acpi_gbl_db_arg_types
622 if (!acpi_gbl_db_args[i]) {
629 /* Uppercase the actual command */
631 acpi_ut_strupr(acpi_gbl_db_args[0]);
635 count--; /* Number of args only */
641 /*******************************************************************************
643 * FUNCTION: acpi_db_match_command
645 * PARAMETERS: user_command - User command line
647 * RETURN: Index into command array, -1 if not found
649 * DESCRIPTION: Search command array for a command match
651 ******************************************************************************/
653 static u32 acpi_db_match_command(char *user_command)
657 if (!user_command || user_command[0] == 0) {
661 for (i = CMD_FIRST_VALID; acpi_gbl_db_commands[i].name; i++) {
663 (ACPI_CAST_PTR(char, acpi_gbl_db_commands[i].name),
664 user_command) == acpi_gbl_db_commands[i].name) {
669 /* Command not recognized */
671 return (CMD_NOT_FOUND);
674 /*******************************************************************************
676 * FUNCTION: acpi_db_command_dispatch
678 * PARAMETERS: input_buffer - Command line buffer
679 * walk_state - Current walk
680 * op - Current (executing) parse op
684 * DESCRIPTION: Command dispatcher.
686 ******************************************************************************/
689 acpi_db_command_dispatch(char *input_buffer,
690 struct acpi_walk_state *walk_state,
691 union acpi_parse_object *op)
698 acpi_status status = AE_CTRL_TRUE;
700 /* If acpi_terminate has been called, terminate this thread */
702 if (acpi_gbl_db_terminate_loop) {
703 return (AE_CTRL_TERMINATE);
706 /* Find command and add to the history buffer */
708 param_count = acpi_db_get_line(input_buffer);
709 command_index = acpi_db_match_command(acpi_gbl_db_args[0]);
712 * We don't want to add the !! command to the history buffer. It
713 * would cause an infinite loop because it would always be the
716 if (command_index != CMD_HISTORY_LAST) {
717 acpi_db_add_to_history(input_buffer);
720 /* Verify that we have the minimum number of params */
722 if (param_count < acpi_gbl_db_commands[command_index].min_args) {
724 ("%u parameters entered, [%s] requires %u parameters\n",
725 param_count, acpi_gbl_db_commands[command_index].name,
726 acpi_gbl_db_commands[command_index].min_args);
728 acpi_db_display_command_info(acpi_gbl_db_commands
729 [command_index].name, FALSE);
730 return (AE_CTRL_TRUE);
733 /* Decode and dispatch the command */
735 switch (command_index) {
743 case CMD_ALLOCATIONS:
745 #ifdef ACPI_DBG_TRACK_ALLOCATIONS
746 acpi_ut_dump_allocations((u32)-1, NULL);
753 acpi_db_display_arguments();
758 acpi_db_set_method_breakpoint(acpi_gbl_db_args[1], walk_state,
764 acpi_db_get_bus_info();
769 acpi_db_set_method_call_breakpoint(op);
775 acpi_db_execute(acpi_gbl_db_args[1],
776 &acpi_gbl_db_args[2], &acpi_gbl_db_arg_types[2],
780 case CMD_DISASSEMBLE:
783 #ifdef ACPI_DISASSEMBLER
784 (void)acpi_db_disassemble_method(acpi_gbl_db_args[1]);
787 ("The AML Disassembler is not configured/present\n");
793 acpi_db_decode_and_display_object(acpi_gbl_db_args[1],
794 acpi_gbl_db_args[2]);
800 acpi_db_execute(acpi_gbl_db_args[1],
801 &acpi_gbl_db_args[2], &acpi_gbl_db_arg_types[2],
807 status = acpi_db_find_name_in_namespace(acpi_gbl_db_args[1]);
812 status = acpi_ut_strtoul64(acpi_gbl_db_args[1], &temp64);
814 if (ACPI_FAILURE(status)
815 || temp64 >= ACPI_NUM_PREDEFINED_REGIONS) {
817 ("Invalid address space ID: must be between 0 and %u inclusive\n",
818 ACPI_NUM_PREDEFINED_REGIONS - 1);
822 status = acpi_db_display_fields((u32)temp64);
827 acpi_gbl_cm_single_step = FALSE;
832 acpi_db_display_handlers();
838 acpi_db_display_help(acpi_gbl_db_args[1]);
843 acpi_db_display_history();
846 case CMD_HISTORY_EXE: /* ! command */
848 command_line = acpi_db_get_from_history(acpi_gbl_db_args[1]);
850 return (AE_CTRL_TRUE);
853 status = acpi_db_command_dispatch(command_line, walk_state, op);
856 case CMD_HISTORY_LAST: /* !! command */
858 command_line = acpi_db_get_from_history(NULL);
860 return (AE_CTRL_TRUE);
863 status = acpi_db_command_dispatch(command_line, walk_state, op);
866 case CMD_INFORMATION:
868 acpi_db_display_method_info(op);
873 acpi_db_check_integrity();
879 acpi_gbl_cm_single_step = TRUE;
886 if (param_count == 0) {
888 ("Current debug level for file output is: %8.8X\n",
889 acpi_gbl_db_debug_level);
891 ("Current debug level for console output is: %8.8X\n",
892 acpi_gbl_db_console_debug_level);
893 } else if (param_count == 2) {
894 temp = acpi_gbl_db_console_debug_level;
895 acpi_gbl_db_console_debug_level =
896 strtoul(acpi_gbl_db_args[1], NULL, 16);
898 ("Debug Level for console output was %8.8X, now %8.8X\n",
899 temp, acpi_gbl_db_console_debug_level);
901 temp = acpi_gbl_db_debug_level;
902 acpi_gbl_db_debug_level =
903 strtoul(acpi_gbl_db_args[1], NULL, 16);
905 ("Debug Level for file output was %8.8X, now %8.8X\n",
906 temp, acpi_gbl_db_debug_level);
912 #ifdef ACPI_DISASSEMBLER
913 acpi_db_disassemble_aml(acpi_gbl_db_args[1], op);
916 ("The AML Disassembler is not configured/present\n");
922 acpi_db_display_locks();
927 acpi_db_display_locals();
932 status = acpi_db_display_objects("METHOD", acpi_gbl_db_args[1]);
937 acpi_db_dump_namespace(acpi_gbl_db_args[1],
938 acpi_gbl_db_args[2]);
943 temp = strtoul(acpi_gbl_db_args[2], NULL, 0);
944 acpi_db_send_notify(acpi_gbl_db_args[1], temp);
949 acpi_ut_strupr(acpi_gbl_db_args[1]);
951 acpi_db_display_objects(acpi_gbl_db_args[1],
952 acpi_gbl_db_args[2]);
957 acpi_db_display_interfaces(acpi_gbl_db_args[1],
958 acpi_gbl_db_args[2]);
963 acpi_db_dump_namespace_by_owner(acpi_gbl_db_args[1],
964 acpi_gbl_db_args[2]);
969 acpi_db_dump_namespace_paths();
974 acpi_db_set_scope(acpi_gbl_db_args[1]);
979 acpi_db_find_references(acpi_gbl_db_args[1]);
984 acpi_db_display_resources(acpi_gbl_db_args[1]);
989 acpi_db_display_results();
994 acpi_db_set_method_data(acpi_gbl_db_args[1],
996 acpi_gbl_db_args[3]);
1001 status = acpi_db_display_statistics(acpi_gbl_db_args[1]);
1006 return (AE_NOT_IMPLEMENTED);
1010 acpi_db_display_table_info(acpi_gbl_db_args[1]);
1015 acpi_db_display_template(acpi_gbl_db_args[1]);
1020 acpi_db_trace(acpi_gbl_db_args[1], acpi_gbl_db_args[2],
1021 acpi_gbl_db_args[3]);
1026 acpi_db_display_calling_tree();
1031 acpi_db_display_object_type(acpi_gbl_db_args[1]);
1034 #ifdef ACPI_APPLICATION
1036 /* Hardware simulation commands. */
1038 case CMD_ENABLEACPI:
1039 #if (!ACPI_REDUCED_HARDWARE)
1041 status = acpi_enable();
1042 if (ACPI_FAILURE(status)) {
1043 acpi_os_printf("AcpiEnable failed (Status=%X)\n",
1047 #endif /* !ACPI_REDUCED_HARDWARE */
1052 acpi_os_printf("Event command not implemented\n");
1057 acpi_db_generate_gpe(acpi_gbl_db_args[1], acpi_gbl_db_args[2]);
1062 acpi_db_display_gpes();
1067 acpi_db_generate_sci();
1072 status = acpi_db_sleep(acpi_gbl_db_args[1]);
1075 /* File I/O commands. */
1079 acpi_db_close_debug_file();
1083 struct acpi_new_table_desc *list_head = NULL;
1086 ac_get_all_tables_from_file(acpi_gbl_db_args[1],
1087 ACPI_GET_ALL_TABLES,
1089 if (ACPI_SUCCESS(status)) {
1090 acpi_db_load_tables(list_head);
1097 acpi_db_open_debug_file(acpi_gbl_db_args[1]);
1100 /* User space commands. */
1104 acpi_db_set_output_destination(ACPI_DB_REDIRECTABLE_OUTPUT);
1105 acpi_ut_subsystem_shutdown();
1108 * TBD: [Restructure] Need some way to re-initialize without
1109 * re-creating the semaphores!
1112 acpi_gbl_db_terminate_loop = TRUE;
1113 /* acpi_initialize (NULL); */
1116 case CMD_BACKGROUND:
1118 acpi_db_create_execution_thread(acpi_gbl_db_args[1],
1119 &acpi_gbl_db_args[2],
1120 &acpi_gbl_db_arg_types[2]);
1125 acpi_db_create_execution_threads(acpi_gbl_db_args[1],
1126 acpi_gbl_db_args[2],
1127 acpi_gbl_db_args[3]);
1130 /* Debug test commands. */
1132 case CMD_PREDEFINED:
1134 acpi_db_check_predefined_names();
1139 acpi_db_execute_test(acpi_gbl_db_args[1]);
1144 acpi_db_unload_acpi_table(acpi_gbl_db_args[1]);
1152 acpi_os_printf("Method execution terminated\n");
1153 return (AE_CTRL_TERMINATE);
1156 if (!acpi_gbl_db_output_to_file) {
1157 acpi_dbg_level = ACPI_DEBUG_DEFAULT;
1159 #ifdef ACPI_APPLICATION
1160 acpi_db_close_debug_file();
1162 acpi_gbl_db_terminate_loop = TRUE;
1163 return (AE_CTRL_TERMINATE);
1168 acpi_os_printf("%s: unknown command\n", acpi_gbl_db_args[0]);
1169 return (AE_CTRL_TRUE);
1172 if (ACPI_SUCCESS(status)) {
1173 status = AE_CTRL_TRUE;
1179 /*******************************************************************************
1181 * FUNCTION: acpi_db_execute_thread
1183 * PARAMETERS: context - Not used
1187 * DESCRIPTION: Debugger execute thread. Waits for a command line, then
1188 * simply dispatches it.
1190 ******************************************************************************/
1192 void ACPI_SYSTEM_XFACE acpi_db_execute_thread(void *context)
1195 (void)acpi_db_user_commands();
1196 acpi_gbl_db_threads_terminated = TRUE;
1199 /*******************************************************************************
1201 * FUNCTION: acpi_db_user_commands
1207 * DESCRIPTION: Command line execution for the AML debugger. Commands are
1208 * matched and dispatched here.
1210 ******************************************************************************/
1212 acpi_status acpi_db_user_commands(void)
1214 acpi_status status = AE_OK;
1216 acpi_os_printf("\n");
1218 /* TBD: [Restructure] Need a separate command line buffer for step mode */
1220 while (!acpi_gbl_db_terminate_loop) {
1222 /* Wait the readiness of the command */
1224 status = acpi_os_wait_command_ready();
1225 if (ACPI_FAILURE(status)) {
1229 /* Just call to the command line interpreter */
1231 acpi_gbl_method_executing = FALSE;
1232 acpi_gbl_step_to_next_call = FALSE;
1234 (void)acpi_db_command_dispatch(acpi_gbl_db_line_buf, NULL,
1237 /* Notify the completion of the command */
1239 status = acpi_os_notify_command_complete();
1240 if (ACPI_FAILURE(status)) {
1245 if (ACPI_FAILURE(status) && status != AE_CTRL_TERMINATE) {
1246 ACPI_EXCEPTION((AE_INFO, status, "While parsing command line"));