This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
PATCH: Fork event updates, part the ninth
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Sun, 15 Dec 2002 14:03:17 -0500
- Subject: PATCH: Fork event updates, part the ninth
Pulling leftovers from my working directory... this patch kills what used to
be ->to_next, which hasn't been used for some time. Committed.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2002-12-15 Daniel Jacobowitz <drow@mvista.com>
* target.c (update_current_target): Don't inherit DONT_USE.
* target.h (struct target_ops): Remove DONT_USE.
(target_next): Remove macro.
Index: gdb/target.c
===================================================================
RCS file: /cvs/src/src/gdb/target.c,v
retrieving revision 1.47
diff -u -p -r1.47 target.c
--- gdb/target.c 12 Dec 2002 01:39:34 -0000 1.47
+++ gdb/target.c 15 Dec 2002 18:56:17 -0000
@@ -609,7 +609,6 @@ update_current_target (void)
INHERIT (to_get_current_exception_event, t);
INHERIT (to_pid_to_exec_file, t);
INHERIT (to_stratum, t);
- INHERIT (DONT_USE, t);
INHERIT (to_has_all_memory, t);
INHERIT (to_has_memory, t);
INHERIT (to_has_stack, t);
Index: gdb/target.h
===================================================================
RCS file: /cvs/src/src/gdb/target.h,v
retrieving revision 1.33
diff -u -p -r1.33 target.h
--- gdb/target.h 12 Dec 2002 01:39:34 -0000 1.33
+++ gdb/target.h 15 Dec 2002 18:56:18 -0000
@@ -295,8 +295,6 @@ struct target_ops
struct exception_event_record *(*to_get_current_exception_event) (void);
char *(*to_pid_to_exec_file) (int pid);
enum strata to_stratum;
- struct target_ops
- *DONT_USE; /* formerly to_next */
int to_has_all_memory;
int to_has_memory;
int to_has_stack;
@@ -779,11 +777,6 @@ extern void target_load (char *arg, int
#define target_get_current_exception_event() \
(*current_target.to_get_current_exception_event) ()
-
-/* Pointer to next target in the chain, e.g. a core file and an exec file. */
-
-#define target_next \
- (current_target.to_next)
/* Does the target include all of memory, or only part of it? This
determines whether we look up the target chain for other parts of