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] gdbserver: Fix crash when QTinit is handled with no inferior process attached


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?


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