

Fix #932,#788: fix command parsing by disconnect3d · Pull Request #976 · pwndbg/...
source link: https://github.com/pwndbg/pwndbg/pull/976
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Conversation
When we moved to argparse command parsing we introduced gdb_sloppy_parse
which wasn't perfect: e.g. for gdb.parse_and_eval("__libc_start_main")
would return a gdb.Value()
whose .type.name
was long long
.
As a result when code that used gdb_sloppy_parse
then casted the result to int(gdb_value)
it crashed because for some reason GDB errored.
This commit fixes the issues related to it by adding AddressExpr
and HexOrAddressExpr
functions.
It also adds tests for some of the windbg compatibility commands and fixes some nifty details here and there.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK