This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [10/10] Convert Modula-2 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:13:47 +0200 (CEST)
- Subject: Re: [10/10] Convert Modula-2 types to per-gdbarch data
> * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
> builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
> Replace global variable declaration with compatibility macro.
> (struct builtin_m2_type): New data type.
> (builtin_m2_type): Add prototype.
> * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
> builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
> Remove global variables.
> (m2_language_arch_info): Use builtin_m2_type instead of variables.
> (build_m2_types): New function.
> (m2_type_data): New variable.
> (builtin_m2_type): New function.
> (_initialize_m2_language): Do not build data types. Register
> m2_type_data per-gdbarch data.
I've committed this one as well.
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com