mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-30 21:44:19 +08:00
Don't write to inferior_ptid in linux_get_siginfo_data
gdb/ChangeLog: 2020-06-18 Pedro Alves <palves@redhat.com> * linux-tdep.c (btrace_fetch): Save/restore current thread instead of saving/restoring inferior_ptid.
This commit is contained in:
parent
a8a566853a
commit
41792d688a
@ -1,3 +1,8 @@
|
||||
2020-06-18 Pedro Alves <palves@redhat.com>
|
||||
|
||||
* linux-tdep.c (btrace_fetch): Save/restore current thread instead
|
||||
of saving/restoring inferior_ptid.
|
||||
|
||||
2020-06-17 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-win.h (tui_scroll_forward, tui_scroll_backward)
|
||||
|
@ -1612,8 +1612,8 @@ linux_get_siginfo_data (thread_info *thread, struct gdbarch *gdbarch)
|
||||
if (!gdbarch_get_siginfo_type_p (gdbarch))
|
||||
return gdb::byte_vector ();
|
||||
|
||||
scoped_restore save_inferior_ptid = make_scoped_restore (&inferior_ptid);
|
||||
inferior_ptid = thread->ptid;
|
||||
scoped_restore_current_thread save_current_thread;
|
||||
switch_to_thread (thread);
|
||||
|
||||
siginfo_type = gdbarch_get_siginfo_type (gdbarch);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user