From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9313 invoked by alias); 23 Nov 2007 09:36:01 -0000 Received: (qmail 9304 invoked by uid 22791); 23 Nov 2007 09:36:00 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 23 Nov 2007 09:35:53 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1IvUwx-0003KW-P7 for gdb@sourceware.org; Fri, 23 Nov 2007 01:35:51 -0800 Message-ID: <13909258.post@talk.nabble.com> Date: Fri, 23 Nov 2007 09:36:00 -0000 From: Guillaume MENANT To: gdb@sourceware.org Subject: Re: Memory map with vFlashWrite In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: guillaume.menant@geensys.com References: <47444151.90604@geensys.com> 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-11/txt/msg00218.txt.bz2 Thanks for your answers Vladimir Prus wrote: > > Guillaume MENANT wrote: > >> Hello, >> >> 1 - Is the memory map mandatory for using vFlashXxxx commands ? > > Yes. The memory map should come as XML via target -- there's 'mem' > command that can be used to define memory map from gdb side, but > I don't think it can handle flash. > >> 2 - If yes, how does it works ? Gdb sends a "qSupported" command, then >> the stub answers with "qXfer:memory-map:read", then Gdb sends a >> "qXfer:memory-map:read::offset,length" and then the stub answers with an >> "l data" ? > > Yes. > >> 3 - If the process is correct, what values do we use for offset and >> length "qXfer:memory-map:read" command ? Do we send the whole XML file >> in the "l data" reply ? > > Who are "we"? GDB generally will try to read data using chunks as bit > as the remote side can handle. The remote side should behave as > specified in the qXfer documentation -- in particular, I don't think > it's allowed to return more data than asked for. > > - Volodya > > > > -- View this message in context: http://www.nabble.com/Memory-map-with-vFlashWrite-tf4850485.html#a13909258 Sent from the Sourceware - gdb list mailing list archive at Nabble.com.