aboutsummaryrefslogtreecommitdiff
path: root/gdb/minsyms.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 14:47:10 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-08 14:47:10 +0000
commit55f65171f27fa2ed4920142261af0494d3974c74 (patch)
treeaf00c19dc4e6873e97969568378d1ec564fef3ad /gdb/minsyms.c
parent31a932d84c4418fb27c485d69b4071489d192a95 (diff)
downloadgdb-55f65171f27fa2ed4920142261af0494d3974c74.zip
gdb-55f65171f27fa2ed4920142261af0494d3974c74.tar.gz
gdb-55f65171f27fa2ed4920142261af0494d3974c74.tar.bz2
add comment
Diffstat (limited to 'gdb/minsyms.c')
-rw-r--r--gdb/minsyms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/minsyms.c b/gdb/minsyms.c
index 3665380..63850aa 100644
--- 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
- 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)