mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-5119: get_register_by_index can fail
This commit is contained in:
parent
b80cfdff3f
commit
54cd023fc9
1 changed files with 1 additions and 1 deletions
|
@ -591,8 +591,8 @@ def putreg():
|
||||||
regs = util.dbg._base.reg
|
regs = util.dbg._base.reg
|
||||||
for i in range(0, len(regs)):
|
for i in range(0, len(regs)):
|
||||||
name = regs._reg.GetDescription(i)[0]
|
name = regs._reg.GetDescription(i)[0]
|
||||||
value = regs._get_register_by_index(i)
|
|
||||||
try:
|
try:
|
||||||
|
value = regs._get_register_by_index(i)
|
||||||
values.append(mapper.map_value(nproc, name, value))
|
values.append(mapper.map_value(nproc, name, value))
|
||||||
robj.set_value(name, hex(value))
|
robj.set_value(name, hex(value))
|
||||||
except Exception:
|
except Exception:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue