public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: gdb@sources.redhat.com
Subject: Re: Writing to Memory and Page Alignment
Date: Thu, 07 Aug 2003 13:53:00 -0000	[thread overview]
Message-ID: <20030807135352.GC28000@nevyn.them.org> (raw)
In-Reply-To: <3f322bad.5564.0@esatclear.ie>

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

  parent reply	other threads:[~2003-08-07 13:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-07 10:36 David Mc Kenna
2003-08-07 12:06 ` Duane Ellis
2003-08-07 13:53 ` Daniel Jacobowitz [this message]
2003-08-07 12:19 David Mc Kenna

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030807135352.GC28000@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).