aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorBorislav Petkov <[email protected]>2020-11-19 19:20:18 +0100
committerBorislav Petkov <[email protected]>2021-03-15 11:12:15 +0100
commit6e8c83d2a3afbfd5ee019ec720b75a42df515caa (patch)
treef39814f04d522dd503035196cc15afd42be429a5 /scripts/gdb/linux/utils.py
parent93281c4a96572a34504244969b938e035204778d (diff)
x86/insn-eval: Handle return values from the decoder
Now that the different instruction-inspecting functions return a value, test that and return early from callers if error has been encountered. While at it, do not call insn_get_modrm() when calling insn_get_displacement() because latter will make sure to call insn_get_modrm() if ModRM hasn't been parsed yet. Signed-off-by: Borislav Petkov <[email protected]> Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions