]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/target.c
Fix "Remote 'g' packet reply is too long" problems with multiple inferiors
[thirdparty/binutils-gdb.git] / gdb / target.c
index aded0ba34f12b697a3a89bf4d156dc0d35553f21..f2dccd23ced7034a35e843a7a6527bed5d993945 100644 (file)
@@ -3137,7 +3137,9 @@ default_watchpoint_addr_within_range (struct target_ops *target,
 static struct gdbarch *
 default_thread_architecture (struct target_ops *ops, ptid_t ptid)
 {
-  return target_gdbarch ();
+  inferior *inf = find_inferior_ptid (ptid);
+  gdb_assert (inf != NULL);
+  return inf->gdbarch;
 }
 
 static int