aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-11-06 23:51:21 -0800
committerDoug Evans <xdje42@gmail.com>2014-11-06 23:51:21 -0800
commit67be31e5aae5075a99068e752b138a0934bde83c (patch)
tree6a28bd4daa05f38c90828191227507c4c2ab206d /gdb/symtab.h
parent08724ab7cab54446283db200db58a3313463a1a2 (diff)
downloadgdb-67be31e5aae5075a99068e752b138a0934bde83c.zip
gdb-67be31e5aae5075a99068e752b138a0934bde83c.tar.gz
gdb-67be31e5aae5075a99068e752b138a0934bde83c.tar.bz2
symtab.h (lookup_global_symbol): Improve function comment.
gdb/ChangeLog: * symtab.h (lookup_global_symbol): Improve function comment.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index c967c62..9b3ea80 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1104,6 +1104,14 @@ extern struct symbol *lookup_static_symbol (const char *name,
const domain_enum domain);
/* Lookup a symbol in all files' global blocks.
+
+ If BLOCK is non-NULL then it is used for two things:
+ 1) If a target-specific lookup routine for libraries exists, then use the
+ routine for the objfile of BLOCK, and
+ 2) The objfile of BLOCK is used to assist in determining the search order
+ if the target requires it.
+ See gdbarch_iterate_over_objfiles_in_search_order.
+
Upon success sets BLOCK_FOUND and fixes up the symbol's section
if necessary. */