[PATCH 3/3] Fix "Remote 'g' packet reply is too long" problems with multiple inferiors
Yao Qi
qiyaoltc@gmail.com
Tue Oct 3 11:40:00 GMT 2017
Pedro Alves <palves@redhat.com> writes:
> 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;
> }
It is right, but forgot to mention that we need to update
spu_thread_architecture too,
if (parse_spufs_run (ptid, &spufs_fd, &spufs_addr))
return spu_gdbarch (spufs_fd);
return target_gdbarch ();
it looks wrong to call target_gdbarch. We may need to replace
target_gdbarch with default_thread_architecture.
--
Yao (齐尧)
More information about the Gdb-patches
mailing list