aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
AgeCommit message (Collapse)AuthorFilesLines
2004-04-29Add support for generating DWARF2 debug sections in the x86 PE portNick Clifton1-4/+7
2004-02-132004-02-13 Hannes Reinecke <hare@suse.de>Andreas Jaeger1-2/+2
Jakub Jelinek <jakub@redhat.com> * dwarf2dbg.c (get_filenum): Do not read beyond allocated memory.
2004-02-06.:Nathan Sidwell1-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.
2003-12-06 * dwarf2dbg.c: Convert to ISO-C.Kazu Hirata1-2/+1
* write.c: Likewise. * write.h: Likewise.
2003-11-23 * README-vms: Fix comment typos.Kazu Hirata1-1/+1
* as.h: Likewise. * dwarf2dbg.c: Likewise. * ecoff.c: Likewise. * hash.c: Likewise. * listing.c: Likewise. * write.c: Likewise.
2003-11-21 * depend.c: Convert to ISO-C.Kazu Hirata1-105/+59
* dwarf2dbg.c: Likewise. * dwarf2dbg.h: Likewise.
2003-07-16 * dwarf2dbg.c (get_frag_fix): Revert 2001-11-15 change.Alan Modra1-10/+6
(generic_dwarf2_emit_offset): Don't define function when TC__DWARF2_EMIT_OFFSET is defined.
2003-05-27 * symbols.c (temp_label_name): New.Richard Henderson1-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.
2003-04-21 * dwarf2dbg.c (get_filenum): Skip as-yet unassigned file numbers.Richard Henderson1-0/+3
(out_file_list): Assign non-null filename after generating error.
2003-03-11 * dwarf2dbg.c (generic_dwarf2_emit_offset): New.Richard Henderson1-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.
2003-01-28Add code to create and use directory tables.Nick Clifton1-33/+114
2002-12-25* dwarf2dbg.c (DWARF2_ADDR_SIZE): New macro.Alexandre Oliva1-2/+7
(dwarf2_finish): Use it. * doc/internals.texi (DWARF2_ADDR_SIZE): Document it. * config/tc-mips.h (DWARF2_ADDR_SIZE): Override.
2002-12-04 * dwarf2dbg.c (scale_addr_delta): Correct parameter. Move prototypeAlan Modra1-2/+3
inside #if.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-4/+4
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-11-26* dwarf2dbg.c (scale_addr_delta): New.DJ Delorie1-8/+22
(size_inc_line_addr): Use it. (emit_inc_line_addr): Use it.
2002-11-18Add support for 64-bit DWARF 2 formats to gas.Kevin Buettner1-6/+60
2002-09-17 * dwarf2dbg.c (out_debug_abbrev): Add support for the DW_AT_name field.Richard Henderson1-0/+11
(out_debug_info): Likewise.
2002-08-27 * dwarf2dbg.c: Always include dwarf2dbg.h.Alan Modra1-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-012002-08-01 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz1-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-142002-06-14 H.J. Lu <hjl@gnu.org>Daniel Jacobowitz1-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-232002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+4
* dwarf2dbg.c (dwarf2_directive_loc): Call listing_source_file for source file.
2002-05-222002-05-22 H.J. Lu <hjl@gnu.org>H.J. Lu1-6/+13
* dwarf2dbg.c (dwarf2_emit_insn): Emit only one line symbol for one .loc for compiler.
2002-05-13Do not reset loc_directive_seen in dwarf2_emit_insn.Nick Clifton1-9/+11
2002-05-11Use the 'current' struct filled by dwarf2_directive_loc, instead of callingNick Clifton1-1/+6
dwarf2_where.
2002-05-03 * as.h: Fix formatting.Kazu Hirata1-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.
2002-04-17 * dwarf2dbg.c (dwarf2_gen_line_info): Do emit duplicate lineGeoffrey Keating1-2/+6
numbers, gdb relies on them to detect the start of the prologue.
2001-12-042001-11-16 Michael Snyder <msnyder@redhat.com>Michael Snyder1-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.
2001-11-15gas/ChangeLogAlan Modra1-2/+3
* dwarf2dbg.c (get_frag_fix): Align last frag size.
2001-09-18 * dwarf2dbg.c (dwarf2_directive_file): Avoid signed/unsigned warning.Alan Modra1-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.
2001-08-01 * read.c: Standardize error/warning messages - don't capitalise, noAlan Modra1-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.
2001-06-19 * dwarf2dbg.c (dwarf2_finish): Output file info even when noAlan Modra1-2/+2
line info.
2001-05-22 * symbols.c (resolve_symbol_value): Remove "finalize" param,Alan Modra1-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.
2001-04-12 * dwarf2dbg.c (process_entries): Don't optimize redundant line notes.Jason Merrill1-1/+5
2001-03-30Pass finalize_syms on calls to resolve_symbol_value.Alan Modra1-1/+1
2001-03-30Multi-pass relaxation machinery.Alan Modra1-2/+2
2001-03-17 * dwarf2dbg.c (user_filenum, user_filenum_allocated): Remove.Richard Henderson1-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.
2001-03-08Fix copyright noticesNick Clifton1-1/+1
2001-02-242001-02-23 H.J. Lu <hjl@gnu.org>H.J. Lu1-1/+1
* dwarf2dbg.c (dwarf2_directive_file): Call s_app_file (0) if BFD_ASSEMBLER is not defined.
2001-02-01 * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviationsRichard Henderson1-0/+3
for the compilation unit with a zero byte.
2000-12-222000-12-22 H.J. Lu <hjl@gnu.org>H.J. Lu1-9/+0
* dwarf2dbg.c (dwarf2_finish): Remove #if BFD_ASSEMBLER.
2000-12-14oops - omitted terminating #endifNick Clifton1-0/+1
2000-12-14If we don't have <limits.h>, try including <sys/param.h> if we have it.Nick Clifton1-1/+3
2000-12-142000-12-13 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-36/+30
* as.h: Fix formatting. * cgen.h: Likewise. * dwarf2dbg.c: Likewise. * input-scrub.c: Likewise. * read.h: Likewise.
2000-12-13aadd conditionals around definition of INT_MAXNick Clifton1-0/+2
2000-12-13Adde dfinition if INT_MAX if limits.h is not includedNick Clifton1-0/+2
2000-12-13#include <limits.h> only if it exists.Nick Clifton1-2/+4
2000-12-122000-12-12 H.J. Lu <hjl@gnu.org>H.J. Lu1-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.
2000-12-05Add outputting_stabs_line_debug varaible and D10v code to use itNick Clifton1-4/+7
2000-11-29 * dwarf2dbg.c: Rewrite from scratch. Queue all debugging outputRichard Henderson1-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.
2000-11-17 * dwarf2dbg.c (dwarf2_gen_line_info): Early out for no line number.Richard Henderson1-0/+4
* config/obj-elf.h (ECOFF_DEBUGGING) [TC_ALPHA]: Adjust for tri-state definition of alpha_flag_mdebug. * config/tc-alpha.c (alpha_flag_mdebug): Init to -1. (s_alpha_file): Store first .file directive. (s_alpha_stab): New. (md_pseudo_table): Add stabs and stabn.