mirror of
https://github.com/reactos/reactos.git
synced 2024-09-13 06:11:59 +00:00
Fixed rsym for executables without any debug informations.
svn path=/trunk/; revision=15387
This commit is contained in:
parent
2e000e7b38
commit
e3ac1e89d5
|
@ -368,7 +368,8 @@ MergeStabsAndCoffs(ULONG *MergedSymbolCount, PROSSYM_ENTRY *MergedSymbols,
|
||||||
CoffIndex++;
|
CoffIndex++;
|
||||||
}
|
}
|
||||||
NewStabFunctionStringOffset = (*MergedSymbols)[*MergedSymbolCount].FunctionOffset;
|
NewStabFunctionStringOffset = (*MergedSymbols)[*MergedSymbolCount].FunctionOffset;
|
||||||
if (CoffSymbols[CoffIndex].Address < (*MergedSymbols)[*MergedSymbolCount].Address
|
if (CoffSymbolsCount > 0 &&
|
||||||
|
CoffSymbols[CoffIndex].Address < (*MergedSymbols)[*MergedSymbolCount].Address
|
||||||
&& StabFunctionStartAddress < CoffSymbols[CoffIndex].Address
|
&& StabFunctionStartAddress < CoffSymbols[CoffIndex].Address
|
||||||
&& 0 != CoffSymbols[CoffIndex].FunctionOffset)
|
&& 0 != CoffSymbols[CoffIndex].FunctionOffset)
|
||||||
{
|
{
|
||||||
|
@ -799,6 +800,13 @@ int main(int argc, char* argv[])
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (StabsLength == 0 || StabStringsLength == 0)
|
||||||
|
{
|
||||||
|
/* no symbol info */
|
||||||
|
free(FileData);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (GetCoffInfo(FileData, PEFileHeader, PESectionHeaders, &CoffsLength, &CoffBase,
|
if (GetCoffInfo(FileData, PEFileHeader, PESectionHeaders, &CoffsLength, &CoffBase,
|
||||||
&CoffStringsLength, &CoffStringBase))
|
&CoffStringsLength, &CoffStringBase))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue