diff options
Diffstat (limited to 'gdb/procfs.c')
-rw-r--r-- | gdb/procfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/procfs.c b/gdb/procfs.c index 0e8a08f..3a5d173 100644 --- a/gdb/procfs.c +++ b/gdb/procfs.c @@ -3605,7 +3605,7 @@ procfs_target::make_corefile_notes (bfd *obfd, int *note_size) stop_signal = find_stop_signal (); - fill_gregset (get_current_regcache (), &gregs, -1); + fill_gregset (get_thread_regcache (inferior_thread ()), &gregs, -1); note_data.reset (elfcore_write_pstatus (obfd, note_data.release (), note_size, inferior_ptid.pid (), stop_signal, &gregs)); |