-
Notifications
You must be signed in to change notification settings - Fork 915
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
ctxp
doesn't work when cwatch execute 'p var'
#2579
Comments
The problem is with this code pwndbg/pwndbg/commands/context.py Lines 312 to 318 in ce954f7
It checks if the current context section is already at the top of the history stack and adds it otherwise. This is run everytime the context is displayed even if no new event happened which could have changed the state. This is fine for other views like disasm, but when evaluating expressions in cwatch gdb changes the The current approach of always rendering the newest context even while wanting to display a cached context from the history isn't ideal, especially for slow remote targets. I just don't know which events to hook to know if the context output might have changed. Just a prompt_hook doesn't help, since the data might not have been modified. Can all possible reasons the context output change be covered by events? |
The I am not sure what the |
I mean, there are a few issues that occured recently regarding the context history feature. Or: any chance u could track down those issues @peace-maker ? :< |
Were there more than this issue? |
Description
If I
cwatch execute 'p/z var'
,ctxp
doesn't work correctly.After I
cwatch execute 'p/z var'
, everytime Ictxp
, the history number just increases like this: 17/18, 18/19, 19/20, 20/21. The output ofp/z var
also changes from$39 = 0x00010001
to$40 = 0x00010001
.Seems like the proper context history is not used, and
p/z var
is executed over and over again.The correct behavior is to retrieve the proper context history instead of executing commands.
Steps to reproduce
start
cwatch execute 'p var'
ctxp
My setup
The text was updated successfully, but these errors were encountered: