aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2011-08-30 02:48:05 +0000
committerYao Qi <yao@codesourcery.com>2011-08-30 02:48:05 +0000
commitcb457ae2842770922180ce15b4885ff7b224bf95 (patch)
tree5a9c61c90c03d02339fe5a3926632370f9a462be /gdb/solib.h
parent83d1a36ae4e69a3bc19f9aae6c009e7d91d31ad6 (diff)
downloadgdb-cb457ae2842770922180ce15b4885ff7b224bf95.zip
gdb-cb457ae2842770922180ce15b4885ff7b224bf95.tar.gz
gdb-cb457ae2842770922180ce15b4885ff7b224bf95.tar.bz2
gdb/
* solib-dsbt.c (bfd_lookup_symbol): Removed. (cmp_name): New. (enable_break2): Update caller. * solib-frv.c (bfd_lookup_symbol): Removed. (cmp_name): New. (enable_break2): Update caller. * solib-pa64.c (bfd_lookup_symbol): Removed. (cmp_name): New. * solib-svr4.c (bfd_lookup_symbol): Removed. (cmp_name_and_sec_flags): New. (enable_break): Update caller. * solib.c (gdb_bfd_lookup_symbol_from_symtab): New. (gdb_bfd_lookup_symbol_from_dyn_symtab): New. (gdb_bfd_lookup_symbol): New. * solib.h: Functions declarations.
Diffstat (limited to 'gdb/solib.h')
-rw-r--r--gdb/solib.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/solib.h b/gdb/solib.h
index c473d85..f0414f6 100644
--- a/gdb/solib.h
+++ b/gdb/solib.h
@@ -78,4 +78,17 @@ extern void set_solib_ops (struct gdbarch *gdbarch,
extern int libpthread_name_p (const char *name);
+/* Look up symbol from both symbol table and dynamic string table. */
+
+extern CORE_ADDR gdb_bfd_lookup_symbol (bfd *abfd,
+ int (*match_sym) (asymbol *, void *),
+ void *data);
+
+/* Look up symbol from symbol table. */
+
+extern CORE_ADDR bfd_lookup_symbol_from_symtab (bfd *abfd,
+ int (*match_sym) (asymbol *,
+ void *),
+ void *data);
+
#endif /* SOLIB_H */