projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RSYM: force all sym files to have 0-based function offsets.
[reactos.git]
/
reactos
/
ntoskrnl
/
dbg
/
kdb_stabs.c
diff --git
a/reactos/ntoskrnl/dbg/kdb_stabs.c
b/reactos/ntoskrnl/dbg/kdb_stabs.c
index
db0930d
..
968e9e5
100644
(file)
--- a/
reactos/ntoskrnl/dbg/kdb_stabs.c
+++ b/
reactos/ntoskrnl/dbg/kdb_stabs.c
@@
-88,12
+88,10
@@
KdbpStabFindEntry(IN PIMAGE_SYMBOL_INFO SymbolInfo,
if (RelativeAddress != NULL)
{
if (RelativeAddress != NULL)
{
- if (StabEntry->n_value < (ULONG_PTR)SymbolInfo->ImageBase)
- continue;
- if (StabEntry->n_value >= ((ULONG_PTR)SymbolInfo->ImageBase + SymbolInfo->ImageSize))
+ if (StabEntry->n_value >= SymbolInfo->ImageSize)
continue;
continue;
- SymbolRelativeAddress = StabEntry->n_value
- (ULONG_PTR)SymbolInfo->ImageBase
;
+ SymbolRelativeAddress = StabEntry->n_value;
if ((SymbolRelativeAddress <= (ULONG_PTR)RelativeAddress) &&
(SymbolRelativeAddress > AddrFound))
{
if ((SymbolRelativeAddress <= (ULONG_PTR)RelativeAddress) &&
(SymbolRelativeAddress > AddrFound))
{
@@
-109,9
+107,13
@@
KdbpStabFindEntry(IN PIMAGE_SYMBOL_INFO SymbolInfo,
}
if (BestStabEntry == NULL)
}
if (BestStabEntry == NULL)
+ {
DPRINT("StabEntry not found!\n");
DPRINT("StabEntry not found!\n");
+ }
else
else
+ {
DPRINT("StabEntry found!\n");
DPRINT("StabEntry found!\n");
+ }
return BestStabEntry;
}
return BestStabEntry;
}