This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Check for valid inferior before sending tracepoint packets
- From: Doug Evans <xdje42 at gmail dot com>
- To: lgustavo at codesourcery dot com
- Cc: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Antoine Tremblay <antoine dot tremblay at ericsson dot com>
- Date: Fri, 6 Feb 2015 00:02:36 -0800
- Subject: Re: [PATCH] Check for valid inferior before sending tracepoint packets
- Authentication-results: sourceware.org; auth=none
- References: <54D42E15 dot 5020108 at codesourcery dot com> <m3r3u3jwwq dot fsf at sspiff dot org>
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