From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23310 invoked by alias); 6 Feb 2015 07:57:12 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 23272 invoked by uid 89); 6 Feb 2015 07:57:10 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pd0-f169.google.com Received: from mail-pd0-f169.google.com (HELO mail-pd0-f169.google.com) (209.85.192.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 06 Feb 2015 07:57:09 +0000 Received: by pdbnh10 with SMTP id nh10so10622642pdb.12 for ; Thu, 05 Feb 2015 23:57:07 -0800 (PST) X-Received: by 10.66.141.234 with SMTP id rr10mr3682429pab.150.1423209427615; Thu, 05 Feb 2015 23:57:07 -0800 (PST) Received: from seba.sebabeach.org.gmail.com (173-13-178-53-sfba.hfc.comcastbusiness.net. [173.13.178.53]) by mx.google.com with ESMTPSA id th8sm7158271pbc.38.2015.02.05.23.57.06 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Feb 2015 23:57:06 -0800 (PST) From: Doug Evans To: Cc: "'gdb-patches\@sourceware.org'" , Antoine Tremblay Subject: Re: [PATCH] Check for valid inferior before sending tracepoint packets References: <54D42E15.5020108@codesourcery.com> Date: Fri, 06 Feb 2015 07:57:00 -0000 In-Reply-To: <54D42E15.5020108@codesourcery.com> (Luis Machado's message of "Fri, 6 Feb 2015 00:59:33 -0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00148.txt.bz2 Luis Machado 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.