[PATCH] Check for valid inferior before sending tracepoint packets

Doug Evans xdje42@gmail.com
Fri Feb 6 08:02:00 GMT 2015


On Thu, Feb 5, 2015 at 11:56 PM, Doug Evans <xdje42@gmail.com> wrote:
> Luis Machado <lgustavo@codesourcery.com> writes:
>> This almost trivial patch prevents GDB from sending a few tracepoint
>> packets when no inferior is selected. This robustifies things a bit
>> and complements the fix Antoine submitted for gdbserver.
>>
>> I'm not quite sure how a testcase for this would look like given it
>> needs extended-remote mode and also needs to connect to the target
>> without a running inferior.
>
> Hi.
> The gdb.server/ext-run.exp testcase looks like it would be a
> good starting point for such a testcase.

Or this, if this is indeed non-gdbserver-specific.

https://sourceware.org/ml/gdb-patches/2015-02/msg00138.html



More information about the Gdb-patches mailing list