mirror of https://github.com/acidanthera/audk.git
Remove unneeded space in sym output to make sure the output is RVD compatible.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10149 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
61e299aa7c
commit
b8758b6e6f
|
@ -63,7 +63,8 @@ EblSymbolTable (
|
||||||
BOOLEAN Elf;
|
BOOLEAN Elf;
|
||||||
|
|
||||||
// Need to add lots of error checking on the passed in string
|
// Need to add lots of error checking on the passed in string
|
||||||
Format = (Argc > 1) ? Argv[1] : "load /a /ni /np %a & 0x%x";
|
// Default string is for RealView debugger
|
||||||
|
Format = (Argc > 1) ? Argv[1] : "load /a /ni /np %a &0x%x";
|
||||||
Elf = (Argc > 2) ? FALSE : TRUE;
|
Elf = (Argc > 2) ? FALSE : TRUE;
|
||||||
|
|
||||||
Status = EfiGetSystemConfigurationTable (&gEfiDebugImageInfoTableGuid, (VOID **)&DebugImageTableHeader);
|
Status = EfiGetSystemConfigurationTable (&gEfiDebugImageInfoTableGuid, (VOID **)&DebugImageTableHeader);
|
||||||
|
@ -82,12 +83,15 @@ EblSymbolTable (
|
||||||
ImageBase = (UINT32)DebugTable->NormalImage->LoadedImageProtocolInstance->ImageBase;
|
ImageBase = (UINT32)DebugTable->NormalImage->LoadedImageProtocolInstance->ImageBase;
|
||||||
PeCoffSizeOfHeaders = PeCoffGetSizeOfHeaders ((VOID *)(UINTN)ImageBase);
|
PeCoffSizeOfHeaders = PeCoffGetSizeOfHeaders ((VOID *)(UINTN)ImageBase);
|
||||||
Pdb = PeCoffLoaderGetPdbPointer (DebugTable->NormalImage->LoadedImageProtocolInstance->ImageBase);
|
Pdb = PeCoffLoaderGetPdbPointer (DebugTable->NormalImage->LoadedImageProtocolInstance->ImageBase);
|
||||||
if (Elf) {
|
if (Pdb != NULL) {
|
||||||
// ELF and Mach-O images don't include the header so the linked address does not include header
|
if (Elf) {
|
||||||
ImageBase += PeCoffSizeOfHeaders;
|
// ELF and Mach-O images don't include the header so the linked address does not include header
|
||||||
}
|
ImageBase += PeCoffSizeOfHeaders;
|
||||||
AsciiPrint (Format, Pdb, ImageBase);
|
}
|
||||||
AsciiPrint ("\n");
|
AsciiPrint (Format, Pdb, ImageBase);
|
||||||
|
AsciiPrint ("\n");
|
||||||
|
} else {
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -151,7 +155,7 @@ GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mLibCmdTemplate[] =
|
||||||
EblDisassembler
|
EblDisassembler
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"symboltable [\"format string\"] [TRUE]",
|
"symboltable [\"format string\"] [PECOFF]",
|
||||||
" show symbol table commands for debugger",
|
" show symbol table commands for debugger",
|
||||||
NULL,
|
NULL,
|
||||||
EblSymbolTable
|
EblSymbolTable
|
||||||
|
|
Loading…
Reference in New Issue