From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12566 invoked by alias); 18 Jul 2002 18:25:51 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12559 invoked from network); 18 Jul 2002 18:25:50 -0000 Received: from unknown (HELO web13507.mail.yahoo.com) (216.136.175.86) by sources.redhat.com with SMTP; 18 Jul 2002 18:25:50 -0000 Message-ID: <20020718182550.41560.qmail@web13507.mail.yahoo.com> Received: from [63.241.137.193] by web13507.mail.yahoo.com via HTTP; Thu, 18 Jul 2002 11:25:50 PDT Date: Thu, 18 Jul 2002 11:25:00 -0000 From: Alexei Minayev Subject: Re: gdb-h8-stub To: Daniel Jacobowitz Cc: gdb@sources.redhat.com In-Reply-To: <20020718143656.GA17241@nevyn.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-07/txt/msg00181.txt.bz2 Hi Daniel, thanks for clarification. My question is though, after sending an absolute start address with the 'X' command, and getting rejected, the gdb doesn't replicate it with 'M' command. The 'M' command has only relative addresses... X200000 M0,15:... ; (this would actually mean 0x200000 to 0x200015) M15,15:... M30,15:... ... So according to this, the stub *must* read the address from the X command and store it for future memory operations, even if it doesn't support binary downloads. In your opinion, is that what gdb means? Thanks a lot! Regards -- Alexei --- Daniel Jacobowitz wrote: > On Thu, Jul 18, 2002 at 10:26:30AM -0400, Peter Barada wrote: > > [skipped] > > You're right about gdb infering that the stub doesn't support 'X' by > > the empty response packet. An empty packet is the response the stub > > sends back to the host for any command that it doesn't understand. > > Once gdb figures out that 'X' (write binary to memory) isn't supported > > by the stub(due to the empy packet), it falls back to trying 'M' > > (write hex to memory) and finds that it works(since all stubs are > > required to support 'M'). The 'X' command is an extension so 'load' > > runs about twice as fast. > > Right. The corollary is that M and X should be using the same address. > This works for most targets; you'll need to figure out why it doesn't > work for yours. It may be a VMA/LMA thing... > > -- > Daniel Jacobowitz Carnegie Mellon University > MontaVista Software Debian GNU/Linux Developer __________________________________________________ Do You Yahoo!? Yahoo! Autos - Get free new car price quotes http://autos.yahoo.com