aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-gnu-nat.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-05-30 18:43:25 +0000
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-05-30 18:43:25 +0000
commit53dff92cb56fb21dc81c183aa35a5a3ae8c06e32 (patch)
tree97e776df28463ce5e3db6cfe942244a9b972894b /gdb/i386-gnu-nat.c
parent5a8b86270bbce5f9316ef7bdaa1a20b4832335ca (diff)
downloadgdb-53dff92cb56fb21dc81c183aa35a5a3ae8c06e32.zip
gdb-53dff92cb56fb21dc81c183aa35a5a3ae8c06e32.tar.gz
gdb-53dff92cb56fb21dc81c183aa35a5a3ae8c06e32.tar.bz2
hurd: add gnu_target pointer to fix thread API calls
Fixes ../../gdb/gnu-nat.c:1110:28: error: cannot convert ‘ptid_t’ to ‘process_stratum_target*’ 1110 | thread_change_ptid (inferior_ptid, ptid); and others related to 5b6d1e4fa ("Multi-target support") gdb/ChangeLog: * gnu-nat.h (gnu_target): New variable declaration. * i386-gnu-nat.c (_initialize_i386gnu_nat): Initialize gnu_target. * gnu-nat.c (gnu_target): New variable. (inf_validate_procs): Pass gnu_target to thread_change_ptid, add_thread_silent, and add_thread calls. (gnu_nat_target::create_inferior): Pass gnu_target to add_thread_silent, thread_change_ptid call. (gnu_nat_target::detach): Pass gnu_target to detach_inferior call.
Diffstat (limited to 'gdb/i386-gnu-nat.c')
-rw-r--r--gdb/i386-gnu-nat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/i386-gnu-nat.c b/gdb/i386-gnu-nat.c
index afbe8ef..6382ca8 100644
--- a/gdb/i386-gnu-nat.c
+++ b/gdb/i386-gnu-nat.c
@@ -439,6 +439,8 @@ _initialize_i386gnu_nat ()
x86_set_debug_register_length (4);
#endif /* i386_DEBUG_STATE */
+ gnu_target = &the_i386_gnu_nat_target;
+
/* Register the target. */
add_inf_child_target (&the_i386_gnu_nat_target);
}