From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1855 invoked by alias); 20 Feb 2007 20:04:57 -0000 Received: (qmail 1840 invoked by uid 22791); 20 Feb 2007 20:04:55 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 20 Feb 2007 20:04:48 +0000 Received: from dsl093-172-095.pit1.dsl.speakeasy.net ([66.93.172.95] helo=caradoc.them.org) by nevyn.them.org with esmtp (Exim 4.63) (envelope-from ) id 1HJbED-0007sT-VJ; Tue, 20 Feb 2007 15:04:46 -0500 Received: from drow by caradoc.them.org with local (Exim 4.63) (envelope-from ) id 1HJbED-0004gq-L2; Tue, 20 Feb 2007 15:04:45 -0500 Date: Tue, 20 Feb 2007 20:43:00 -0000 From: Daniel Jacobowitz To: Nick Roberts Cc: gdb@sourceware.org Subject: Re: [BUG] MI: -target-download Message-ID: <20070220200445.GA17693@caradoc.them.org> Mail-Followup-To: Nick Roberts , gdb@sourceware.org References: <17883.21118.186472.960228@kahikatea.snap.net.nz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17883.21118.186472.960228@kahikatea.snap.net.nz> User-Agent: Mutt/1.5.13 (2006-08-11) X-IsSubscribed: yes 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 X-SW-Source: 2007-02/txt/msg00213.txt.bz2 On Wed, Feb 21, 2007 at 08:56:46AM +1300, Nick Roberts wrote: > > In current GDB, the MI command, -target-download, doesn't generate th MI > ouptut as described in the manual. I think this is due to the change > in load_progress (symfile.c) from 2006-09-21: > > if (bytes == 0 && args->section_sent == 0) > { > /* The write is just starting. Let the user know we've started > this section. */ > ui_out_message (uiout, 0, "Loading section %s, size 0x%s lma 0x%s\n", > args->section_name, paddr_nz (args->section_size), > paddr_nz (args->lma)); > return; > } > > where GDB returns before getting to deprecated_show_load_progress. Which output, specifically, are you expecting and not getting? I think I was careful not to change the output, but that it already didn't match the manual, and there was something tricky about fixing it (I don't remember quite what). Looking at it now, though, I don't see anything wrong with the output. +download,{section=".interp",section-size="19",total-size="76849"} +download,{section=".interp",section-sent="19",section-size="19",total-sent="19",total-size="76849"} +download,{section=".note.ABI-tag",section-size="32",total-size="76849"} +download,{section=".hash",section-size="828",total-size="76849"} +download,{section=".dynsym",section-size="1728",total-size="76849"} ... +download,{section=".data",section-size="268",total-size="76849"} ^done,address="0x8049ae0",load-size="75777",transfer-rate="5051800",write-rate="459" -- Daniel Jacobowitz CodeSourcery