This is the mail archive of the gdb-patches@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: [RFC/RFA] gdb extension for Harvard architectures


>> 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



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