GNU Binutils with patches for OS216
Revision | 24c765abed3fbf355b90e0f3bcd3d99b6b09426f (tree) |
---|---|
Time | 2008-12-30 14:42:04 |
Author | Hui Zhu <teawater@gmai...> |
Commiter | Hui Zhu |
Change "RECORD_IS_USED" to "TARGET_IS_PROCESS_RECORD".
@@ -607,7 +607,7 @@ use_displaced_stepping (struct gdbarch *gdbarch) | ||
607 | 607 | && non_stop) |
608 | 608 | || can_use_displaced_stepping == can_use_displaced_stepping_on) |
609 | 609 | && gdbarch_displaced_step_copy_insn_p (gdbarch) |
610 | - && !RECORD_IS_USED); | |
610 | + && !TARGET_IS_PROCESS_RECORD); | |
611 | 611 | } |
612 | 612 | |
613 | 613 | /* Clean out any stray displaced stepping state. */ |
@@ -407,7 +407,7 @@ record_open (char *name, int from_tty) | ||
407 | 407 | } |
408 | 408 | |
409 | 409 | /* Check if record target is already running. */ |
410 | - if (RECORD_IS_USED) | |
410 | + if (TARGET_IS_PROCESS_RECORD) | |
411 | 411 | { |
412 | 412 | if (!nquery |
413 | 413 | (_("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) | ||
510 | 510 | /* This is not a single step. */ |
511 | 511 | ptid_t ret; |
512 | 512 | int is_breakpoint = 1; |
513 | - CORE_ADDR pc; | |
513 | + CORE_ADDR pc = 0; | |
514 | 514 | int pc_is_read = 0; |
515 | 515 | struct bp_location *bl; |
516 | 516 | struct breakpoint *b; |
@@ -1068,14 +1068,14 @@ record_xfer_partial (struct target_ops *ops, enum target_object object, | ||
1068 | 1068 | |
1069 | 1069 | /* record_insert_breakpoint |
1070 | 1070 | record_remove_breakpoint |
1071 | - Behavior is conditional on RECORD_IS_USED. | |
1071 | + Behavior is conditional on TARGET_IS_PROCESS_RECORD. | |
1072 | 1072 | We will not actually insert or remove breakpoints when replaying, |
1073 | 1073 | nor when recording. */ |
1074 | 1074 | |
1075 | 1075 | static int |
1076 | 1076 | record_insert_breakpoint (struct bp_target_info *bp_tgt) |
1077 | 1077 | { |
1078 | - if (!RECORD_IS_USED) | |
1078 | + if (!TARGET_IS_PROCESS_RECORD) | |
1079 | 1079 | { |
1080 | 1080 | return record_beneath_to_insert_breakpoint (bp_tgt); |
1081 | 1081 | } |
@@ -1086,7 +1086,7 @@ record_insert_breakpoint (struct bp_target_info *bp_tgt) | ||
1086 | 1086 | static int |
1087 | 1087 | record_remove_breakpoint (struct bp_target_info *bp_tgt) |
1088 | 1088 | { |
1089 | - if (!RECORD_IS_USED) | |
1089 | + if (!TARGET_IS_PROCESS_RECORD) | |
1090 | 1090 | { |
1091 | 1091 | return record_beneath_to_remove_breakpoint (bp_tgt); |
1092 | 1092 | } |
@@ -1147,7 +1147,7 @@ cmd_record_start (char *args, int from_tty) | ||
1147 | 1147 | static void |
1148 | 1148 | cmd_record_delete (char *args, int from_tty) |
1149 | 1149 | { |
1150 | - if (RECORD_IS_USED) | |
1150 | + if (TARGET_IS_PROCESS_RECORD) | |
1151 | 1151 | { |
1152 | 1152 | if (RECORD_IS_REPLAY) |
1153 | 1153 | { |
@@ -1173,7 +1173,7 @@ cmd_record_delete (char *args, int from_tty) | ||
1173 | 1173 | static void |
1174 | 1174 | cmd_record_stop (char *args, int from_tty) |
1175 | 1175 | { |
1176 | - if (RECORD_IS_USED) | |
1176 | + if (TARGET_IS_PROCESS_RECORD) | |
1177 | 1177 | { |
1178 | 1178 | if (!record_list || !from_tty || query (_("Delete recorded log and stop recording?"))) |
1179 | 1179 | { |
@@ -20,7 +20,7 @@ | ||
20 | 20 | #ifndef _RECORD_H_ |
21 | 21 | #define _RECORD_H_ |
22 | 22 | |
23 | -#define RECORD_IS_USED \ | |
23 | +#define TARGET_IS_PROCESS_RECORD \ | |
24 | 24 | (current_target.beneath == &record_ops) |
25 | 25 | #define RECORD_IS_REPLAY \ |
26 | 26 | (record_list->next || execution_direction == EXEC_REVERSE) |