This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: byte word and int(32) safe memory access?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Robin den Hertog <robin at den-hertog dot org>
- Cc: gdb at sourceware dot org
- Date: Fri, 22 Aug 2008 07:23:53 -0400
- Subject: Re: byte word and int(32) safe memory access?
- References: <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