Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/GP-5215_d-millar_dbgmodel_reg_up…
Browse files Browse the repository at this point in the history
…date'
  • Loading branch information
ryanmkurtz committed Dec 23, 2024
2 parents dacc9b2 + 6ea0f57 commit 76e4ac5
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,10 @@ def putreg():
STATE.trace.create_overlay_space('register', rpath)
path = USER_REGS_PATTERN.format(procnum=nproc, tnum=nthrd)
(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()
if nproc < 0:
Expand All @@ -604,7 +607,8 @@ def putreg():
value = 0
try:
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:
pass
return {'missing': STATE.trace.put_registers(space, values)}
Expand Down

0 comments on commit 76e4ac5

Please sign in to comment.