This is the mail archive of the
mailing list for the GDB project.
Re: [2/10] Remove &builtin_type_ from tdep code (amd64/s390/sparc64)
On Wed, Jun 13, 2007 at 03:06:11PM +0200, Ulrich Weigand wrote:
> To that purpose, the builtin_type_double global variable will
> go away, and is (temporarily) replaced by a macro
> #define builtin_type_double
> builtin_type (current_gdbarch)->builtin_double
> However, this macro is not fully equivalent; in particular it
> is no longer possible to use &builtin_type_double.
You keep saying this, but is it true? :-)
You can't take the address of a function's return value, but you can
take the address of a dereference. Of course using
&builtin_type_double in m68k_gdbarch_init won't work since
current_gdbarch is NULL then. But we should be able to save
builtin_type (gdbarch)->builtin_double if we wanted to, I think.