• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision24c765abed3fbf355b90e0f3bcd3d99b6b09426f (tree)
Time2008-12-30 14:42:04
AuthorHui Zhu <teawater@gmai...>
CommiterHui Zhu

Log Message

Change "RECORD_IS_USED" to "TARGET_IS_PROCESS_RECORD".

Change Summary

Incremental Difference

--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -607,7 +607,7 @@ use_displaced_stepping (struct gdbarch *gdbarch)
607607 && non_stop)
608608 || can_use_displaced_stepping == can_use_displaced_stepping_on)
609609 && gdbarch_displaced_step_copy_insn_p (gdbarch)
610- && !RECORD_IS_USED);
610+ && !TARGET_IS_PROCESS_RECORD);
611611 }
612612
613613 /* Clean out any stray displaced stepping state. */
--- a/gdb/record.c
+++ b/gdb/record.c
@@ -407,7 +407,7 @@ record_open (char *name, int from_tty)
407407 }
408408
409409 /* Check if record target is already running. */
410- if (RECORD_IS_USED)
410+ if (TARGET_IS_PROCESS_RECORD)
411411 {
412412 if (!nquery
413413 (_("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)
510510 /* This is not a single step. */
511511 ptid_t ret;
512512 int is_breakpoint = 1;
513- CORE_ADDR pc;
513+ CORE_ADDR pc = 0;
514514 int pc_is_read = 0;
515515 struct bp_location *bl;
516516 struct breakpoint *b;
@@ -1068,14 +1068,14 @@ record_xfer_partial (struct target_ops *ops, enum target_object object,
10681068
10691069 /* record_insert_breakpoint
10701070 record_remove_breakpoint
1071- Behavior is conditional on RECORD_IS_USED.
1071+ Behavior is conditional on TARGET_IS_PROCESS_RECORD.
10721072 We will not actually insert or remove breakpoints when replaying,
10731073 nor when recording. */
10741074
10751075 static int
10761076 record_insert_breakpoint (struct bp_target_info *bp_tgt)
10771077 {
1078- if (!RECORD_IS_USED)
1078+ if (!TARGET_IS_PROCESS_RECORD)
10791079 {
10801080 return record_beneath_to_insert_breakpoint (bp_tgt);
10811081 }
@@ -1086,7 +1086,7 @@ record_insert_breakpoint (struct bp_target_info *bp_tgt)
10861086 static int
10871087 record_remove_breakpoint (struct bp_target_info *bp_tgt)
10881088 {
1089- if (!RECORD_IS_USED)
1089+ if (!TARGET_IS_PROCESS_RECORD)
10901090 {
10911091 return record_beneath_to_remove_breakpoint (bp_tgt);
10921092 }
@@ -1147,7 +1147,7 @@ cmd_record_start (char *args, int from_tty)
11471147 static void
11481148 cmd_record_delete (char *args, int from_tty)
11491149 {
1150- if (RECORD_IS_USED)
1150+ if (TARGET_IS_PROCESS_RECORD)
11511151 {
11521152 if (RECORD_IS_REPLAY)
11531153 {
@@ -1173,7 +1173,7 @@ cmd_record_delete (char *args, int from_tty)
11731173 static void
11741174 cmd_record_stop (char *args, int from_tty)
11751175 {
1176- if (RECORD_IS_USED)
1176+ if (TARGET_IS_PROCESS_RECORD)
11771177 {
11781178 if (!record_list || !from_tty || query (_("Delete recorded log and stop recording?")))
11791179 {
--- a/gdb/record.h
+++ b/gdb/record.h
@@ -20,7 +20,7 @@
2020 #ifndef _RECORD_H_
2121 #define _RECORD_H_
2222
23-#define RECORD_IS_USED \
23+#define TARGET_IS_PROCESS_RECORD \
2424 (current_target.beneath == &record_ops)
2525 #define RECORD_IS_REPLAY \
2626 (record_list->next || execution_direction == EXEC_REVERSE)