diff options
Diffstat (limited to 'gdb/record-full.c')
-rw-r--r-- | gdb/record-full.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/record-full.c b/gdb/record-full.c index 6d05651..c55e3b9 100644 --- a/gdb/record-full.c +++ b/gdb/record-full.c @@ -1,6 +1,6 @@ /* Process record and replay target for GDB, the GNU debugger. - Copyright (C) 2013-2024 Free Software Foundation, Inc. + Copyright (C) 2013-2025 Free Software Foundation, Inc. This file is part of GDB. @@ -1091,7 +1091,7 @@ record_full_target::resume (ptid_t ptid, int step, enum gdb_signal signal) if (!step) { /* This is not hard single step. */ - if (!gdbarch_software_single_step_p (gdbarch)) + if (!gdbarch_get_next_pcs_p (gdbarch)) { /* This is a normal continue. */ step = 1; @@ -1266,7 +1266,7 @@ record_full_wait_1 (struct target_ops *ops, process_stratum_target *proc_target = current_inferior ()->process_target (); - if (gdbarch_software_single_step_p (gdbarch)) + if (gdbarch_get_next_pcs_p (gdbarch)) { /* Try to insert the software single step breakpoint. If insert success, set step to 0. */ @@ -1647,7 +1647,7 @@ record_full_target::store_registers (struct regcache *regcache, int regno) /* "xfer_partial" method. Behavior is conditional on RECORD_FULL_IS_REPLAY. - In replay mode, we cannot write memory unles we are willing to + In replay mode, we cannot write memory unless we are willing to invalidate the record/replay log from this point forward. */ enum target_xfer_status @@ -2368,7 +2368,7 @@ record_full_restore (void) bfdcore_read (current_program_space->core_bfd (), osec, &magic, sizeof (magic), &bfd_offset); if (magic != RECORD_FULL_FILE_MAGIC) - error (_("Version mis-match or file format error in core file %s."), + error (_("Version mismatch or file format error in core file %s."), bfd_get_filename (current_program_space->core_bfd ())); if (record_debug) gdb_printf (gdb_stdlog, @@ -2877,9 +2877,7 @@ maintenance_print_record_instruction (const char *args, int from_tty) } } -void _initialize_record_full (); -void -_initialize_record_full () +INIT_GDB_FILE (record_full) { struct cmd_list_element *c; |