On Wed, Jan 13, 2016 at 2:49 PM, Moore, Robert <robert.moore@xxxxxxxxx> wrote: > > >> -----Original Message----- >> From: Andy Lutomirski [mailto:luto@xxxxxxxxxxxxxx] >> Sent: Wednesday, January 13, 2016 2:32 PM >> To: Zheng, Lv >> Cc: Andy Lutomirski; Rafael J. Wysocki; Linux ACPI; Moore, Robert >> Subject: Re: ACPICA serialized objects? >> >> >> I finally had some time to play with the ACPI debugger, and it's >> fantastic. Thanks! >> >> One minor feature request: have you considered adding readline or libedit >> support? > > We actually have "readline" style support in at least acpiexec (which uses > The AML debugger): > > /****************************************************************************** > * > * FUNCTION: OsEnterLineEditMode, OsExitLineEditMode > * > * PARAMETERS: None > * > * RETURN: None > * > * DESCRIPTION: Enter/Exit the raw character input mode for the terminal. > * > * Interactive line-editing support for the AML debugger. Used with the > * common/acgetline module. > * > * readline() is not used because of non-portability. It is not available > * on all systems, and if it is, often the package must be manually installed. > * > * Therefore, we use the POSIX tcgetattr/tcsetattr and do the minimal line > * editing that we need in AcpiOsGetLine. > * > * If the POSIX tcgetattr/tcsetattr interfaces are unavailable, these > * calls will also work: > * For OsEnterLineEditMode: system ("stty cbreak -echo") > * For OsExitLineEditMode: system ("stty cooked echo") > * > *****************************************************************************/ > acpiexec can't see into NVS though, I assume, which I imagine prevents it from being very useful to debug my laptop, which seems to stick all kinds of interesting things in NVS. Anyway, could acpidbg do the same thing? --Andy -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html