This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[COMMIT] Remove rombug-related dead code
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 8 May 2005 16:47:05 +0200 (CEST)
- Subject: [COMMIT] Remove rombug-related dead code
While trying to squash another DEPRECATED_STREQ, I noticed this code
was essentially dead; the rombug stuff was removed quite a while ago.
Committed as obvious,
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* target.h (target_link): Remove prototype.
* target.c (target_link): Remove function.
* symfile.c: Remove comment about rombug.
Index: target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.104
diff -u -p -r1.104 target.c
--- target.c 1 May 2005 19:58:55 -0000 1.104
+++ target.c 8 May 2005 14:42:13 -0000
@@ -1496,19 +1496,6 @@ target_disconnect (char *args, int from_
(current_target.to_disconnect) (args, from_tty);
}
-void
-target_link (char *modname, CORE_ADDR *t_reloc)
-{
- if (DEPRECATED_STREQ (current_target.to_shortname, "rombug"))
- {
- (current_target.to_lookup_symbol) (modname, t_reloc);
- if (*t_reloc == 0)
- error (_("Unable to link to %s and get relocation in rombug"), modname);
- }
- else
- *t_reloc = (CORE_ADDR) -1;
-}
-
int
target_async_mask (int mask)
{
Index: target.h
===================================================================
RCS file: /cvs/src/src/gdb/target.h,v
retrieving revision 1.70
diff -u -p -r1.70 target.h
--- target.h 1 May 2005 19:58:55 -0000 1.70
+++ target.h 8 May 2005 14:42:14 -0000
@@ -904,8 +904,6 @@ extern void target_load (char *arg, int
extern int target_async_mask (int mask);
-extern void target_link (char *, CORE_ADDR *);
-
/* Converts a process id to a string. Usually, the string just contains
`process xyz', but on some systems it may contain
`process xyz thread abc'. */
Index: symfile.c
===================================================================
RCS file: /cvs/src/src/gdb/symfile.c,v
retrieving revision 1.157
diff -u -p -r1.157 symfile.c
--- symfile.c 8 Mar 2005 21:40:46 -0000 1.157
+++ symfile.c 8 May 2005 14:42:16 -0000
@@ -1165,10 +1165,6 @@ find_separate_debug_file (struct objfile
used in GDB (perhaps "set mapped on", "set readnow on" would be
better), (3) the order of options matters, which is contrary to GNU
conventions (because it is confusing and inconvenient). */
-/* Note: ezannoni 2000-04-17. This function used to have support for
- rombug (see remote-os9k.c). It consisted of a call to target_link()
- (target.c) to get the address of the text segment from the target,
- and pass that to symbol_file_add(). This is no longer supported. */
void
symbol_file_command (char *args, int from_tty)