This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [9/10] Convert Fortran types to per-gdbarch data
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: uweigand at de dot ibm dot com (Ulrich Weigand)
- Cc: gdb-patches at sourceware dot org
- Date: Sat, 16 Jun 2007 22:12:45 +0200 (CEST)
- Subject: Re: [9/10] Convert Fortran types to per-gdbarch data
> * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
> builtin_type_f_logical_s1, builtin_type_f_logical_s2,
> builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
> builtin_type_f_real_s8, builtin_type_f_real_s16,
> builtin_type_f_complex_s8, builtin_type_f_complex_s16,
> builtin_type_f_complex_s32, builtin_type_f_void): Replace global
> variable declaration with compatibility macro.
> (struct builtin_f_type): New data type.
> (builtin_f_type): Add prototype.
> * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
> builtin_type_f_logical_s1, builtin_type_f_logical_s2,
> builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
> builtin_type_f_real_s8, builtin_type_f_real_s16,
> builtin_type_f_complex_s8, builtin_type_f_complex_s16,
> builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
> (f_language_arch_info): Use builtin_f_type instead of variables.
> (build_fortran_types): Build builtin_f_type structure instead of
> setting global type variables.
> (f_type_data): New variable.
> (builtin_f_type): New function.
> (_initialize_f_language): Do not call build_fortran_types. Do not
> swap global type variables. Register f_type_data per-gdbarch data.
This is really independent of the main builtin_type conversion, and doesn't
have the same problems. Thus I've committed this patch now.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com