]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Change "RECORD_IS_USED" to "TARGET_IS_PROCESS_RECORD".
authorHui Zhu <teawater@gmail.com>
Tue, 30 Dec 2008 05:42:04 +0000 (05:42 +0000)
committerHui Zhu <teawater@gmail.com>
Tue, 30 Dec 2008 05:42:04 +0000 (05:42 +0000)
gdb/infrun.c
gdb/record.c
gdb/record.h

index e3955162eb17b437dc6511529f5488fb9f8edfc5..57df4855eb9642667836f485f24c5ba82bd7caa0 100644 (file)
@@ -607,7 +607,7 @@ use_displaced_stepping (struct gdbarch *gdbarch)
            && non_stop)
           || can_use_displaced_stepping == can_use_displaced_stepping_on)
          && gdbarch_displaced_step_copy_insn_p (gdbarch)
-         && !RECORD_IS_USED);
+         && !TARGET_IS_PROCESS_RECORD);
 }
 
 /* Clean out any stray displaced stepping state.  */
index 5212f06e8b5b2214e932a7cbfd66fd5ce1a6a94c..5277d2d866dc9d9c0c64100b090ddd54220bc059 100644 (file)
@@ -407,7 +407,7 @@ record_open (char *name, int from_tty)
     }
 
   /* Check if record target is already running.  */
-  if (RECORD_IS_USED)
+  if (TARGET_IS_PROCESS_RECORD)
     {
       if (!nquery
          (_("Process record target already running, do you want to delete the old record log?")))
@@ -510,7 +510,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status)
              /* This is not a single step.  */
              ptid_t ret;
              int is_breakpoint = 1;
-             CORE_ADDR pc;
+             CORE_ADDR pc = 0;
              int pc_is_read = 0;
              struct bp_location *bl;
              struct breakpoint *b;
@@ -1068,14 +1068,14 @@ record_xfer_partial (struct target_ops *ops, enum target_object object,
 
 /* record_insert_breakpoint
    record_remove_breakpoint
-   Behavior is conditional on RECORD_IS_USED.
+   Behavior is conditional on TARGET_IS_PROCESS_RECORD.
    We will not actually insert or remove breakpoints when replaying,
    nor when recording.  */
 
 static int
 record_insert_breakpoint (struct bp_target_info *bp_tgt)
 {
-  if (!RECORD_IS_USED)
+  if (!TARGET_IS_PROCESS_RECORD)
     {
       return record_beneath_to_insert_breakpoint (bp_tgt);
     }
@@ -1086,7 +1086,7 @@ record_insert_breakpoint (struct bp_target_info *bp_tgt)
 static int
 record_remove_breakpoint (struct bp_target_info *bp_tgt)
 {
-  if (!RECORD_IS_USED)
+  if (!TARGET_IS_PROCESS_RECORD)
     {
       return record_beneath_to_remove_breakpoint (bp_tgt);
     }
@@ -1147,7 +1147,7 @@ cmd_record_start (char *args, int from_tty)
 static void
 cmd_record_delete (char *args, int from_tty)
 {
-  if (RECORD_IS_USED)
+  if (TARGET_IS_PROCESS_RECORD)
     {
       if (RECORD_IS_REPLAY)
        {
@@ -1173,7 +1173,7 @@ cmd_record_delete (char *args, int from_tty)
 static void
 cmd_record_stop (char *args, int from_tty)
 {
-  if (RECORD_IS_USED)
+  if (TARGET_IS_PROCESS_RECORD)
     {
       if (!record_list || !from_tty || query (_("Delete recorded log and stop recording?")))
        {
index fa4094dad1167fad074a3dae1f98fc7dd32f49a8..a547117b3a3e96e195ee4f6ec49479204264b925 100644 (file)
@@ -20,7 +20,7 @@
 #ifndef _RECORD_H_
 #define _RECORD_H_
 
-#define RECORD_IS_USED   \
+#define TARGET_IS_PROCESS_RECORD   \
      (current_target.beneath == &record_ops)
 #define RECORD_IS_REPLAY \
      (record_list->next || execution_direction == EXEC_REVERSE)