This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: fix GDB casts when pointers are not addresses
- To: Andrew Cagney <ac131313 at cygnus dot com>
- Subject: Re: RFA: fix GDB casts when pointers are not addresses
- From: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Date: 06 Jul 2001 16:37:26 -0500
- Cc: gdb-patches at sources dot redhat dot com
- References: <20010628225704.9AB635E9CB@zwingli.cygnus.com><3B43F7F6.3080902@cygnus.com> <3B4556A5.3040702@cygnus.com>
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.