RFA: fix GDB casts when pointers are not addresses

Jim Blandy jimb@zwingli.cygnus.com
Fri Jul 6 14:36:00 GMT 2001


Andrew Cagney <ac131313@cygnus.com> writes:
> > - 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, ....
> 
> Jim,  I take it you ment:
> 
> GDB implements the former, while GCC implements the latter.

Er, yes.



More information about the Gdb-patches mailing list