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: RFA: addresses and pointers may be different sizes while printing


> > I was thinking more of doc/gdb.texinfo.
> 
> 
> Something like this?
> 
> Index: gdb.texinfo
> ===================================================================
> RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
> retrieving revision 1.38
> diff -c -c -b -F'^(' -r1.38 gdb.texinfo
> *** gdb.texinfo	2001/04/02 08:58:19	1.38
> --- gdb.texinfo	2001/07/05 23:23:31
> ***************
> *** 4381,4387 ****
>   
>   Casts are supported in all languages, not just in C, because it is so
>   useful to cast a number into a pointer in order to examine a structure
> ! at that address in memory.
>   @c FIXME: casts supported---Mod2 true?
>   
>   @value{GDBN} supports these operators, in addition to those common
> --- 4381,4388 ----
>   
>   Casts are supported in all languages, not just in C, because it is so
>   useful to cast a number into a pointer in order to examine a structure
> ! at that address in memory.  Where the value of a cast is undefined by
> ! the language, GDB tries to interpret the cast the same way GCC would.
>   @c FIXME: casts supported---Mod2 true?
>   
>   @value{GDBN} supports these operators, in addition to those common


I think that is still too vague and fuzzy.  There needs to be a concrete 
example and a testcase.

These are probably something to do separate to these patches but they do 
need doing.  At present, there is nothing explaining (and testing) GDB's 
behavour on a harvard architecture.

	Andrew



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