diff options
author | Hui Zhu <teawater@gmail.com> | 2008-10-18 13:45:17 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2008-10-18 13:45:17 +0000 |
commit | 89cae53aca1c74beb27d58b170bad1e1373ea1d3 (patch) | |
tree | bb1396ecc45c8920bb1f4e60179e7fd878cd0af9 /gdb | |
parent | 27b0eddcfc6cabfa7e02fcf8159f896191fb54f3 (diff) | |
download | gdb-89cae53aca1c74beb27d58b170bad1e1373ea1d3.tar.gz |
2008-10-18 Hui Zhu <teawater@gmail.com>
Remove "to_support_record_wait".
* target.c (add_target): Remove "to_support_record_wait".
* target.h (target_ops): Ditto.
* linux-nat.c (linux_nat_add_target): Ditto.
* record.h (RECORD_TARGET_SUPPORT_RECORD_WAIT): This macro is removed.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 9 | ||||
-rw-r--r-- | gdb/linux-nat.c | 3 | ||||
-rw-r--r-- | gdb/record.h | 2 | ||||
-rw-r--r-- | gdb/target.c | 3 | ||||
-rw-r--r-- | gdb/target.h | 5 |
5 files changed, 9 insertions, 13 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5af82b3412e..0ef6a20fbf4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,12 @@ +2008-10-18 Hui Zhu <teawater@gmail.com> + + Remove "to_support_record_wait". + + * target.c (add_target): Remove "to_support_record_wait". + * target.h (target_ops): Ditto. + * linux-nat.c (linux_nat_add_target): Ditto. + * record.h (RECORD_TARGET_SUPPORT_RECORD_WAIT): This macro is removed. + 2008-10-15 Hui Zhu <teawater@gmail.com> Change "record-auto-delete" to "record-stop-at-limit". diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index 7d94a68404d..b63f863e563 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -4553,9 +4553,6 @@ linux_nat_add_target (struct target_ops *t) add_target (t); - /* Point out that this target support record wait. */ - t->to_support_record_wait = 1; - /* TODO: Eliminate this and have libthread_db use find_target_beneath. */ thread_db_init (t); diff --git a/gdb/record.h b/gdb/record.h index 39241e6140e..21aba7590b5 100644 --- a/gdb/record.h +++ b/gdb/record.h @@ -24,8 +24,6 @@ (current_target.beneath == &record_ops) #define RECORD_IS_REPLAY \ (record_list->next || execution_direction == EXEC_REVERSE) -#define RECORD_TARGET_SUPPORT_RECORD_WAIT \ - (record_ops.beneath->to_support_record_wait) typedef struct record_reg_s { diff --git a/gdb/target.c b/gdb/target.c index 03b1cecaf48..c6c5439cfb1 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -242,9 +242,6 @@ add_target (struct target_ops *t) if (t->to_xfer_partial == NULL) t->to_xfer_partial = default_xfer_partial; - /* Set the default value of to_support_record_wait. */ - t->to_support_record_wait = 0; - if (!target_structs) { target_struct_allocsize = DEFAULT_ALLOCSIZE; diff --git a/gdb/target.h b/gdb/target.h index fbf9898f451..ca0c0ae4936 100644 --- a/gdb/target.h +++ b/gdb/target.h @@ -531,11 +531,6 @@ struct target_ops /* Can target execute in reverse? */ int (*to_can_execute_reverse) (); - /* Default value is 0. Mean that this target doesn't support record wait. - Need the help of infrun.c(handle_inferior_event). Set to 1 if this - target support record wait. */ - int to_support_record_wait; - int to_magic; /* Need sub-structure for target machine related rather than comm related? */ |