summaryrefslogtreecommitdiff
path: root/gdb/ada-lex.l
Commit message (Collapse)AuthorAgeFilesLines
* 2004-10-15 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-10-151-1/+1
| | | | | | | * ada-exp.y, ada-lex.l: Use xmalloc and xrealloc through out. * inf-ptrace.c: Include "gdb_wait.h" instead of <wait.h>. * Makefile.in (.y.c, .l.c): Don't replace xmalloc with xxmalloc. Update dependencies.
* ada-lex.l: Remove useless rule whose right-context clausePaul N. Hilfinger2004-10-091-3/+1
| | | | | causes unreferenced static function warning for yyrealloc. (ada_flex_use): Remove the artificial reference to yyrealloc.
* 2004-10-06 Paul N. Hilfinger <Hilfinger@gnat.com>Paul N. Hilfinger2004-10-061-3/+8
| | | | | | | | | | | | | * Makefile.in (.l.c): Do conversions of names of alloc and free functions that are done for .y.c files, plus special one for yy_flex_realloc. Also, correct missing-file tests here. * ada-lex.l (malloc, free): Remove macros. (resize_tempbuf): Use "realloc"; rely on sed changes to convert to xrealloc. (ada_flex_use): Dummy definition to remove warnings about unused functions. * ada-exp.y (dummy_string_to_ada_operator): Temporary definition to suppress warning.
* * Makefile.in (.l.c): Modify rule for compatibility with recentPaul N. Hilfinger2004-10-031-3/+2
| | | | | | versions of flex, and remove most command-line options. * ada-lex.l: Add %options line in place of -I -i and -s command-line options.
* * ada-exp.y (type_int): New function to add layer of abstractionPaul N. Hilfinger2004-09-181-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | around references to expression types. (type_long): Ditto. (type_long_long): Ditto. (type_float): Ditto. (type_double): Ditto. (type_long_double): Ditto. (type_char): Ditto. (type_system_address): Ditto. (simple_exp): Use type_* functions in place of builtin_* variables. (exp): Ditto. (write_var_from_name): Ditto. (write_object_renaming): Ditto. * ada-lang.c (ada_create_fundamental_type): Remove redundant declaration. (build_ada_types): Remove, replacing with... (ada_language_arch_info): New function to initialize primitive type vector in language_arch_info. (ada_array_length): Remove use of builtin_type_ada_int. (value_pos_atr): Ditto. (ada_evaluate_subexp): Ditto. (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long, builtin_type_ada_long_long, builtin_type_ada_char, builtin_type_ada_float, builtin_type_ada_double, builtin_type_ada_long_double, builtin_type_ada_natural, builtin_type_ada_positive, builtin_type_ada_system_address): Remove. (ada_builtin_types): Remove. (ada_language_defn): Remove entries for la_builtin_type_vector and string_char_type and use ada_language_arch_info. (_initialize_ada_language): Do type-vector initialization along the lines of c-lang.c. (ada_create_fundamental_type): Break up line. (ada_dump_symtab): Remove unused function. (enum ada_primitive_types): Define. * ada-lang.h (builtin_type_ada_int, builtin_type_ada_short, builtin_type_ada_long,builtin_type_ada_long_long,builtin_type_ada_char, builtin_type_ada_float, builtin_type_ada_double, builtin_type_ada_long_double, builtin_type_ada_natural, builtin_type_ada_positive, builtin_type_ada_system_address): Remove. * ada-lex.l: Use type_* functions in place of builtin_* variables. (processInt): Ditto. (processReal): Ditto. (name_lookup): Ditto. * ada-typeprint.c (print_range): Use builtin_type_int, not builtin_type_ada_int.
* 2004-07-28 Andrew Cagney <cagney@gnu.org>Andrew Cagney2004-07-281-1/+3
| | | | | | | | | * gdbtypes.c (lookup_primitive_typename): Delete function. * gdbtypes.h (lookup_primitive_typename): Delete declaration. * ada-lex.l: Use language_lookup_primitive_type_by_name. * gdbtypes.c (lookup_typename): Ditto. * f-exp.y (yylex): Ditto. * c-exp.y (yylex): Ditto, eliminate assignment in "if".
* Address complaints from gdb_ari.sh:Paul N. Hilfinger2004-07-011-2/+2
| | | | | | | | | | | | | * ada-exp.y: Include gdb_string.h rather than string.h. (convert_char_literal): Reformat declaration. * ada-lang.h: Include opaque struct declaration for struct frame_info. * ada-lex.l: Change use of free to xfree (the macro would do so anyway, but this is harmless). Include gdb_string.h rather than string.h. * ada-valprint.c (ada_val_print_stub): Change PTR => void*. * ada-lang.c (parse): Remove K&Rism in parameter list. (is_name_suffix): Correct Linux => GNU/Linux in comment.
* ada-exp.y: Synchronize with current ACT sources.Paul N. Hilfinger2004-06-021-207/+203
| | | | | | | | | ada-lang.c: Ditto. ada-lang.h: Ditto. ada-lex.l: Ditto. ada-tasks.c: Ditto. ada-typeprint.c: Ditto. ada-valprint.c: Ditto.
* 2003-11-23 Andrew Cagney <cagney@redhat.com>Andrew Cagney2003-11-231-1/+1
| | | | | | | | | | | | | | | * symfile.c (symbol_file_command): Replace STREQ with strcmp. * defs.h (DEPRECATED_STREQN): Rename STREQN. (DEPRECATED_STREQ): Rename STREQ. * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update. * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update. * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update. * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update. * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update. * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update. * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update. * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update. * source.c, sparc-tdep.c, stack.c, target.c: Update.
* * ada-tasks.c (find_function_in_inferior): Don't declare it.Stephane Carrez2003-06-171-4/+4
| | | | | ("regcache.h"): Include it. * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
* Add base ada language filesAidan Skinner2002-06-041-0/+928