aboutsummaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.h
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/gnu-nat.h
parent5a8b86270bbce5f9316ef7bdaa1a20b4832335ca (diff)
downloadbinutils-53dff92cb56fb21dc81c183aa35a5a3ae8c06e32.zip
binutils-53dff92cb56fb21dc81c183aa35a5a3ae8c06e32.tar.gz
binutils-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/gnu-nat.h')
-rw-r--r--gdb/gnu-nat.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/gnu-nat.h b/gdb/gnu-nat.h
index 766f716..7c36778 100644
--- a/gdb/gnu-nat.h
+++ b/gdb/gnu-nat.h
@@ -150,4 +150,7 @@ struct gnu_nat_target : public inf_child_target
void stop (ptid_t) override;
};
+/* The final/concrete instance. */
+extern gnu_nat_target *gnu_target;
+
#endif /* GNU_NAT_H */