This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFC reverse] Remove "to_support_record_wait"


Hi,

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.

Thanks,
Hui
--- a/ChangeLog
+++ b/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".
--- a/target.c
+++ b/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;
--- a/target.h
+++ b/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?
      */
--- a/linux-nat.c
+++ b/linux-nat.c
@@ -4553,9 +4553,6 @@ linux_nat_add_target (struct target_ops 
 
   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);
--- a/record.h
+++ b/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
 {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]