mirror of https://github.com/pwndbg/pwndbg.git
Fix context history with `cwatch`'d expressions (#2617)
The output of the expressions section changes even when running `context` multiple times after each other. The output variables in GDB are counted up when reexecuting the watched commands for example. The other sections don't change their output. This caused the history to be extended infinitely when using `ctxp` while having a `cwatch` command executed. Special case the `expressions` context section in the history handling to avoid reevaluating the watched commands/expressions while browsing the history. This doesn't add the context output to the history when the expressions VALUES change somehow like it is done for the other sections, but since we cannot know if gdb counted up their output variable names from $1 to $2 or the value changed, this is a compromise.pull/2635/head
parent
6a983126da
commit
6e4f89b4ff
Loading…
Reference in new issue