diff options
author | Guinevere Larsen <blarsen@redhat.com> | 2024-08-26 10:33:17 -0300 |
---|---|---|
committer | Guinevere Larsen <blarsen@redhat.com> | 2024-08-26 10:33:57 -0300 |
commit | 089197010993b3a5dc50bf882470bab2de696d92 (patch) | |
tree | f7a7cb3d6c85407548976115ef17358d9774a6ac /gdb/testsuite/gdb.btrace/multi-thread-step.exp | |
parent | 05b3e96495386ee41358c68b8787274ce77ae049 (diff) | |
download | gdb-089197010993b3a5dc50bf882470bab2de696d92.zip gdb-089197010993b3a5dc50bf882470bab2de696d92.tar.gz gdb-089197010993b3a5dc50bf882470bab2de696d92.tar.bz2 |
Change message when reaching end of reverse history.
In a record session, when we move backward, GDB switches from normal
execution to simulation. Moving forward again, the emulation continues
until the end of the reverse history. When the end is reached, the
execution stops, and a warning message is shown. This message has been
modified to indicate that the forward emulation has reached the end, but
the execution can continue as normal, and the recording will also continue.
Before this patch, the warning message shown in that case was the same as
in the reverse case. This meant that when the end of history was reached in
either backward or forward emulation, the same message was displayed:
"No more reverse-execution history."
This message has changed for these two cases. Backward emulation:
"Reached end of recorded history; stopping.
Backward execution from here not possible."
Forward emulation:
"Reached end of recorded history; stopping.
Following forward execution will be added to history."
The reason for this change is that the initial message was deceiving, for
the forward case, making the user believe that forward debugging could not
continue.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31224
Reviewed-By: Markus T. Metzger <markus.t.metzger@intel.com> (btrace)
Approved-By: Guinevere Larsen <blarsen@redhat.com>
Diffstat (limited to 'gdb/testsuite/gdb.btrace/multi-thread-step.exp')
-rw-r--r-- | gdb/testsuite/gdb.btrace/multi-thread-step.exp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.btrace/multi-thread-step.exp b/gdb/testsuite/gdb.btrace/multi-thread-step.exp index 154db9a..cd20e8a 100644 --- a/gdb/testsuite/gdb.btrace/multi-thread-step.exp +++ b/gdb/testsuite/gdb.btrace/multi-thread-step.exp @@ -111,14 +111,14 @@ proc test_cont {} { with_test_prefix "cont" { gdb_test "thread 1" ".*" with_test_prefix "thread 1" { - gdb_test "continue" "No more reverse-execution history.*" + gdb_test "continue" "Reached end of recorded history.*" check_not_replaying 1 check_replay_insn 2 2 } gdb_test "thread 2" ".*" with_test_prefix "thread 2" { - gdb_test "continue" "No more reverse-execution history.*" + gdb_test "continue" "Reached end of recorded history.*" check_not_replaying 1 check_not_replaying 2 @@ -128,7 +128,7 @@ proc test_cont {} { proc test_cont_all {} { with_test_prefix "cont-all" { - gdb_test "continue" "No more reverse-execution history.*" + gdb_test "continue" "Reached end of recorded history.*" # this works because we're lock-stepping threads that executed exactly # the same code starting from the same instruction. |