projects
/
binutils-gdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
31a932d
)
add comment
author
Jim Kingdon
<jkingdon@engr.sgi.com>
Wed, 8 Sep 1993 14:47:10 +0000
(14:47 +0000)
committer
Jim Kingdon
<jkingdon@engr.sgi.com>
Wed, 8 Sep 1993 14:47:10 +0000
(14:47 +0000)
gdb/minsyms.c
patch
|
blob
|
history
diff --git
a/gdb/minsyms.c
b/gdb/minsyms.c
index 3665380f27b55b5319bdaa93c1da9bd4f43eba73..63850aa528d39a172594cec78c02367c6e3b619e 100644
(file)
--- a/
gdb/minsyms.c
+++ b/
gdb/minsyms.c
@@
-183,7
+183,9
@@
lookup_minimal_symbol (name, objf)
equal to PC. Returns a pointer to the minimal symbol if such a symbol
is found, or NULL if PC is not in a suitable range. Note that we need
to look through ALL the minimal symbol tables before deciding on the
equal to PC. Returns a pointer to the minimal symbol if such a symbol
is found, or NULL if PC is not in a suitable range. Note that we need
to look through ALL the minimal symbol tables before deciding on the
- symbol that comes closest to the specified PC. */
+ symbol that comes closest to the specified PC. This is because objfiles
+ can overlap, for example objfile A has .text at 0x100 and .data at 0x40000
+ and objfile B has .text at 0x234 and .data at 0x40048. */
struct minimal_symbol *
lookup_minimal_symbol_by_pc (pc)
struct minimal_symbol *
lookup_minimal_symbol_by_pc (pc)