diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2016-06-10 11:18:08 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2016-07-06 08:31:20 +0200 |
commit | e0139aa5f27ebef0bd92a182beca659e169560ef (patch) | |
tree | 69da51cb2374f87a837d23fee16b219b6e6f4816 /move-if-change | |
parent | 42d940118a6372d6e85f71a54fed75fdf5c606bd (diff) | |
download | binutils-gdb-e0139aa5f27ebef0bd92a182beca659e169560ef.tar.gz |
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
Diffstat (limited to 'move-if-change')
0 files changed, 0 insertions, 0 deletions