diff options
author | Bruno Larsen <blarsen@redhat.com> | 2023-01-02 14:35:50 +0100 |
---|---|---|
committer | Bruno Larsen <blarsen@redhat.com> | 2023-01-06 10:51:50 +0100 |
commit | 37f54063ed0daaffbd52f69efbdb4c8e0a9c9cca (patch) | |
tree | 0cf886601fb04de161f8417f6363cf7e561728e4 /gdb/NEWS | |
parent | 695e9773786d79f191e9487a88d3b39a57d9c7e7 (diff) | |
download | gdb-37f54063ed0daaffbd52f69efbdb4c8e0a9c9cca.zip gdb-37f54063ed0daaffbd52f69efbdb4c8e0a9c9cca.tar.gz gdb-37f54063ed0daaffbd52f69efbdb4c8e0a9c9cca.tar.bz2 |
gdb/mi: add no-history stop reason
When executing in reverse and runs out of recorded history, GDB prints
a warning to the user, but does not add a reason in the stopped record,
for example:
*stopped,frame={addr="0x000000000040113e",func="main",args=[],file="/home/blarsen/Documents/fsf_build/gdb/testsuite/../../../binutils-gdb/gdb/testsuite/gdb.reverse/solib-reverse.c",fullname="/home/blarsen/Documents/binutils-gdb/gdb/testsuite/gdb.reverse/solib-reverse.c",line="27",arch="i386:x86-64"},thread-id="1",stopped-threads="all",core="1"
This problem was reported as record/29260.
This commit adds the reason no-history to the record, making it easier
for interfaces using the mi interpreter to report the result. It also
changes the test gdb.mi/mi-reverse.exp to test that the reason shows up
correctly.
Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=29260
Diffstat (limited to 'gdb/NEWS')
-rw-r--r-- | gdb/NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -17,6 +17,11 @@ maintenance print record-instruction [ N ] prints how GDB would undo the N-th previous instruction, and if N is positive, it prints how GDB will redo the N-th following instruction. +* MI changes + +** mi now reports 'no-history' as a stop reason when hitting the end of the + reverse execution history. + *** Changes in GDB 13 * MI version 1 is deprecated, and will be removed in GDB 14. |