[PATCH] gdbserver: Fix crash when QTinit is handled with no inferior process attached

Luis Machado lgustavo@codesourcery.com
Thu Feb 5 13:37:00 GMT 2015


On 02/05/2015 11:30 AM, Antoine Tremblay wrote:
> ping
>
> On 01/27/2015 02:35 PM, Antoine Tremblay wrote:
>> When gdbserver is called with --multi and attach has not been called yet
>> and tstart is called on the gdb client, gdbserver would crash.
>> This patch fixes gdbserver so that it returns E01 to the gdb client.

Wouldn't it make more sense to prevent GDB from sending any tracepoint 
packets that require a running inferior if there is none?

I remember fixing this in a local tree but on GDB's side. I think it is 
remote.c:remote_trace_init and other related functions.

What do you think?



More information about the Gdb-patches mailing list