aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-01-13 20:25:58 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2021-01-13 20:26:05 -0500
commitbd497355ea57d629a5c1ac610308bafd5b0eff8f (patch)
tree06402754a794e47faab03192395901e30747f4a5
parentc9d220893e9c3128ca78e613a532d5cc6998c332 (diff)
downloadgdb-bd497355ea57d629a5c1ac610308bafd5b0eff8f.zip
gdb-bd497355ea57d629a5c1ac610308bafd5b0eff8f.tar.gz
gdb-bd497355ea57d629a5c1ac610308bafd5b0eff8f.tar.bz2
gdb: remove target_ops::commit_resume implementation in record-{btrace, full}.c
The previous patch made the commit_resume implementations in the record targets unnecessary, as the remote target's commit_resume implementation won't commit-resume threads for which it didn't see a resume. This patch removes them. gdb/ChangeLog: * record-btrace.c (class record_btrace_target): Remove. (record_btrace_target::commit_resume): Remove. * record-full.c (class record_full_target): Remove. (record_full_target::commit_resume): Remove. Change-Id: I3a68d3d726fb09d8b7165b4edefc330d27803b27
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/record-btrace.c11
-rw-r--r--gdb/record-full.c10
3 files changed, 7 insertions, 21 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index cd48656..bd039a7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2021-01-13 Simon Marchi <simon.marchi@efficios.com>
+ * record-btrace.c (class record_btrace_target): Remove.
+ (record_btrace_target::commit_resume): Remove.
+ * record-full.c (class record_full_target): Remove.
+ (record_full_target::commit_resume): Remove.
+
+2021-01-13 Simon Marchi <simon.marchi@efficios.com>
+
* remote.c (enum class resume_state): New.
(struct resumed_pending_vcont_info): New.
(struct remote_thread_info) <resume_state, set_not_resumed,
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index 5924e83..81686ee 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -116,7 +116,6 @@ public:
const struct frame_unwind *get_tailcall_unwinder () override;
- void commit_resume () override;
void resume (ptid_t, int, enum gdb_signal) override;
ptid_t wait (ptid_t, struct target_waitstatus *, target_wait_flags) override;
@@ -2206,16 +2205,6 @@ record_btrace_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
}
}
-/* The commit_resume method of target record-btrace. */
-
-void
-record_btrace_target::commit_resume ()
-{
- if ((::execution_direction != EXEC_REVERSE)
- && !record_is_replaying (minus_one_ptid))
- beneath ()->commit_resume ();
-}
-
/* Cancel resuming TP. */
static void
diff --git a/gdb/record-full.c b/gdb/record-full.c
index 5ed9c1a..22eaaa4 100644
--- a/gdb/record-full.c
+++ b/gdb/record-full.c
@@ -267,7 +267,6 @@ public:
const target_info &info () const override
{ return record_full_target_info; }
- void commit_resume () override;
void resume (ptid_t, int, enum gdb_signal) override;
void disconnect (const char *, int) override;
void detach (inferior *, int) override;
@@ -1103,15 +1102,6 @@ record_full_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
target_async (1);
}
-/* "commit_resume" method for process record target. */
-
-void
-record_full_target::commit_resume ()
-{
- if (!RECORD_FULL_IS_REPLAY)
- beneath ()->commit_resume ();
-}
-
static int record_full_get_sig = 0;
/* SIGINT signal handler, registered by "wait" method. */