mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-5215: update RegView
This commit is contained in:
parent
66a43cd6ed
commit
6ea0f5722e
1 changed files with 6 additions and 2 deletions
|
@ -583,7 +583,10 @@ def putreg():
|
||||||
STATE.trace.create_overlay_space('register', rpath)
|
STATE.trace.create_overlay_space('register', rpath)
|
||||||
path = USER_REGS_PATTERN.format(procnum=nproc, tnum=nthrd)
|
path = USER_REGS_PATTERN.format(procnum=nproc, tnum=nthrd)
|
||||||
(values, keys) = create_generic(path)
|
(values, keys) = create_generic(path)
|
||||||
return {'missing': STATE.trace.put_registers(rpath, values)}
|
nframe = util.selected_frame()
|
||||||
|
# NB: We're going to update the Register View for non-zero stack frames
|
||||||
|
if nframe == 0:
|
||||||
|
return {'missing': STATE.trace.put_registers(rpath, values)}
|
||||||
|
|
||||||
nproc = util.selected_process()
|
nproc = util.selected_process()
|
||||||
if nproc < 0:
|
if nproc < 0:
|
||||||
|
@ -604,7 +607,8 @@ def putreg():
|
||||||
value = 0
|
value = 0
|
||||||
try:
|
try:
|
||||||
values.append(mapper.map_value(nproc, name, value))
|
values.append(mapper.map_value(nproc, name, value))
|
||||||
robj.set_value(name, hex(value))
|
if util.dbg.use_generics is False:
|
||||||
|
robj.set_value(name, hex(value))
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
return {'missing': STATE.trace.put_registers(space, values)}
|
return {'missing': STATE.trace.put_registers(space, values)}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue