diff options
Diffstat (limited to 'gdb/record.c')
-rw-r--r-- | gdb/record.c | 40 |
1 files changed, 20 insertions, 20 deletions
diff --git a/gdb/record.c b/gdb/record.c index 3620d808f53..51243cf0746 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -47,7 +47,7 @@ static int record_insn_num = 0; struct target_ops record_ops; int record_resume_step = 0; -enum exec_direction_kind record_execdir = EXEC_FORWARD; +enum exec_direction_kind record_exec_direction = EXEC_FORWARD; static int record_get_sig = 0; static sigset_t record_maskall; static int record_not_record = 0; @@ -444,7 +444,7 @@ record_open (char *name, int from_tty) /* Reset */ record_insn_num = 0; - record_execdir = EXEC_FORWARD; + record_exec_direction = EXEC_FORWARD; record_list = &record_first; record_list->next = NULL; @@ -487,7 +487,7 @@ record_sig_handler (int signo) static void record_wait_cleanups (void *ignore) { - if (record_execdir == EXEC_REVERSE) + if (record_exec_direction == EXEC_REVERSE) { if (record_list->next) { @@ -545,7 +545,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) /* In EXEC_FORWARD mode, record_list point to the tail of prev instruction. */ - if (record_execdir == EXEC_FORWARD && record_list->next) + if (record_exec_direction == EXEC_FORWARD && record_list->next) { record_list = record_list->next; } @@ -556,14 +556,14 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) do { /* Check for beginning and end of log. */ - if (record_execdir == EXEC_REVERSE + if (record_exec_direction == EXEC_REVERSE && record_list == &record_first) { /* Hit beginning of record log in reverse. */ status->kind = TARGET_WAITKIND_NO_HISTORY; break; } - if (record_execdir != EXEC_REVERSE && !record_list->next) + if (record_exec_direction != EXEC_REVERSE && !record_list->next) { /* Hit end of record log going forward. */ status->kind = TARGET_WAITKIND_NO_HISTORY; @@ -631,7 +631,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) record_list->u.need_dasm); } - if (record_execdir == EXEC_FORWARD) + if (record_exec_direction == EXEC_FORWARD) { need_dasm = record_list->u.need_dasm; } @@ -640,7 +640,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) gdbarch_record_dasm (current_gdbarch); } - if (first_record_end && record_execdir == EXEC_REVERSE) + if (first_record_end && record_exec_direction == EXEC_REVERSE) { /* When reverse excute, the first record_end is the part of current instruction. */ @@ -694,7 +694,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) } } } - if (record_execdir == EXEC_REVERSE) + if (record_exec_direction == EXEC_REVERSE) { need_dasm = record_list->u.need_dasm; } @@ -703,7 +703,7 @@ record_wait (ptid_t ptid, struct target_waitstatus *status) next: if (continue_flag) { - if (record_execdir == EXEC_REVERSE) + if (record_exec_direction == EXEC_REVERSE) { if (record_list->prev) record_list = record_list->prev; @@ -952,26 +952,26 @@ record_remove_breakpoint (struct bp_target_info *bp_tgt) } static enum exec_direction_kind -record_get_execdir (void) +record_get_exec_direction (void) { if (record_debug > 1) - printf_filtered ("Record: execdir is %s\n", - record_execdir == EXEC_FORWARD ? "forward" : - record_execdir == EXEC_REVERSE ? "reverse" : "unknown"); - return record_execdir; + printf_filtered ("Record: exec_direction is %s\n", + record_exec_direction == EXEC_FORWARD ? "forward" : + record_exec_direction == EXEC_REVERSE ? "reverse" : "unknown"); + return record_exec_direction; } static int -record_set_execdir (enum exec_direction_kind dir) +record_set_exec_direction (enum exec_direction_kind dir) { if (record_debug) - printf_filtered ("Record: set execdir: %s\n", + printf_filtered ("Record: set exec_direction: %s\n", dir == EXEC_FORWARD ? "forward" : dir == EXEC_REVERSE ? "reverse" : "bad direction"); /* FIXME: check target for capability. */ if (dir == EXEC_FORWARD || dir == EXEC_REVERSE) - return (record_execdir = dir); + return (record_exec_direction = dir); else return EXEC_ERROR; } @@ -996,8 +996,8 @@ init_record_ops (void) record_ops.to_xfer_partial = record_xfer_partial; record_ops.to_insert_breakpoint = record_insert_breakpoint; record_ops.to_remove_breakpoint = record_remove_breakpoint; - record_ops.to_get_execdir = record_get_execdir; - record_ops.to_set_execdir = record_set_execdir; + record_ops.to_get_exec_direction = record_get_exec_direction; + record_ops.to_set_exec_direction = record_set_exec_direction; record_ops.to_stratum = record_stratum; record_ops.to_magic = OPS_MAGIC; } |