aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
AgeCommit message (Collapse)AuthorFilesLines
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.
2000-11-17 * as.c (debug_type): Init to DEBUG_UNSPECIFIED.Richard Henderson1-20/+88
* as.h (debug_type): Clarify documentation of the meaning of this variable. * dwarf2dbg.c (DWARF2_LINE_MIN_INSN_LENGTH): Default to 1. (print_stats): Fix parenthesis problem. (now_subseg_size): New. (dwarf2_finish): Use it. If DEBUG_DWARF2, emit bits for .debug_info. (dwarf2_directive_file): Don't set debug_type. (dwarf2_where): Honor DEBUG_DWARF2 first. (dwarf2_emit_insn): Renamed from dwarf2_generate_asm_lineno; do nothing if not emitting dwarf2 debug info, or no work. * dwarf2dbg.h (dwarf2_emit_insn): Update. * ecoff.c (add_file): Turn on DEBUG_ECOFF only if DEBUG_UNSPECIFIED. (ecoff_new_file): Likewise. * read.c (generate_lineno_debug): Kill ecoff hackery. Update commentary wrt dwarf2. * config/tc-alpha.c (alpha_adjust_symtab_relocs): Add ATTRIBUTE_UNUSED as needed. (emit_insn): Call dwarf2_emit_insn. (s_alpha_file): New. (s_alpha_loc): New. (s_alpha_coff_wrapper): Don't handle them. (md_pseudo_table): Update for .file and .loc. * config/tc-alpha.h (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-arm.c (output_inst): Update for dwarf2_emit_insn; don't protect with debug_type. * config/tc-hppa.c (md_assemble): Likewise. * config/tc-m68hc11.c (m68hc11_new_insn): Likewise. * config/tc-mn10300.c (md_assemble): Likewise. * config/tc-sh.c (md_assemble): Likewise. * config/tc-v850.c (md_assemble): Likewise. * config/tc-arm.c (arm_end_of_source): Remove. * config/tc-hppa.c (pa_end_of_source): Remove. * config/tc-m68hc11.c (m68hc11_end_of_source): Remove. * config/tc-mn10300.c (mn10300_finalize): Remove. * config/tc-sh.c (sh_finalize): Remove. * config/tc-v850.c (sh_finalize): Remove. * config/tc-arm.h (md_end): Remove. * config/tc-hppa.h (md_end): Remove. (DWARF2_LINE_MIN_INSN_LENGTH): New. * config/tc-m68hc11.h (md_end): Remove. * config/tc-mn10300.h (md_end): Remove. * config/tc-sh.h (md_end): Remove. * config/tc-v850.h (md_end): Remove. * config/tc-ia64.c (emit_one_bundle): Don't protect dwarf2 bits with debug_type. (md_assemble): Likewise. (ia64_end_of_source): Don't call dwarf2_finish.
2000-11-132000-11-12 H.J. Lu (hjl@gnu.org)H.J. Lu1-1/+1
* dwarf2dbg.c (dwarf2_generate_asm_lineno): Use addressT instead of bfd_vma for non-bfd assemblers.
2000-11-072000-11-06 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-6/+5
* as.c: Fix formatting. * dwarf2dbg.c: Likewise. * itbl-ops.c: Likewise. * listing.c: Likewise. * macro.h: Likewise. * messages.c: Likewise. * read.c: Likewise. * subsegs.c: Likewise. * subsegs.h: Likewise. * write.c: Likewise.
2000-10-25Add --gdwarf2 support to ARM toolchainNick Clifton1-0/+22
2000-10-172000-10-17 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-21/+13
* debug.c: Fix formatting. * depend.c: Likewise. * dwarf2dbg.c: Likewise. * dwarf2dbg.h: Likewise. * ecoff.c: Likewise. * expr.c: Likewise. * expr.h: Likewise. * flonum-konst.c: Likewise. * frags.h: Likewise.
2000-08-182000-08-17 Kazu Hirata <kazu@hxi.com>Kazu Hirata1-25/+37
* dwarf2dbg.c: Fix formatting.
2000-02-22 From Brad Lucier <lucier@math.purdue.edu>:Ian Lance Taylor1-2/+3
* dwarf2dbg.c (print_stats): Add cast to force printf argument to match format.
1999-08-27Apply Jim Wilson's patch to track current frag for line number changes.Nick Clifton1-13/+21
1999-08-26This makes the line number info for the end of a function match what theNick Clifton1-2/+8
standard specifies. The current code could confuse a debugger.
1999-08-26Applied patch from Jim Wilson to fix several bugs in line table generation.Nick Clifton1-5/+11
1999-07-15 * dwarf2dbg.c (dwarf2_gen_line_info): Don't assume that long longIan Lance Taylor1-2/+2
or %llx work.
1999-07-11 * Many files: Changes to avoid gcc warnings: Add ATTRIBUTE_UNUSEDIan Lance Taylor1-5/+34
as appropriate. Fill in structure initializations. Add variable initializations. Add casts. * dwarf2dbg.c (print_stats): Change i to size_t. * listing.c (listing_listing): Change list_line to unsigned int.
1999-06-26David Mosberger <davidm@hpl.hp.com>Richard Henderson1-6/+9
* dwarf2dbg.c (dwarf2_gen_line_info): Don't call out_end_sequence() when the address decreases due to a new frag. (gen_dir_list): Set ls.file[i].dir to j + 1 (not j) because file numbering starts with 1.
1999-06-12 * dwarf2dbg.c: Include elf/dwarf2.h with "", not <>.Ian Lance Taylor1-1/+1
* Makefile.am: Rebuild dependencies. * Makefile.in: Rebuild.
1999-06-12fix copyrightsIan Lance Taylor1-3/+3
1999-06-11 * dwarf2dbg.c: Change bfd_vma to addressT and bfd_signed_vma toIan Lance Taylor1-16/+27
offsetT. (out_set_addr): Don't use BYTES_PER_ADDRESS. Instead, get the value from the output file architecture. (dwarf2_gen_line_info): Ifdef BFD_ASSEMBLER specific code. * dwarf2dbg.h: Change bfd_vma to addressT.
1999-06-05 * dwarf2dbg.c (dwarf2_gen_line_info): Mirror the section symbolRichard Henderson1-1/+7
creation logic from obj_elf_create_section. * config/obj-elf.c (elf_pseudo_tab): Add pushsection/popsection. (section_stack): New. (special_sections): Make const. (obj_elf_section): Gut and rewrite parsing. (obj_elf_change_section): New function broken out of obj_elf_section. (obj_elf_parse_section_letters): Likewise. (obj_elf_section_word): Likewise. (obj_elf_section_type): Likewise. (obj_elf_previous): Treat as a toggle. (obj_elf_popsection): New. * config/tc-ppc.c (ppc_section_word): Take str+len not ptr_str. (ppc_section_type): Likewise. * config/tc-ppc.h: Likewise. * expr.h (struct expressionS): Don't make X_op a bitfield. * config/tc-alpha.c: Update for symbol handling changes. (md_apply_fix) [case GPREL]: Use now_seg instead of absolute_section. (load_expression, emit_ir_load, emit_loadstore, emit_jsrjmp): Likewise.
1999-06-05 * dwarf2dbg.c (*): Convert to K&R + prototypes.Richard Henderson1-22/+54
(dwarf2_gen_line_info): Kill unused variables. (dwarf2_finish): Likewise. (dwarf2_where): Likewise. (dwarf2_directive_file): If we've only got a string, hand off to s_app_file. * ecoff.c: Move the include of ecoff.h. * symbols.h (S_IS_FUNCTION): Prototype. * read.c (LEX_HASH): Supply a default. (lex_type): Use it. (s_globl): Update `c' after skipping whitespace. * read.h (LEX_END_NAME, is_name_ender): New. * expr.c (get_symbol_end): Respect it.
1999-06-03 * dwarf2dbg.c (dwarf2_gen_line_info): Use section_symbolRichard Henderson1-8/+4
instead of doing the work by hand.
1999-06-03 * as.c (parse_args): Add option -gdwarf2 to allow requestingRichard Henderson1-0/+672
DWARF2 debug info (line information only, at this point). * as.h: Update comment about supported debug formats. * dwarf2dbg.c, dwarf2dbg.h: New files. * Makefile.am (GAS_CFILES, HFILES, GENERIC_OBJS): Add them.