Harvard Architecture issues -- addresses vs pointers
Per Bothner
per@bothner.com
Thu Feb 8 13:21:00 GMT 2001
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/
More information about the Gdb
mailing list