aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2008-12-30 05:42:04 +0000
committerHui Zhu <teawater@gmail.com>2008-12-30 05:42:04 +0000
commit24c765abed3fbf355b90e0f3bcd3d99b6b09426f (patch)
treed5c5febc574d7b54a5e8a9615c3349a3a0b204f0
parentfc4cb1078578d8586ac55a94ffa0fa0c081575af (diff)
downloadfsf-binutils-gdb-24c765abed3fbf355b90e0f3bcd3d99b6b09426f.zip
fsf-binutils-gdb-24c765abed3fbf355b90e0f3bcd3d99b6b09426f.tar.gz
fsf-binutils-gdb-24c765abed3fbf355b90e0f3bcd3d99b6b09426f.tar.bz2
Change "RECORD_IS_USED" to "TARGET_IS_PROCESS_RECORD".
-rw-r--r--gdb/infrun.c2
-rw-r--r--gdb/record.c14
-rw-r--r--gdb/record.h2
3 files changed, 9 insertions, 9 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c
index e395516..57df485 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -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. */
diff --git a/gdb/record.c b/gdb/record.c
index 5212f06..5277d2d 100644
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -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?")))
{
diff --git a/gdb/record.h b/gdb/record.h
index fa4094d..a547117 100644
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -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)