summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-04-15 21:39:27 +0000
committerRoland McGrath <roland@gnu.org>2004-04-15 21:39:27 +0000
commit22fae1a8a107d3d92832f75bcee4836d3daa1b82 (patch)
treef5109e204c7f832f8f9b3348448807a836aa5973 /gdb/symfile.h
parentb0cd47a118176a8eb019df02817139dbada56483 (diff)
downloadgdb-22fae1a8a107d3d92832f75bcee4836d3daa1b82.tar.gz
2004-04-08 Roland McGrath <roland@redhat.com>
* symfile.c (symbol_file_add_with_addrs_or_offsets): Take ABFD as argument instead of NAME. (symbol_file_add, reread_separate_symbols): Call symfile_bfd_open in call to symbol_file_add_with_addrs_or_offsets. (build_addr_info): New function, helper for ... (symbol_file_add_from_memory): New function. (add_symbol_file_from_memory_command): New function using that. (_initialize_symfile): Register it for add-symbol-file-from-memory. (pre_add_symbol_hook): Add const to argument type. * symfile.h (symbol_file_add_from_memory): Declare it.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 6b600ea47f7..61809bafa6c 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -302,6 +302,12 @@ extern CORE_ADDR symbol_overlayed_address (CORE_ADDR, asection *);
/* Load symbols from a file. */
extern void symbol_file_add_main (char *args, int from_tty);
+/* Read inferior memory at ADDR to find the header of a loaded object file
+ and read its in-core symbols out of inferior memory. TEMPL is a bfd
+ representing the target's format. */
+extern struct objfile *symbol_file_add_from_memory (bfd *templ, CORE_ADDR addr,
+ int from_tty);
+
/* Clear GDB symbol tables. */
extern void symbol_file_clear (int from_tty);