[RFC/RFA] gdb extension for Harvard architectures
Andrew Cagney
ac131313@cygnus.com
Tue Oct 9 23:34:00 GMT 2001
>> Since the pointee gets the attribute it is possible to construct things
>> like:
>>
>> (@code struct { @data int i; @io unsigned char *@data c; } *)
>>
>> was this the intent? (I suspect it was: having a @data -> @io space
>> pointer sitting in code memory, while sick, is still plausable).
>
>
> You can't have a struct living in code space with a member in data
> space; a struct's members live in the same space as the struct itself.
The syntax change will allow it even though it is probably meaningless
(Mind you, i've this fuzzy memory of a language (ada?, VAX pascal?)
allowing you to specify sparse structures.)
With regard to a @data->@io pointer. That is probably wrong. Pointers,
which are typically implemented as address registers (not to be confused
with GDB's core addr), have a fixed size for a given address space.
Andrew
More information about the Gdb-patches
mailing list