This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: addresses and pointers may be different sizes while printing
- To: Jim Blandy <jimb at cygnus dot com>
- Subject: Re: RFA: addresses and pointers may be different sizes while printing
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Fri, 06 Jul 2001 02:14:07 -0400
- Cc: gdb-patches at sources dot redhat dot com
- References: <20010628223546.BDE7F5E9CB@zwingli.cygnus.com> <3B43F682.1040502@cygnus.com> <npwv5nmh6x.fsf@zwingli.cygnus.com>
> > 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