aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-21 22:02:38 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-21 22:02:38 +0000
commit62cf13cc3d71fac8ad3a2ac4284370f5711e55dd (patch)
treea137661c8a191f2195ec3cd6ef350c3688a23d53
parent23867d6732552f52477a306fca55a145f1c99730 (diff)
downloadgdb-62cf13cc3d71fac8ad3a2ac4284370f5711e55dd.zip
gdb-62cf13cc3d71fac8ad3a2ac4284370f5711e55dd.tar.gz
gdb-62cf13cc3d71fac8ad3a2ac4284370f5711e55dd.tar.bz2
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.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/symfile.c8
2 files changed, 13 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b21f8cf..1839888 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
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.
+
+2004-04-21 Andrew Cagney <cagney@redhat.com>
+
* gdbcore.h: Update copyright.
(deprecated_add_core_fns): Rename add_core_fns.
* win32-nat.c (_initialize_core_win32): Update.
diff --git a/gdb/symfile.c b/gdb/symfile.c
index f4bae33..c06fbd1 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -1768,6 +1768,7 @@ add_shared_symbol_files_command (char *args, int from_tty)
#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 @@ symbol_file_add_from_memory (bfd *templ, CORE_ADDR addr, int from_tty)
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 @@ add_symbol_file_from_memory_command (char *args, int from_tty)
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. */