diff options
Diffstat (limited to 'overlay/mgdb/gdb/winnt-nat.c')
-rw-r--r-- | overlay/mgdb/gdb/winnt-nat.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index 5ce4a4c..a52ce8e 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -678,9 +678,22 @@ static void winnt_store_registers ( struct regcache * rcache, int regnum) { - (void)t; - (void)rcache; - (void)regnum; + pid_t tid; + struct winnt_thread * thread; + + tid = inferior_ptid.tid; + + if (!(thread = winnt_get_thread_from_ptid(inferior_ptid))) + winnt_perror("internal error: thread record not found",tid); + + if (sizeof(uintptr_t) == 8) + amd64_winnt_store_registers( + rcache,regnum, + thread); + else + i386_winnt_store_registers( + rcache,regnum, + thread); } static void winnt_attach (struct target_ops * t, const char * args, int from_tty) |