aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
AgeCommit message (Collapse)AuthorFilesLines
2001-04-30 * buildsym.c (start_subfile): Use FILENAME_CMP instead of STREQ.Eli Zaretskii1-2/+3
(top-level): #include filenames.h. * dwarf2read.c (dwarf2_start_subfile): Use IS_ABSOLUTE_PATH and FILENAME_CMP, to DTRT on non-Posix platforms. (top-level): #include filenames.h.
2001-03-06Update/correct copyright notices.Kevin Buettner1-1/+1
2001-02-08Add __FILE__ and __LINE__ parameter to internal_error() /Andrew Cagney1-5/+10
internal_verror().
2001-01-24* dwarf2read.c (read_tag_const_type, read_tag_volatile_type):Jim Blandy1-4/+8
Implement these correctly, using make_cv_type.
2000-12-15Replace free() with xfree().Kevin Buettner1-9/+9
2000-12-082000-12-08 Michael Snyder <msnyder@mvstp600e.cygnus.com>Michael Snyder1-2/+10
* dwarf2read.c (DWARF2_REG_TO_REGNUM): New macro. Provide default definition. Will be used to translate between the compiler's register numbering and GDB's (for register variables etc). (new_symbol): Use DWARF2_REG_TO_REGNUM to translate register ids.
2000-11-082000-11-07 Daniel Berlin <dberlin@redhat.com>Daniel Berlin1-39/+2
* dwarf2read.c: Revert June 5th change for caching of types, as per Jim Blandy's request.
2000-11-03In new_symbol(), relocate symbol address by base address of the sectionKevin Buettner1-2/+8
it is in instead of using the base address of the .text section.
2000-08-04Fix date in comment.Kevin Buettner1-1/+1
2000-08-04DWARF2.1 64-bit support.Kevin Buettner1-17/+122
2000-07-30Protoization.Kevin Buettner1-143/+58
2000-07-24* dwarf2read.c (read_structure_scope): Correct overzealousJim Blandy1-1/+1
addition of cu_header argument.
2000-07-24Eliminate global address_size. Replace with functionAndrew Cagney1-283/+306
read_comp_unit_head() and ``struct compu_unit_head'' parameter. Include support for signed address case. Fixes problem of global address size / sign being out-of-sync with with current section.
2000-07-18From Richard Henderson <rth@cygnus.com>:Andrew Cagney1-4/+6
* dwarf2read.c (dwarf2_empty_hash_tables): Renamed from dwarf2_empty_die_ref_table; zero dwarf2_cached_types as well. Update all callers.
2000-06-142000-06-14 Jim Blandy <jimb@redhat.com>Jim Blandy1-14/+15
* dwarf2read.c (dump_die): Use the proper printf format for printing DW_UNSND values; they're longs now. * dwarf2read.c (dump_die): We can read DW_FORM_data8 now, on at least some platforms, so print it out too. 2000-06-14 James E. Wilson <wilson@bletchleypark.cygnus.com> * dwarf2read.c (struct attribute): Change unsnd and snd field types to long. (read_8_bytes): Change return type to long. (read_unsigned_leb128): Change return type to long. Change type of local result to long. Cast argument of left shift to long. (read_signed_leb128): Likewise.
2000-06-05C++ improvementsDaniel Berlin1-6/+43
2000-05-28PARAMS removal.Kevin Buettner1-110/+93
2000-05-22Purge (almost) make_cleanup_func.Andrew Cagney1-1/+16
2000-05-13Fix typo in sign extension code in dwarf2_const_value_data().Kevin Buettner1-1/+1
2000-04-26 * ax-gdb.c (agent_command): Remove now useless cast ofPhilippe De Muyter1-11/+6
`free_current_contents' when passed to `make_cleanup'. * coffread.c (coff_symfile_read): Ditto. * dwarf2read.c (dwarf2_add_member_fn, read_array_type): Ditto. (dwarf_decode_lines): Ditto. * eval.c (parse_and_eval_address, parse_and_eval_address_1): Ditto. (parse_and_eval, parse_to_comma_and_eval): Ditto. * parse.c (parse_exp_1): Ditto. * printcmd.c (print_command_1, output_command, set_command): Ditto. (x_command, print_frame_args, printf_command): Ditto. * top.c (execute_control_command): Ditto. * tracepoint.c (validate_actionline): Ditto. * typeprint.c (whatis_exp, ptype_command): Ditto. (maintenance_print_type): Ditto.
2000-04-08* dwarf2read.c: Revert Andrew Cagney's change of Dec 15, 1997.Jim Blandy1-31/+2
Don't include "bfd-elf.h". (address_significant_size): Delete variable. (dwarf2_build_psymtabs_hard): Don't set it, or check for consistency between it and the Dwarf 2 compilation unit header address size. (read_address): Don't mask off bits above address_significant_size. * Makefile.in (dwarf2read.o): Don't depend on $(elf_bfd_h). (elf_bfd_h): Remove variable; it's no longer used.
2000-02-29Read 2 byte (16 bit addresses) when needed.Andrew Cagney1-0/+3
2000-02-14From Jason Merrill: (die_is_declaration): New fn..Andrew Cagney1-1/+10
2000-02-05import gdb-2000-02-04 snapshotJason Molenda1-0/+8
1999-10-12import gdb-1999-10-11 snapshotJason Molenda1-93/+63
1999-10-05import gdb-1999-10-04 snapshotJason Molenda1-4/+4
1999-09-22import gdb-1999-09-21Jason Molenda1-1/+7
1999-09-09import gdb-1999-09-08 snapshotStan Shebs1-17/+10
1999-08-09import gdb-1999-08-09 snapshotJason Molenda1-1/+1
1999-08-02import gdb-1999-08-02 snapshotJason Molenda1-1/+1
1999-07-07import gdb-1999-07-07 post reformatJason Molenda1-245/+250
1999-04-26import gdb-19990422 snapshotStan Shebs1-11/+55
1999-04-16Initial creation of sourceware repositorygdb-4_18-branchpointStan Shebs1-0/+5865
1999-04-16Initial creation of sourceware repositoryStan Shebs1-5865/+0
1999-01-11 * dwarf2read.c (dump_die): Change stderr gdb_stderr.Stu Grossman1-1/+1
* expprint.c (print_subexp): fprintf => fprintf_unfiltered. * jv-typeprint.c (java_type_print_base): fputs => fputs_filtered. * stack.c (struct function_bounds): Remove superfluous `typedef'. * symfile.c (list_overlays_command): stdout => gdb_stdout. * symmisc.c (maintenance_check_symtabs): stdout => gdb_stdout. * utils.c (print_spaces): Make more efficient.
1998-12-10Start of HP merge changes to GDB.David Taylor1-3/+3
1998-10-141998-10-13 Jason Molenda (jsm@bugshack.cygnus.com)Jason Molenda1-8/+13
* blockframe.c (find_pc_sect_partial_function): Add braces to avoid possible nested-if confusion. * breakpoint.c (breakpoint_here_p): Ditto. (breakpoint_inserted_here_p): Ditto. (breakpoint_thread_match): Ditto. * gnu-regex.c: Define _REGEX_RE_COMP only if it isn't already defined. * gnu-regex.h: Define _REGEX_RE_COMP to pick up old compatability prototypes. * symtab.h: Add prototype for _initialize_source. * value.h: Add prototype for _initialize_value. * defs.h: Include sys/types.h or stddef.h to get size_t. (make_cleanup): Add make_cleanup_func typedef and switch to using a prototype for this function. (mfree): Add prototypes for mmalloc, mrealloc, mfree if we aren't using mmalloc. * ax-gdb.c breakpoint.c coffread.c corelow.c dbxread.c dwarf2read.c dwarfread.c elfread.c eval.c exec.c gdbtk-cmds.c gdbtk.c infcmd.c infrun.c mipsread.c nlmread.c os9kread.c parse.c printcmd.c symfile.c symmisc.c symtab.c thread.c top.c tracepoint.c typeprint.c valops.c: Cast parameters passed to make_cleanup to use the new make_cleanup_func typedef. More warning cleanups. There are still a bunch of places where the first argument to make_cleanup is not cast to (make_cleanup_func); these are either due to the function fitting the make_cleanup_func specification already (e.g. free()) or they are in files that weren't compiled when I did my make on a Linux native system. Bwahahaha. You can see them like this: grep make_cleanup\ * | grep -v make_cleanup_func I'll surely go back and clean up the remaining suspicious calls in GDB one of these days. :-)
1998-10-11 * dwarf2read.c (dwarf2_build_psymtabs_hard): Do not adjust thePeter Schauer1-8/+10
address range of a compilation unit without children. * mdebugread.c (parse_partial_symbols): Fix handling of stabs continuations, use xmalloc and xrealloc.
1998-09-01Modifications/fixes to support the ARM/ELF port.Zdenek Radouch1-6/+6
1998-05-23 * dwarf2read.c (read_subroutine_type): Set TYPE_FLAG_PROTOTYPEDPeter Schauer1-2/+5
on C++ functions. * valops.c (value_arg_coerce): Add new argument to indicate whether the function has a prototype, handle integer and float promotions accordingly. (call_function_by_hand): Always call value_arg_coerce, pass down prototype information.
1998-05-08 * config/sparc/tm-sp64.h (CALL_DUMMY): Store and retrieveBob Manson1-0/+2
%o0-%o5 as 64-bit values; compensate for stack bias. (USE_STRUCT_CONVENTION): We only pass pointers to structs if they're larger than 32 bytes. (REG_STRUCT_HAS_ADDR): Ditto. * sparc-tdep.c (sparc_init_extra_frame_info): Use read_sp() instead of read_register. If the target is a sparc64 and the frame pointer is odd, compensate for the stack bias. (get_saved_register): Use read_sp(). (DUMMY_STACK_REG_BUF_SIZE): Use FP_REGISTER_BYTES. (sparc_push_dummy_frame): Use read_sp()/write_sp(). On sparc64, save the PC, NPC, CCR, FSR, FPRS, Y and ASI registers. (sparc_frame_find_saved_regs): Use read_sp(). Read the PC, NPC, CCR, FSR, FPRS, Y and ASI registers from the frame, if it's a dummy frame. (sparc_pop_frame): Use write_sp(). If the target is a sparc64 and the FP is odd, compensate for stack bias. (sparc_store_return_value): Right-justify the return value before writing it to %o0. (sparc_fix_call_dummy): Don't NOP out part of the call dummy on sparc64. (sparc64_read_sp, sparc64_read_fp, sparc64_write_sp, sparc64_write_fp, sp64_push_arguments, sparc64_extract_return_value): New functions to support the sparc64 ABI. * dwarfread.c (handle_producer): Set processing_gcc_compilation to the right version number. * dwarf2read.c (read_file_scope): Assume we're processing GCC2 output.
1998-01-28 Suggested by Chris Walter <walter@budoe.bu.edu>:Stan Shebs1-7/+5
* dwarfread.c (set_cu_language): Recognize Fortran. * dwarf2read.c (set_cu_language): Ditto. (read_array_type): Fix language test.
1997-12-15(Mostly from Gavin Koch)Andrew Cagney1-5/+40
In dwarf2read.c, if the ABI is 32 bit and 64 bit addresses are encountered discard the most significant 32 bits. Use CORE_ADDR for address variables instead of long. Add more explicit tx49 configur target. Check/use sigaction/SA_RESTART in remote-sim.c
1997-12-10(CVS is doing wierd things)Andrew Cagney1-3/+7
Re-checkin fixes to code verifying dwarf debug info CU headers before using it.
1997-12-10* dwarf2read.c (dwarf2_build_psymtabs_hard): Check cu_header.length isAndrew Cagney1-2/+3
within dwarf_info_buffer not dwarf_abbrev_buffer.
1997-11-26Check the abbrev offset found in the .debug_info section before usingAndrew Cagney1-2/+12
it.
1997-11-01 * dwarf2read.c (dwarf2_build_psymtabs_hard): Handle the caseDawn Perchik1-4/+14
where a compilation unit die has no children (DW_TAG_compile_unit has DW_children_no). (scan_partial_symbols): Add comment for nesting_level.
1997-08-05 * gdbtypes.h: Re-interpret struct field. Suppport address of static.Per Bothner1-20/+19
Add a bunch of macros. * coffread.c, dwarf2read.c, dwarfread.c, mdebugread.c, stabsread.c: Update to use new macros. * coffread.c, hpread.c, stabsread.c: Remove bugus TYPE_FIELD_VALUE. * value.h, values.c (value_static_field): New function. * cp-valprint.c, valops.c: Modify to use value_static_field.
1997-06-28 * buildsym.h (struct subfile): Add debugformat member.Fred Fish1-0/+1
(record_debugformat): Declare global function. * buildsym.c (start_subfile): Initialize debugformat member to NULL. (record_debugformat): New function to record the format. (end_symtab): Copy format into symtab debugformat member. (end_symtab): Free subfile debugformat member. * symmisc.c (free_symtab): Free debugformat when freeing symtab. * symfile.c (allocate_symtab): Initialize the new debugformat member for new symtabs. * symtab.h (struct symtab): Add debugformat member. * source.c (source_info): Print the debug format. * os9kread.c (os9k_process_one_symbol): Call record_debugformat with "OS9". * hpread.c (hpread_expand_symtab): Call record_debugformat with "HP". (hpread_process_one_debug_symbol): Ditto. * dbxread.c (process_one_symbol): Call record_debugformat with "stabs". * coffread.c (coff_start_symtab): Call record_debugformat with "COFF". * xcoffread.c (read_xcoff_symtab): Call record_debugformat with "XCOFF". * dwarfread.c (read_file_scope): Call record_debugformat with "DWARF 1". * dwarf2read.c (read_file_scope): Call record_debugformat with "DWARF 2". * dstread.c (dst_end_symtab): Set debugformat to be "Apollo DST". * mdebugread.c (new_symtab): Set debugformat to be "ECOFF".
1997-02-08 * dwarf2read.c (dwarf2_linkage_name): New function to getPeter Schauer1-31/+48
the linkage name of a die from DW_AT_MIPS_linkage_name or DW_AT_name. (read_func_scope, dwarf2_add_field, dwarf2_add_member_fn, new_symbol): Use it instead of accessing DW_AT_name. (read_partial_die): Use DW_AT_MIPS_linkage name as name of the partial die if present. (dwarf2_add_member_fn): Make a copy of physname on the type obstack.