summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2002-12-15 19:00:33 +0000
committerDaniel Jacobowitz <dan@debian.org>2002-12-15 19:00:33 +0000
commitaadf4c766a75ed20c0058f7d596340fd0da33533 (patch)
treec1f39218783ed19094edd66bdbd4a292c284151c
parent5d4929ab76c714499712cc6fb712e096fcdfca5e (diff)
downloadgdb-aadf4c766a75ed20c0058f7d596340fd0da33533.tar.gz
* target.c (update_current_target): Don't inherit DONT_USE.
* target.h (struct target_ops): Remove DONT_USE. (target_next): Remove macro.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/target.c1
-rw-r--r--gdb/target.h7
3 files changed, 6 insertions, 8 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d1fc6e06560..390ce96cbea 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+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.
+
2002-12-15 Mark Kettenis <kettenis@gnu.org>
* ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
diff --git a/gdb/target.c b/gdb/target.c
index 25ed8301649..e19ad6dbbbf 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -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);
diff --git a/gdb/target.h b/gdb/target.h
index afe1fc5d8ab..8c6dce17c63 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -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;
@@ -780,11 +778,6 @@ extern void target_load (char *arg, int from_tty);
#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
memory if this target can't satisfy a request. */