From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5237 invoked by alias); 6 Feb 2015 08:02:42 -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 5208 invoked by uid 89); 6 Feb 2015 08:02:41 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 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-we0-f178.google.com Received: from mail-we0-f178.google.com (HELO mail-we0-f178.google.com) (74.125.82.178) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 06 Feb 2015 08:02:40 +0000 Received: by mail-we0-f178.google.com with SMTP id k48so12070399wev.9 for ; Fri, 06 Feb 2015 00:02:36 -0800 (PST) MIME-Version: 1.0 X-Received: by 10.180.37.33 with SMTP id v1mr663370wij.76.1423209756754; Fri, 06 Feb 2015 00:02:36 -0800 (PST) Received: by 10.27.20.5 with HTTP; Fri, 6 Feb 2015 00:02:36 -0800 (PST) In-Reply-To: References: <54D42E15.5020108@codesourcery.com> Date: Fri, 06 Feb 2015 08:02:00 -0000 Message-ID: Subject: Re: [PATCH] Check for valid inferior before sending tracepoint packets From: Doug Evans To: lgustavo@codesourcery.com Cc: "gdb-patches@sourceware.org" , Antoine Tremblay Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00149.txt.bz2 On Thu, Feb 5, 2015 at 11:56 PM, Doug Evans wrote: > 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. Or this, if this is indeed non-gdbserver-specific. https://sourceware.org/ml/gdb-patches/2015-02/msg00138.html