This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Harvard Architecture issues -- addresses vs pointers


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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]