aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2015-10-08 09:00:57 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-10-08 09:00:57 +0200
commit04c4fe8c59d3f2870a5df7be7f55fca60d88381f (patch)
tree5699292b8e3f1495b76b2381df2da57e7ae556b8
parent8c5b385cbf07f318b579780df683d2c6b04f20b0 (diff)
downloadgdb-04c4fe8c59d3f2870a5df7be7f55fca60d88381f.zip
gdb-04c4fe8c59d3f2870a5df7be7f55fca60d88381f.tar.gz
gdb-04c4fe8c59d3f2870a5df7be7f55fca60d88381f.tar.bz2
btrace: fix void return
record_btrace_resume returns the void return from the to_resume method of the target beneath. Split this into calling to_resume and return. gdb/ * record-btrace.c (record_btrace_resume): Fix void return.
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/record-btrace.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 84a4114..d73f207 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-10-08 Markus Metzger <markus.t.metzger@intel.com>
+
+ * record-btrace.c (record_btrace_resume): Fix void return.
+
2015-10-07 Yao Qi <yao.qi@linaro.org>
* aarch64-tdep.c: Include opcode/aarch64.h.
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c
index a9eb7fe..3f068e2 100644
--- a/gdb/record-btrace.c
+++ b/gdb/record-btrace.c
@@ -1910,7 +1910,8 @@ record_btrace_resume (struct target_ops *ops, ptid_t ptid, int step,
&& !record_btrace_is_replaying (ops, minus_one_ptid))
{
ops = ops->beneath;
- return ops->to_resume (ops, ptid, step, signal);
+ ops->to_resume (ops, ptid, step, signal);
+ return;
}
/* Compute the btrace thread flag for the requested move. */