Disassembler: For debug case, emit final namespace.

Remove a #ifdef, and emit the final namespace if the compiler
debug switch is enabled.
This commit is contained in:
Robert Moore 2011-12-22 14:06:21 -08:00
parent 6a4059907d
commit 9ed5b0f353

View File

@ -527,7 +527,7 @@ AdAmlDisassemble (
Status = AcpiNsRootInitialize ();
AcpiDmAddExternalsToNamespace ();
/* Parse table. No need to reload it, however */
/* Parse the table again. No need to reload it, however */
Status = AdParseTable (Table, NULL, FALSE, FALSE);
if (ACPI_FAILURE (Status))
@ -582,11 +582,12 @@ Cleanup:
if (OutToFile && File)
{
if (AslCompilerdebug) /* Display final namespace, with transforms */
{
LsSetupNsList (File);
LsDisplayNamespace ();
}
#ifdef ASL_DISASM_DEBUG
LsSetupNsList (File);
LsDisplayNamespace ();
#endif
fclose (File);
AcpiOsRedirectOutput (stdout);
}