]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
btrace: check if we're replaying when setting the replay position to the end
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 10 Jun 2016 09:18:08 +0000 (11:18 +0200)
committerMarkus Metzger <markus.t.metzger@intel.com>
Wed, 6 Jul 2016 06:31:20 +0000 (08:31 +0200)
commite0139aa5f27ebef0bd92a182beca659e169560ef
tree69da51cb2374f87a837d23fee16b219b6e6f4816
parent42d940118a6372d6e85f71a54fed75fdf5c606bd
btrace: check if we're replaying when setting the replay position to the end

When setting the replay position to the end there is nothing to do if we are
not replaying.  Check that and return immediately.

This avoids printing the current location if we're already at the end.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
gdb/
* record-btrace.c (record_btrace_set_replay): Check if replaying.

testsuite/
* gdb.btrace/record_goto.exp: Test "record goto end" twice.

Change-Id: I4878892408bab293261bbea40d6af28440ff3ec5
gdb/record-btrace.c
gdb/testsuite/gdb.btrace/record_goto.exp