This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[ob] Disable add-symbol-file-from-memory for moment
- From: Andrew Cagney <cagney at gnu dot org>
- To: Jim Blandy <jimb at redhat dot com>, gdb-patches at sources dot redhat dot com,Roland McGrath <roland at redhat dot com>
- Date: Wed, 21 Apr 2004 18:13:15 -0400
- Subject: [ob] Disable add-symbol-file-from-memory for moment
FYI, I've committed this as obvious. It turns out that the patch also
broke the standard cross builds (and not a few obscure non-elf targets) :-(
(I've now got my bfd_iovec and observer changes in so I can continue
pushing up towards the framework this stuff needs).
Andrew
2004-04-21 Andrew Cagney <cagney@redhat.com>
* symfile.c (symbol_file_add_from_memory): #if 0 function.
(add_symbol_file_from_memory_command): #if 0 function body, call
error instead.
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.126
diff -u -r1.126 symfile.c
--- symfile.c 15 Apr 2004 21:39:27 -0000 1.126
+++ symfile.c 21 Apr 2004 22:01:34 -0000
@@ -1768,6 +1768,7 @@
#endif
}
+#if 0
/* 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. */
@@ -1825,10 +1826,12 @@
return objf;
}
+#endif
static void
add_symbol_file_from_memory_command (char *args, int from_tty)
{
+#if 0
CORE_ADDR addr;
bfd *templ;
@@ -1846,7 +1849,10 @@
error ("\
Must use symbol-file or exec-file before add-symbol-file-from-memory.");
- (void) symbol_file_add_from_memory (templ, addr, from_tty);
+ symbol_file_add_from_memory (templ, addr, from_tty);
+#else
+ error ("add-symbol-file-from-memory not implemented");
+#endif
}
/* Re-read symbols if a symbol-file has changed. */