From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5773 invoked by alias); 10 Apr 2014 20:13:05 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 5764 invoked by uid 89); 10 Apr 2014 20:13:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-HELO: mail-pa0-f52.google.com Received: from mail-pa0-f52.google.com (HELO mail-pa0-f52.google.com) (209.85.220.52) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Thu, 10 Apr 2014 20:13:03 +0000 Received: by mail-pa0-f52.google.com with SMTP id rd3so4457099pab.11 for ; Thu, 10 Apr 2014 13:13:01 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=s1xAyL4qimrsnfXDzmxlFONWZOwcrKE050WosjyRI+8=; b=mJfHbs1aa+EyMtIVHlzGvOuvOclWcoSXmV1UUirx+/c/nd+ZD+V6kEuE84oHHx/Eii /19KHAbfjYH8/9nV6nQnHOLUK5NZajqbMkSaeKNkH3wWdYgNiyuEL1zfTHZ6o/RQiCmI nF8jdLTqgTqaDoN0Vdbj3kDSndnObl1HmzfjRecuka4O6cP1urp/UkSvOMTF1/2+12GR HoT3NU7ivtuLSR9uR1uigooLd+LVcGGFR1GsrV+Ks+5tniLtlQbGvs+N4lA5OARyjEzz pp1XwFZdgVnfBOuuF1Wz3AH3Ry22RmzMXDFHE1PlqMogWzWPx9UhuDRz5Cmv//cX6btd L1bg== X-Gm-Message-State: ALoCoQnw2PQRwn5G4kHfhzjQ7yiqj1c60CyUJ6wl8DogS+0fr7iMWWv+9i+PZCWpTuxGkSGCWpmL X-Received: by 10.68.136.162 with SMTP id qb2mr22167890pbb.88.1397160781783; Thu, 10 Apr 2014 13:13:01 -0700 (PDT) Received: from linux (ip72-200-182-56.ri.ri.cox.net. [72.200.182.56]) by mx.google.com with ESMTPSA id bz4sm10969109pbb.12.2014.04.10.13.13.00 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 10 Apr 2014 13:13:01 -0700 (PDT) Date: Fri, 11 Apr 2014 10:01:00 -0000 From: Bob Rossi To: Vladimir Prus Cc: GDB Development Subject: Re: MI async status output Message-ID: <20140410201259.GA15060@linux> References: <20140409210803.GA3166@linux> <5346B226.40209@cs.msu.su> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5346B226.40209@cs.msu.su> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2014-04/txt/msg00039.txt.bz2 On Thu, Apr 10, 2014 at 07:00:54PM +0400, Vladimir Prus wrote: > On 10.04.2014 01:08, Bob Rossi wrote: > >I'm writing unit tests for my MI parser and was trying to get > >GDB to output some out of band, async records of type: > >status-async-output. ... > >Does anyone have a simple recipe for getting GDB to output some > >async status output? > > I think the only case where "+" notification is used is load command > with sufficiently big binary. See mi-main.c:mi_load_progress. I don't > know whether it can be triggered without bare-metal target. It's unobvious to me how to get GDB to trigger this functionality. I'd be greatful if anyone could show a quick example getting code coverage on GDB where the mi-main.c:mi_load_progress code is hit which outputs the fputs_unfiltered ("+download", raw_stdout); lines (or similiar async status output in GDB). Any takers? Thanks, Bob Rossi