aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.c
AgeCommit message (Collapse)AuthorFilesLines
2002-08-18 * ada-lang.c: Use gdb_string.h instead of <string.h>.Aidan Skinner1-1/+1
* ada-typeprint.c: Use gdb_string.h instead of <string.h>.
2002-08-18 * ada-lang.c: run through gdb_indent.shAidan Skinner1-2622/+2670
* ada-lang.h: run through gdb_indent.sh * ada-tasks.c: run through gdb_indent.sh * ada-typeprint.c: run through gdb_indent.sh * ada-valprint.c: run through gdb_indent.sh
2002-08-11 * ada-lang.c (ada_lookup_partial_symbol)Aidan Skinner1-9/+6
(to_fixed_variant_branch_type) (find_line_in_linetable): Fix prototype names so that grep ^func works properly. * ada-lang.c (ada_array_element_type) (ada_lookup_partial_symbol): Fix typos in parameter list. * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1): Fix prototype names so that grep ^func works properly.
2002-07-25 * ada-lang.c: Change k&r style function definitions to prototypedAidan Skinner1-563/+210
form. * ada-typeprint.c: Change k&r style function definitions to prototyped form. * ada-valprint.c: Change k&r style function definitions to prototyped form.
2002-07-13 * ada-tasks.c (add_task_entry): replace calls toAidan Skinner1-8/+8
malloc() with xmalloc * ada-tasks.c (init_task_list): replace calls to free with xfree() * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype, ada_finish_decode_line_1, all_sals_for_line ada_breakpoint_rewrite): replace calls to free() with xfree()
2002-07-112002-07-11 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-97/+104
Based on patch from Daniel Berlin <dberlin@dberlin.org>. * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME. (finish_block) For non-function blocks, hash the symbol table. For function blocks, mark the symbol table as unhashed. * minsyms.c (msymbol_hash): Return hash value without taking modulus. (msymbol_hash_iw): Likewise. (add_minsym_to_hash_table): Take modulus of msymbol_hash's return value. (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw. (lookup_minimal_symbol): Likewise for both. * symtab.h (struct block): Add `hashtable' flag. Comment the hashtable. (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro. (ALL_BLOCK_SYMBOLS): Update. (BLOCK_SHOULD_SORT): Do not sort hashed blocks. (struct symbol): Add `hash_next' pointer. * symtab.c (lookup_block_symbol): Search using the hash table when possible. (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS. (search_symbols, find_addr_symbol): Likewise. * dstread.c (process_dst_block): Clear hashtable bit for new block. (read_dst_symtab): Likewise. * jv-lang.c (get_java_class_symtab): Likewise. * mdebugread.c: Include "gdb_assert.h". (shrink_block): Assert that the block being modified is not hashed. * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS. * symmisc.c (free_symtab_block): Walk the hash table when freeing symbols. (dump_symtab): Recognize hashed blocks. * printcmd.c (print_frame_args): Assert that function blocks do not have hashed symbol tables. * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS. (fill_in_ada_prototype, debug_print_block): Likewise. (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
2002-06-192002-06-19 Daniel Jacobowitz <drow@mvista.com>Daniel Jacobowitz1-9/+1
* ada-lang.c (fill_in_ada_prototype): Update comment.
2002-06-04Add base ada language filesAidan Skinner1-0/+8626