This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Harvard Architecture issues -- addresses vs pointers
- To: David Taylor <taylor at cygnus dot com>
- Subject: Re: Harvard Architecture issues -- addresses vs pointers
- From: Per Bothner <per at bothner dot com>
- Date: 08 Feb 2001 13:29:02 -0800
- Cc: gdb at sourceware dot cygnus dot com
- References: <200102082050.PAA07793@texas.cygnus.com>
David Taylor <taylor@cygnus.com> writes:
> I feel that a user address should always mean the same thing.
> And that, for example,
>
> x/x 0x12345678
>
> x/i 0x12345678
>
> should both read the same set of bytes from the target.
I agree. We need soem syntax to specify address space literals.
I might suggest '@' followed by an address-space name. (I'm
not sure if this conflicts with the array "repeat" operator.)
0x12345678@i
0x12345678@d
More generally:
integer-expression @NAME
coerces the integer to a pointer in the named space.
This syntax could also be used for output.
--
--Per Bothner
per@bothner.com http://www.bothner.com/~per/