]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gdb/reverse: force direction to forward when stopping record
authorGuinevere Larsen <guinevere@redhat.com>
Thu, 23 Oct 2025 19:29:13 +0000 (16:29 -0300)
committerGuinevere Larsen <guinevere@redhat.com>
Mon, 22 Dec 2025 12:29:22 +0000 (09:29 -0300)
commit7cbe6e19144250fdf34f84773b0b7570cc1b671b
tree08ded3c392b44ef951e008953cb7453648556bfa
parentbc6a45d2b8759db8e26eadd284b7ee793892e80c
gdb/reverse: force direction to forward when stopping record

If a user had set the execution direction to reverse, and then they use
the command "record stop", the execution direction will be cached as
reversed, which will affect some warning messages, and can confuse
users.

This commit fixes this by forcing the execution direction to "forward"
when the command "record stop" is executed.

Approved-By: Guinevere Larsen <guinevere@redhat.com>
gdb/record.c
gdb/testsuite/gdb.reverse/basic-record-full.c [new file with mode: 0644]
gdb/testsuite/gdb.reverse/basic-record-full.exp [new file with mode: 0644]