summaryrefslogtreecommitdiffstats
path: root/gas/dwarf2dbg.c
Commit message (Collapse)AuthorAgeFilesLines
* * dwarf2dbg.c (process_entries): Fix uninitialized variable warning.Richard Henderson2005-09-201-2/+3
|
* * dwarf2dbg.c (struct line_entry): Replace frag and frag_ofsRichard Henderson2005-09-201-74/+114
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | with label. (dwarf2_loc_mark_labels): New. (dwarf2_gen_line_info_1): Split out of ... (dwarf2_gen_line_info): ... here. Create the temp symbol here. (dwarf2_emit_label): New. (dwarf2_directive_loc_mark_labels): New. (out_set_addr): Take a symbol instead of frag+ofs. (relax_inc_line_addr): Likewise. (emit_inc_line_addr): Assert delta non-negative. (process_entries): Remove dead code. Update to work with temp symbols instead of frag+ofs. * dwarf2dbg.h (dwarf2_directive_loc_mark_labels): Declare. (dwarf2_emit_label, dwarf2_loc_mark_labels): Declare. * config/obj-elf.c (elf_pseudo_tab): Add loc_mark_labels. * config/obj-elf.h (obj_frob_label): New. * config/tc-alpha.c (alpha_define_label): Call dwarf2_emit_label. * config/tc-arm.c, config/tc-hppa.c, config/tc-m68k.c, config/tc-mips.c, config/tc-ppc.c, config/tc-sh.c, config/tc-xtensa.c: Similarly in the respective tc_frob_label implementation functions. * config/tc-i386.c (md_pseudo_table): Move file and loc to non-elf section; add loc_mark_labels. * config/tc-ia64.c (struct label_fix): Add dw2_mark_labels. (ia64_flush_insns): Check for marked labels; emit line entry if so. (emit_one_bundle): Similarly. (ia64_frob_label): Record marked labels. * config/tc-m68hc11.h (tc_frob_label): Remove. * config/tc-ms1.c (md_pseudo_table): Remove file and loc. * config/tc-sh.h (tc_frob_label): Pass sym to sh_frob_label. * config/tc-sh64.h (tc_frob_label): Likewise. * doc/as.texinfo (LNS directives): Docuement .loc_mark_blocks.
* * dwarf2dbg.c (dwarf2_where): Set line->isa.Richard Henderson2005-09-071-56/+77
| | | | | | | | | | | (dwarf2_set_isa): New. (dwarf2_directive_loc): Rearrange to allow all options on one line. * dwarf2dbg.h (dwarf2_set_isa): Declare. * doc/as.texinfo: Update .loc documentation. * gas/lns/lns-common-1.d: Don't match header or special opcode numbers. * gas/lns/lns-common-1.s: Update for syntax change. * gas/lns/lns-diag-1.[sl]: Likewise.
* * dwarf2dbg.c: Include safe-ctype.h.Richard Henderson2005-09-071-59/+146
| | | | | | | | | | | | | | | | | | | | (DWARF2_LINE_OPCODE_BASE): Bump to 13. (current): Initialize. (dwarf2_emit_insn): Clear DWARF2_FLAG_BASIC_BLOCK, DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN. (dwarf2_directive_file): Cope with invalid filename. (dwarf2_directive_loc): Add handling for basic_block, prologue_end, epilogue_begin, is_stmt, isa. (emit_inc_line_addr): Move line_delta == 0, addr_delta == 0 special case down lower. (process_entries): Handle isa, DWARF2_FLAG_PROLOGUE_END, and DWARF2_FLAG_EPILOGUE_BEGIN. (out_debug_line): Emit sizes for DW_LNS_set_prologue_end, DW_LNS_set_epilogue_begin, DW_LNS_set_isa. * dwarf2dbg.h (DWARF2_FLAG_IS_STMT): Rename from DWARF2_FLAG_BEGIN_STMT. (DWARF2_FLAG_BASIC_BLOCK): Rename from DWARF2_FLAG_BEGIN_BLOCK. (DWARF2_FLAG_PROLOGUE_END, DWARF2_FLAG_EPILOGUE_BEGIN): New. (struct dwarf2_line_info): Add isa member. * doc/as.texinfo (LNS directives): New node.
* * README-vms: Delete.Alan Modra2005-08-111-53/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * config-gas.com: Delete. * makefile.vms: Delete. * vmsconf.sh: Delete. * config/atof-tahoe.c: Delete. * config/m88k-opcode.h: Delete. * config/obj-bout.c: Delete. * config/obj-bout.h: Delete. * config/obj-hp300.c: Delete. * config/obj-hp300.h: Delete. * config/tc-a29k.c: Delete. * config/tc-a29k.h: Delete. * config/tc-h8500.c: Delete. * config/tc-h8500.h: Delete. * config/tc-m88k.c: Delete. * config/tc-m88k.h: Delete. * config/tc-tahoe.c: Delete. * config/tc-tahoe.h: Delete. * config/tc-tic80.c: Delete. * config/tc-tic80.h: Delete. * config/tc-w65.c: Delete. * config/tc-w65.h: Delete. * config/te-aux.h: Delete. * config/te-delt88.h: Delete. * config/te-delta.h: Delete. * config/te-dpx2.h: Delete. * config/te-hp300.h: Delete. * config/te-ic960.h: Delete. * config/vms-a-conf.h: Delete. * doc/c-a29k.texi: Delete. * doc/c-h8500.texi: Delete. * doc/c-m88k.texi: Delete. * README: Remove obsolete examples, and list of supported targets. * Makefile.am: Remove a29k, h8500, m88k, tahoe, tic80, w65, bout and hp300 support. (DEP_FLAGS): Don't define BFD_ASSEMBLER. * configure.in: Remove --enable-bfd-assembler, need_bfd, primary_bfd_gas. * configure.tgt: Remove a29k, h8300-coff, h8500-*, i960 non-elf, m68k non bfd, m88k, or32-coff, tic80-*, vax non-bfd, w65k-*, *-nindy. * as.c: Remove all non-BFD_ASSEMBLER code, support for above targets. * as.h: Likewise. * dw2gencfi.c: Likewise. * dwarf2dbg.c: Likewise. * ehopt.c: Likewise. * input-file.c: Likewise. * listing.c: Likewise. * literal.c: Likewise. * messages.c: Likewise. * obj.h: Likewise. * output-file.c: Likewise. * read.c: Likewise. * stabs.c: Likewise. * struc-symbol.h: Likewise. * subsegs.c: Likewise. * subsegs.h: Likewise. * symbols.c: Likewise. * symbols.h: Likewise. * tc.h: Likewise. * write.c: Likewise. * write.h: Likewise. * config/aout_gnu.h: Likewise. * config/obj-aout.c: Likewise. * config/obj-aout.h: Likewise. * config/obj-coff.c: Likewise. * config/obj-coff.h: Likewise. * config/obj-evax.h: Likewise. * config/obj-ieee.h: Likewise. * config/tc-arm.c: Likewise. * config/tc-arm.h: Likewise. * config/tc-avr.c: Likewise. * config/tc-avr.h: Likewise. * config/tc-crx.h: Likewise. * config/tc-d10v.h: Likewise. * config/tc-d30v.h: Likewise. * config/tc-dlx.h: Likewise. * config/tc-fr30.h: Likewise. * config/tc-frv.h: Likewise. * config/tc-h8300.c: Likewise. * config/tc-h8300.h: Likewise. * config/tc-hppa.h: Likewise. * config/tc-i370.h: Likewise. * config/tc-i386.c: Likewise. * config/tc-i386.h: Likewise. * config/tc-i860.h: Likewise. * config/tc-i960.c: Likewise. * config/tc-i960.h: Likewise. * config/tc-ip2k.h: Likewise. * config/tc-iq2000.h: Likewise. * config/tc-m32c.h: Likewise. * config/tc-m32r.h: Likewise. * config/tc-m68hc11.h: Likewise. * config/tc-m68k.c: Likewise. * config/tc-m68k.h: Likewise. * config/tc-maxq.c: Likewise. * config/tc-maxq.h: Likewise. * config/tc-mcore.c: Likewise. * config/tc-mcore.h: Likewise. * config/tc-mn10200.h: Likewise. * config/tc-mn10300.c: Likewise. * config/tc-mn10300.h: Likewise. * config/tc-ms1.h: Likewise. * config/tc-msp430.c: Likewise. * config/tc-msp430.h: Likewise. * config/tc-ns32k.c: Likewise. * config/tc-ns32k.h: Likewise. * config/tc-openrisc.h: Likewise. * config/tc-or32.c: Likewise. * config/tc-or32.h: Likewise. * config/tc-ppc.c: Likewise. * config/tc-ppc.h: Likewise. * config/tc-s390.h: Likewise. * config/tc-sh.c: Likewise. * config/tc-sh.h: Likewise. * config/tc-sparc.c: Likewise. * config/tc-tic30.c: Likewise. * config/tc-tic30.h: Likewise. * config/tc-tic4x.c: Likewise. * config/tc-tic4x.h: Likewise. * config/tc-tic54x.c: Likewise. * config/tc-tic54x.h: Likewise. * config/tc-v850.h: Likewise. * config/tc-vax.c: Likewise. * config/tc-vax.h: Likewise. * config/tc-xstormy16.h: Likewise. * config/tc-xtensa.h: Likewise. * config/tc-z8k.c: Likewise. * config/tc-z8k.h: Likewise. * config/vms-a-conf.h * doc/Makefile.am: Likewise. * doc/all.texi: Likewise. * doc/as.texinfo: Likewise. * doc/Makefile.in: Regenerate. * Makefile.in: Regenerate. * configure: Regenerate. * config.in: Regenerate. * po/POTFILES.in: Regenerate.
* Update the address and phone number of the FSFNick Clifton2005-05-051-2/+2
|
* update copyright datesAlan Modra2005-03-031-1/+2
|
* * dwarf2dbg.c (dwarf2_finish): Correct logic for determining whenNathan Sidwell2005-01-271-13/+22
| | | | | | to emit .debug_line and other debug sections. * as.h (seg_not_empty_p): Declare. * subsegs.c (seg_not_empty_p): New predicate.
* * dwarf2dbg.c (dwarf2_finish): Don't write a .debug_line sectionBob Wilson2004-11-221-3/+2
| | | | without a corresponding .debug_info section.
* (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>Andreas 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.
OpenPOWER on IntegriCloud