From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26139 invoked by alias); 7 Aug 2003 13:53:53 -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 26126 invoked from network); 7 Aug 2003 13:53:53 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 7 Aug 2003 13:53:53 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19klDE-0007JO-Ns for ; Thu, 07 Aug 2003 09:53:52 -0400 Date: Thu, 07 Aug 2003 13:53:00 -0000 From: Daniel Jacobowitz To: gdb@sources.redhat.com Subject: Re: Writing to Memory and Page Alignment Message-ID: <20030807135352.GC28000@nevyn.them.org> Mail-Followup-To: gdb@sources.redhat.com References: <3f322bad.5564.0@esatclear.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3f322bad.5564.0@esatclear.ie> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00097.txt.bz2 On Thu, Aug 07, 2003 at 11:36:29AM +0100, David Mc Kenna wrote: > Hi all, > > Is it possible to force gdb to write data to a target in a page aligned ( boundary > ) manner? > > For example, I have flash memory which is located at 0x8000 and the page size > is 256bytes. Under the current setup, gdb can overlap the pages and cause problems, > e.g. $MF0,40:.......#CS, here pages 0 and 1 overlap. Is it possible to get gdb > to split this command into two page aligned commands? i.e. $MF0,10:...#CS, page > 0 written, and $M100,30:...#CS, page 1 written. This sounds like something your remote stub (on the target) should be taking care of. If it can't, you could locally hack remote.c:remote_xfer_memory. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer