This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Writing to Memory and Page Alignment


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]