mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 21:05:43 +00:00
[ROSSYM]
- Properly handle images without debug symbols. svn path=/branches/cmake-bringup/; revision=50571
This commit is contained in:
parent
96abfd1223
commit
c2e1cbdff3
1 changed files with 7 additions and 0 deletions
|
@ -67,6 +67,13 @@ RosSymCreateFromFile(PVOID FileContext, PROSSYM_INFO *RosSymInfo)
|
||||||
|
|
||||||
SymbolTable = NtHeaders.FileHeader.PointerToSymbolTable;
|
SymbolTable = NtHeaders.FileHeader.PointerToSymbolTable;
|
||||||
NumSymbols = NtHeaders.FileHeader.NumberOfSymbols;
|
NumSymbols = NtHeaders.FileHeader.NumberOfSymbols;
|
||||||
|
|
||||||
|
if (!NumSymbols)
|
||||||
|
{
|
||||||
|
DPRINT1("Image doesn't have debug symbols\n");
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
DPRINT("SymbolTable %x NumSymbols %x\n", SymbolTable, NumSymbols);
|
DPRINT("SymbolTable %x NumSymbols %x\n", SymbolTable, NumSymbols);
|
||||||
|
|
||||||
/* Load section headers */
|
/* Load section headers */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue