-
Notifications
You must be signed in to change notification settings - Fork 563
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reverse execution doesn't work in gud-gdb #1484
Comments
Are you sure you're doing the |
Yes. |
I tried upgrading from the stock gdb 7.7.1 to gdb 7.9 and now get this error when trying to start execution:
|
Interestingly I see the same behaviour when running gdb, sourcing the required macros, and using the remote target. |
This is very confusing! rr doesn't do anything magical to gdb. You can see how we launch gdb in |
Interestingly enough, when I use the exact commands that rr uses then
gdb:
|
Aha! You were exactly right; I still am not sure why the 7.7.1 gdb is being picked up by one and 7.9.1 by the other, but forcing gud-gdb to use 7.7.1 makes reverse execution work as expected. |
That still leaves us with a bug to fix with 7.9.1, I guess? If you run that from the command line do you reproduce a bug? What if you force rr to use it? |
On a similar point, do we have any idea how to use rr with the normal
followed by this error message after every attempt to run a command:
If, however you try and do something like Does rr support the machine-readable gdb mode? |
You can wrap gdb in a script that passes extra parameters to gdb (as well as forwarding any parameters passed to the script), and run |
Awesome, thank you. For anyone else that wants to get it working, it requires a small patch to |
I suggest closing this as ... "closed" (external issue). |
http://www.gnu.org/software/emacs/manual/html_node/emacs/Debugger-Operation.html#Debugger-Operation
This is different from regular
M-x gdb
mode in that it doesn't use the machine interface to gdb. It works quite well forrr replay -s 9999
, except that any attempt to perform reverse execution on my traces yields:whereas it works perfectly on the same recording when executed in gdb via
rr replay
:The text was updated successfully, but these errors were encountered: