Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Robin den Hertog <robin@den-hertog.org>
Cc: gdb@sourceware.org
Subject: Re: byte word and int(32) safe memory access?
Date: Fri, 22 Aug 2008 14:32:00 -0000	[thread overview]
Message-ID: <20080822112353.GA9175@caradoc.them.org> (raw)
In-Reply-To: <1021db0c0808220135s7ff206fexbc0e410889414558@mail.gmail.com>

On Fri, Aug 22, 2008 at 10:35:20AM +0200, Robin den Hertog wrote:
> hey,
> 
> I would like to be able to send bytes words and int's that are
> read/written as such to my embedded target.
> (some fpga's and other peripheral hardware need their registers to be
> read/written in one action).
> the protocol doesn't support this, what is more the way the `m' packet
> is defined it is unsure how it will handle the read at all.

What problem, exactly, are you solving here?  In practice, if you tell
GDB to read an int it will read an int; if you tell it to read a byte
it will read a byte.  It's only when accessing multi-word structures
that you get a problem.  And in those cases it's sometimes possible to
teach the stub to handle it transparently.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2008-08-22 11:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-22 14:30 Robin den Hertog
2008-08-22 14:32 ` Daniel Jacobowitz [this message]
2008-08-22 14:34   ` Robin den Hertog
2008-08-22 14:43     ` Daniel Jacobowitz

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=20080822112353.GA9175@caradoc.them.org \
    --to=drow@false.org \
    --cc=gdb@sourceware.org \
    --cc=robin@den-hertog.org \
    /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