diff options
Diffstat (limited to 'gdb/windows-nat.c')
-rw-r--r-- | gdb/windows-nat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c index a909733..2fa79af 100644 --- a/gdb/windows-nat.c +++ b/gdb/windows-nat.c @@ -1248,9 +1248,10 @@ windows_resume (struct target_ops *ops, if (step) { /* Single step by setting t bit */ - windows_fetch_inferior_registers (ops, - get_current_regcache (), - gdbarch_ps_regnum (current_gdbarch)); + struct regcache *regcache = get_current_regcache (); + struct gdbarch *gdbarch = get_regcache_arch (regcache); + windows_fetch_inferior_registers (ops, regcache, + gdbarch_ps_regnum (gdbarch)); th->context.EFlags |= FLAG_TRACE_BIT; } |