From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Jim Blandy Cc: gdb-patches@sources.redhat.com Subject: Re: RFA: addresses and pointers may be different sizes while printing Date: Thu, 05 Jul 2001 23:14:00 -0000 Message-id: <3B45572F.3020708@cygnus.com> References: <20010628223546.BDE7F5E9CB@zwingli.cygnus.com> <3B43F682.1040502@cygnus.com> X-SW-Source: 2001-07/msg00145.html > > 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