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: fix GDB casts when pointers are not addresses Date: Wed, 04 Jul 2001 22:15:00 -0000 Message-id: <3B43F7F6.3080902@cygnus.com> References: <20010628225704.9AB635E9CB@zwingli.cygnus.com> X-SW-Source: 2001-07/msg00078.html > - the integer produced is the byte address in the code segment (so for > the D10V, this would be the pointer's value times four), or > > - the integer produced is the 16-bit pointer value reinterpreted as a > 16-bit integer --- no adjustment takes place. > > Currently, GDB implements the former, while GCC implements the former. > This patch changes GDB to match GCC. Um, .... > In the absence of clear direction from an independent standard, I feel > that GDB should match GCC's behavior. Can you again provide a concrete example? Assuming this is accepted, it also needs to be clearly documented. One of the biggest problems is that there is no clear documentation on how things should behave. Andrew