summaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
Commit message (Collapse)AuthorAgeFilesLines
...
* (dwarf2_finish): Check for the existence of a file table before deciding toNick Clifton2004-11-021-1/+2
| | | | | produce a .debug_line section to match up with a user provided .debug_info section.
* Add support for generating DWARF2 debug sections in the x86 PE portNick Clifton2004-04-291-4/+7
|
* 2004-02-13 Hannes Reinecke <hare@suse.de>cagney_bfdfile-20040213-branchpointcagney_bfdfile-20040213-branchAndreas Jaeger2004-02-131-2/+2
| | | | | | Jakub Jelinek <jakub@redhat.com> * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
* .:Nathan Sidwell2004-02-061-1/+1
| | | | | | | | | * dwarf2dbg.c (DWARF2_ADDR_SIZE): Remove trailing ';' * read.h (SKIP_WHITESPACE): Turn into an expression. * read.c (read_a_source_file): A pseudo is removed by having a NULL handler. testsuite: * gas/macros/test2.s: Lowercase it.
* * dwarf2dbg.c: Convert to ISO-C.Kazu Hirata2003-12-061-2/+1
| | | | | * write.c: Likewise. * write.h: Likewise.
* * README-vms: Fix comment typos.Kazu Hirata2003-11-231-1/+1
| | | | | | | | | * as.h: Likewise. * dwarf2dbg.c: Likewise. * ecoff.c: Likewise. * hash.c: Likewise. * listing.c: Likewise. * write.c: Likewise.
* * depend.c: Convert to ISO-C.Kazu Hirata2003-11-211-105/+59
| | | | | * dwarf2dbg.c: Likewise. * dwarf2dbg.h: Likewise.
* * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.Alan Modra2003-07-161-10/+6
| | | | | (generic_dwarf2_emit_offset): Don't define function when TC__DWARF2_EMIT_OFFSET is defined.
* * symbols.c (temp_label_name): New.Richard Henderson2003-05-271-37/+13
| | | | | | | | (symbol_temp_new, symbol_temp_new_now, symbol_temp_make): New. (symbol_set_value_now): New. * symbols.h: Prototype them. * dwarf2dbg.c: Use them. (fake_label_name, symbol_new_now, set_symbol_value_now): Remove.
* * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.Richard Henderson2003-04-211-0/+3
| | | | (out_file_list): Assign non-null filename after generating error.
* * dwarf2dbg.c (generic_dwarf2_emit_offset): New.Richard Henderson2003-03-111-12/+24
| | | | | | | | | (TC_DWARF2_EMIT_OFFSET): Provide default. (out_debug_aranges, out_debug_info): Use it. * config/tc-ia64.c (ia64_dwarf2_emit_offset): New. (ia64_cons_fix_new): Move FUNC_DTP_RELATIVE handling ... (ia64_gen_real_reloc_type): ... here. * config/tc-ia64.h (TC_DWARF2_EMIT_OFFSET): New.
* Add code to create and use directory tables.Nick Clifton2003-01-281-33/+114
|
* * dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.Alexandre Oliva2002-12-251-2/+7
| | | | | | (dwarf2_finish): Use it. * doc/internals.texi (DWARF2_ADDR_SIZE): Document it. * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
* * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototypeAlan Modra2002-12-041-2/+3
| | | | inside #if.
* s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra2002-11-301-4/+4
| | | | comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
* * dwarf2dbg.c (scale_addr_delta): New.DJ Delorie2002-11-261-8/+22
| | | | | (size_inc_line_addr): Use it. (emit_inc_line_addr): Use it.
* Add support for 64-bit DWARF 2 formats to gas.Kevin Buettner2002-11-181-6/+60
|
* * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.Richard Henderson2002-09-171-0/+11
| | | | (out_debug_info): Likewise.
* * dwarf2dbg.c: Always include dwarf2dbg.h.Alan Modra2002-08-271-3/+5
| | | | | | | | | | (dwarf2_directive_file): Adjust dummy version args. * ecoff.c (ecoff_directive_weakext): Add ATTRIBUTE_UNUSED. * expr.c (clean_up_expression <O_subtract>): Allow subtraction when symbol values differ. * read.c (do_align): Add ATTRIBUTE_UNUSED to label. (pseudo_set <O_subtract>): Remove unnecessary segment test. * config/obj-bout.c (obj_pseudo_table): Warning fix.
* 2002-08-01 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz2002-08-011-2/+9
| | | | | | | Daniel Jacobowitz <drow@mvista.com> * dwarf2dbg.c (dwarf2_finish): Don't emit unreferenced .debug_line section unless it has line information.
* 2002-06-14 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz2002-06-141-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Daniel Jacobowitz <drow@mvista.com> * dwarf2dbg.h (dwarf2_directive_file): Return char *. * dwarf2dbg.c (dwarf2_directive_file): Return filename. * config/tc-mips.c (s_mips_file): Call s_app_file_string and new_logical_line for the first .file directive. * read.c (s_app_file_string): New function. (s_app_file): Call it. * read.h (s_app_file_string): Add declaration. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * configure.in: Remove MIPS_STABS_ELF. * configure: Regenerated. * config.in: Regenerated. * config/obj-elf.h (ECOFF_DEBUGGING): Define to mips_flag_mdebug for MIPS targets. * config/tc-mips.c (mips_pseudo_table): Remove #ifdef around ".extern". (pdr_seg): Declare unconditionally. (md_begin): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_end): Likewise. Generate stabs function markers. (s_mips_ent): Generate stabs function markers. (s_mips_frame): Always generate .pdr unless ECOFF_DEBUGGING or not ELF. (s_mips_mask): Likewise. (mips_flag_mdebug): New. (md_longopts): Add "mdebug" and "no-mdebug". (md_parse_options): Add OPTION_MDEBUG and OPTION_NO_MDEBUG. (mips_after_parse_args): Set mips_flag_mdebug. * doc/as.texinfo: Add "-mdebug" and "-no-mdebug" for MIPS. 2002-06-14 Daniel Jacobowitz <drow@mvista.com> * gas/mips/lineno.d: Use --gstabs. * gas/mips/mips.exp (lineno.s): Remove XFAIL.
* 2002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu2002-05-231-1/+4
| | | | | * dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file for source file.
* 2002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu2002-05-221-6/+13
| | | | | * dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol for one .loc for compiler.
* Do not reset loc_directive_seen in dwarf2_emit_insn.Nick Clifton2002-05-131-9/+11
|
* Use the 'current' struct filled by dwarf2_directive_loc, instead of callingNick Clifton2002-05-111-1/+6
| | | | dwarf2_where.
* * as.h: Fix formatting.Kazu Hirata2002-05-031-1/+1
| | | | | | | | | | | | * cgen.c: Likewise. * cgen.h: Likewise. * dwarf2dbg.c: Likewise. * frags.h: Likewise. * gasp.c: Likewise. * macro.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * symbols.c: Likewise.
* * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate lineGeoffrey Keating2002-04-171-2/+6
| | | | numbers, gdb relies on them to detect the start of the prologue.
* 2001-11-16 Michael Snyder <msnyder@redhat.com>Michael Snyder2001-12-041-0/+9
| | | | | | | * stabs.c (stabs_generate_asm_lineno): Remember file and line number from one call to the next, and eliminate consecutive duplicates (thereby emitting only one line symbol per source line). * dwarf2dbg.c (dwarf2_gen_line_info): Ditto.
* gas/ChangeLogAlan Modra2001-11-151-2/+3
| | | | * dwarf2dbg.c (get_frag_fix): Align last frag size.
* * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.Alan Modra2001-09-181-1/+1
| | | | | | | | | | | | | | | | | | * write.c (set_symtab): Update bfd_alloc declaration. Use a temp var to ensure bfd_alloc arg is the right type. (write_object_file): Cast args of bfd_seek. Replace bfd_write with bfd_bwrite. * config/obj-coff.c: Replace calls to bfd_write with calls to bfd_bwrite. Cast args of bfd_seek. * config/obj-elf.c (obj_elf_change_section): Avoid signed/unsigned warning. * config/tc-mn10300.c (set_arch_mach): Make param unsigned. * config/tc-tic54x.c (tic54x_mlib): Replace bfd_read call with call to bfd_bread.
* * read.c: Standardize error/warning messages - don't capitalise, noAlan Modra2001-08-011-5/+5
| | | | | | | | | | | | | | | | | | | | | final period or newline, don't say "ignored" or "zero assumed" for as_bad messages. In some cases, change the wording to that used elsewhere for similar messages. * app.c, as.c, atof-generic.c, cgen.c, cond.c, depend.c, dwarf2dbg.c, ecoff.c, expr.c, frags.c, input-file.c, input-scrub.c, listing.c, output-file.c, stabs.c, subsegs.c, symbols.c, write.c: Likewise. * ecoff.c (ecoff_directive_end): Test for missing name by comparing input line pointers rather than reading string. (ecoff_directive_ent): Likewise. * read.c (s_set): Likewise. (s_align): Report a warning rather than an error for alignment too large. (s_comm): Check for missing symbol name. (s_lcomm_internal): Likewise. (s_lsym): Likewise. (s_globl): Use is_end_of_line instead of looking for '\n'. (s_lcomm_internal): Likewise. (ignore_rest_of_line): Report a warning rather than an error.
* * dwarf2dbg.c (dwarf2_finish): Output file info even when noAlan Modra2001-06-191-2/+2
| | | | line info.
* * symbols.c (resolve_symbol_value): Remove "finalize" param,Alan Modra2001-05-221-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | instead use finalize_syms directly. Don't treat expressions specially with regard to finalize_syms. Update calls to self. (resolve_local_symbol): Update call to resolve_symbol_value. (S_GET_VALUE): Likewise. Return resolve_symbol_value if !finalize_syms. * symbols.h (resolve_symbol_value): Update prototype. * config/obj-aout.c (obj_crawl_symbol_chain): Update call to resolve_symbol_value. * config/obj-bout.c (obj_crawl_symbol_chain): Likewise. * config/obj-coff.c (do_relocs_for): Likewise. (yank_symbols): Likewise. (fixup_segment): Likewise. * config/obj-vms.c (obj_crawl_symbol_chain): Likewise. * config/tc-mips.c (md_convert_frag): Likewise. * config/tc-ppc.c (ppc_frob_symbol): Likewise. (ppc_fix_adjustable): Likewise. * dwarf2dbg.c (dwarf2dbg_estimate_size_before_relax): Likewise. (dwarf2dbg_convert_frag): Likewise. * ehopt.c (eh_frame_estimate_size_before_relax): Likewise. (eh_frame_convert_frag): Likewise. * expr.c (make_expr_symbol): Likewise. * write.c (adjust_reloc_syms): Likewise. (write_object_file): Likewise. (relax_segment): Likewise. (fixup_segment): Likewise. (finalize_syms): Init to zero, and update comment. (write_object_file): Set finalize_syms to 1 rather than 2. * doc/internals.texi (sy_value): Mention finalize_syms. (S_GET_VALUE): Remove restriction on when S_GET_VALUE can be called.
* * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.Jason Merrill2001-04-121-1/+5
|
* Pass finalize_syms on calls to resolve_symbol_value.Alan Modra2001-03-301-1/+1
|
* Multi-pass relaxation machinery.Alan Modra2001-03-301-2/+2
|
* * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.Richard Henderson2001-03-171-19/+31
| | | | | | | (dwarf2_directive_loc): Don't use them. (dwarf2_directive_file): Reject duplicate file definitions. (get_filenum): Zero allocated memory. (out_file_list): Complain about missing file definitions.
* Fix copyright noticesNick Clifton2001-03-081-1/+1
|
* 2001-02-23 H.J. Lu <hjl@gnu.org>H.J. Lu2001-02-241-1/+1
| | | | | * dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if BFD_ASSEMBLER is not defined.
* * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviationsRichard Henderson2001-02-011-0/+3
| | | | for the compilation unit with a zero byte.
* 2000-12-22 H.J. Lu <hjl@gnu.org>H.J. Lu2000-12-221-9/+0
| | | | * dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
* oops - omitted terminating #endifNick Clifton2000-12-141-0/+1
|
* If we don't have <limits.h>, try including <sys/param.h> if we have it.Nick Clifton2000-12-141-1/+3
|
* 2000-12-13 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-12-141-36/+30
| | | | | | | | * as.h: Fix formatting. * cgen.h: Likewise. * dwarf2dbg.c: Likewise. * input-scrub.c: Likewise. * read.h: Likewise.
* aadd conditionals around definition of INT_MAXNick Clifton2000-12-131-0/+2
|
* Adde dfinition if INT_MAX if limits.h is not includedNick Clifton2000-12-131-0/+2
|
* #include <limits.h> only if it exists.Nick Clifton2000-12-131-2/+4
|
* 2000-12-12 H.J. Lu <hjl@gnu.org>H.J. Lu2000-12-121-0/+53
| | | | | | | * dwarf2dbg.c: Enabled only if BFD_ASSEMBLER is defined. * read.h (outputting_stabs_line_debug): Change it to int. * stabs.c (outputting_stabs_line_debug): Likewise.
* Add outputting_stabs_line_debug varaible and D10v code to use itNick Clifton2000-12-051-4/+7
|
* * dwarf2dbg.c: Rewrite from scratch. Queue all debugging outputRichard Henderson2000-11-291-602/+978
| | | | | | | | | | | | | | | until dwarf2_finish; use relaxation to get cross-fragment offsets; thread multiple subsegments properly; handle multiple code sections properly; emit proper compilation unit info for assembler generated debugging. * as.h (enum _relax_state): Add rs_dwarf2dbg. * dwarf2dbg.h (struct dwarf2_line_info): Remove filename. (dwarf2dbg_estimate_size_before_relax): Declare. (dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare. * write.c: Include dwarf2dbg.h. (cvt_frag_to_fill): Handle rs_dwarf2dbg. (relax_segment): Likewise.