This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v3 04/10] Ada language
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Sergio Durigan Junior <sergiodj at redhat dot com>
- Cc: GDB Patches <gdb-patches at sourceware dot org>, Tom Tromey <tromey at redhat dot com>
- Date: Mon, 27 Jan 2014 06:15:51 +0400
- Subject: Re: [PATCH v3 04/10] Ada language
- Authentication-results: sourceware.org; auth=none
- References: <1390629467-27139-1-git-send-email-sergiodj at redhat dot com> <1390629467-27139-5-git-send-email-sergiodj at redhat dot com>
> 2014-01-25 Sergio Durigan Junior <sergiodj@redhat.com>
>
> * ada-exp.y (parse_type): Rewrite macro to use parser state.
> (yyparse): Redefine macro to ada_parse_internal.
> (pstate): New variable.
> (write_int, write_object_renaming, write_var_or_type,
> write_name_assoc, write_exp_op_with_string, write_ambiguous_var,
> type_int, type_long, type_long_long, type_float, type_double,
> type_long_double, type_char, type_boolean, type_system_address):
> Add "struct parser_state" argument.
> (exp1, primary, simple_exp, relation, and_exp, and_then_exp,
> or_exp, or_else_exp, xor_exp, type_prefix, opt_type_prefix,
> var_or_type, aggregate, aggregate_component_list,
> positional_list, others, component_group,
> component_associations): Update calls to write_exp* and similar
> functions in order to use parser state.
> (ada_parse, write_var_from_sym, write_int,
> write_exp_op_with_string, write_object_renaming,
> find_primitive_type, write_selectors, write_ambiguous_var,
> write_var_or_type, write_name_assoc, type_int, type_long,
> type_long_long, type_float, type_double, type_long_double,
> type_char, type_boolean, type_system_address): Add "struct
> parser_state" argument. Adjust function to use parser state.
> * ada-lang.c (parse): Likewise.
> * ada-lang.h: Forward declare "struct parser_state".
> (ada_parse): Add "struct parser_state" argument.
> * ada-lex.l (processInt, processReal): Likewise. Adjust all
> calls to both functions.
Still OK.
Thank you, Sergio.
--
Joel