[RFC] Change displayed line when execution direction is reversed

Bruno Larsen blarsen@redhat.com
Wed Jun 15 12:25:37 GMT 2022

Hello all,

I was doing some reverse debugging and noticed that setting the execution direction to reverse does not change how GDB displays lines. The problem with this is that the user doesn't see what will be executed if a step is taken, which makes the user experience quite annoying. How would the community feel if GDB printed the previous line, instead of current line, when the execution direction is reversed?

Sorry if this is the wrong list. It didn't feel like a bug, and I don't have a patch yet, so this felt like the best place to send.
Bruno Larsen

More information about the Gdb mailing list