ACPICA: Debugger: Cleanup interface to the AML disassembler
If the disassembler is configured out (such as when the debugger is part of a kernel), these debugger commands are disabled: List Disassemble Further, the Debug (single-step) command is simplified because each line of code cannot be disassembled. Reported-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Bob Moore <robert.moore@intel.com> Signed-off-by: Erik Schmauss <erik.schmauss@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
这个提交包含在:
@@ -763,7 +763,12 @@ acpi_db_command_dispatch(char *input_buffer,
|
||||
case CMD_DISASSEMBLE:
|
||||
case CMD_DISASM:
|
||||
|
||||
#ifdef ACPI_DISASSEMBLER
|
||||
(void)acpi_db_disassemble_method(acpi_gbl_db_args[1]);
|
||||
#else
|
||||
acpi_os_printf
|
||||
("The AML Disassembler is not configured/present\n");
|
||||
#endif
|
||||
break;
|
||||
|
||||
case CMD_DUMP:
|
||||
@@ -872,7 +877,12 @@ acpi_db_command_dispatch(char *input_buffer,
|
||||
|
||||
case CMD_LIST:
|
||||
|
||||
#ifdef ACPI_DISASSEMBLER
|
||||
acpi_db_disassemble_aml(acpi_gbl_db_args[1], op);
|
||||
#else
|
||||
acpi_os_printf
|
||||
("The AML Disassembler is not configured/present\n");
|
||||
#endif
|
||||
break;
|
||||
|
||||
case CMD_LOCKS:
|
||||
|
在新工单中引用
屏蔽一个用户