This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH 3/3] Fix "Remote 'g' packet reply is too long" problems with multiple inferiors


On 10/05/2017 05:50 PM, Ulrich Weigand wrote:
> Pedro Alves wrote:
> 
>> 	* target.c (default_thread_architecture): Use the sepecified
>> 	inferior's architecture, instead of the current inferior's
>> 	architecture (via target_gdbarch).
> 
> This causes a number of ICEs in the test suite for me, at the point when
> default_thread_architecture is called from linux_child_follow_fork here:
> 
>           if (!gdbarch_software_single_step_p (target_thread_architecture
>                                                (child_lp->ptid)))
> 
> Note that at this point there is no inferior for the child, and I think
> there will never be one since the child is to be detached immediately.
> 
> Given that this is a fork, I guess a simple fix would be to check
> for the parent's thread architecture here instead.

Indeed, sorry about that.  I noticed this too this afternoon,
and wrote a fix just like you suggest and was just waiting for
a test run to complete.  Results look good, so I'll push it
in in a bit.

Thanks,
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]