mirror of https://github.com/pwndbg/pwndbg.git
Improve search --next speed and add --trunc-out flag (#1066)
This commit improves the `search --next ...` speed by making it so that only the saved addresses are checked. Previously, the command performed a full search even in the presence of `--next` flag and only afterwards filtered the results. That resulted in extremely slow execution e.g. when debugging processes with gigabytes of allocated memory. The commit also adds a `--trunc-out` argument which makes it so that only 20 results are displayed. This is helpful when performing a CheatEngine-style search when we try to locate a given field/value address in memory by first finding its known value, then changing its value in the program and then re-searching the space. The `--trunc-out` argument could further be improved by enabling it default and making users aware that the results were truncated.pull/1073/head
parent
06cc17b6b4
commit
6dd25c3617
Loading…
Reference in new issue