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: Thu, 05 Feb 2015 23:56:21 -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>
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.