GP-5215: update RegView

This commit is contained in:
d-millar 2024-12-20 16:06:22 -05:00
parent 66a43cd6ed
commit 6ea0f5722e

View file

@ -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)}