aboutsummaryrefslogtreecommitdiff
path: root/gprof/corefile.c
AgeCommit message (Collapse)AuthorFilesLines
2015-01-02ChangeLog rotatation and copyright year updateAlan Modra1-1/+1
2014-03-05Update copyright yearsAlan Modra1-1/+1
2013-10-09 PR gprof/16027Nick Clifton1-2/+3
* source.c (annotate_source): Close ifp. * corefile.c (read_function_mappings): Close file.
2013-05-22 * aarch64.c: New file.Alan Modra1-0/+5
* corefile.c (find_call): Call aarch64_find_call for bfd_arch_aarch64. * Makefile.am (sources): Add aarch64.c. * Makefile.in: Regenerate.
2012-09-20 * corefile.c (core_sym_class): Allow for ".constprop.N" clonedAlan Modra1-7/+13
functions.
2012-03-062012-03-06 Tristan Gingold <gingold@adacore.com>Tristan Gingold1-8/+17
* corefile.c (core_create_function_syms): Do not call bsearch if symbol_map_count is 0.
2011-06-07 * corefile.c (core_sym_class): Allow for multiple iterations ofNick Clifton1-9/+17
clone clones and subprograms.
2011-02-282011-02-28 Kai Tietz <kai.tietz@onevision.com>Kai Tietz1-3/+5
* basic_blocks.c (cmp_bb): Use filename_(n)cmp. * cg_print.c (order_and_dump_functions_by_arcs): Likewise. (cg_print_file_ordering): Likewise. * corefile.c (read_function_mappings): Likewise. (core_create_line_syms): Likewise.
2011-02-06 PR gprof/12468Alan Modra1-2/+17
* corefile.c (core_create_function_syms): Set is_func for targets that have no BSF_FUNCTION syms.
2010-07-16 * corefile.c (core_sym_class): Fix handling of subprogram namesNick Clifton1-5/+13
and add support for cloned function names.
2010-04-27 PR gprof/11524Nick Clifton1-3/+3
* corefile.c (core_create_syms_from): Use correct size of buffer.
2009-09-11 * po/bfd.pot: Updated by the Translation project.Nick Clifton1-10/+13
* po/binutils.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gold.pot: Updated by the Translation project. * po/gprof.pot: Updated by the Translation project. * po/sv.po: Updated Swedish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. * po/ld.pot: Updated by the Translation project. * po/fi.po: Updated Finnish translation. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. Updated soruces in ld/* to compile cleanly with -Wc++-compat: * ld.h (enum endian_enum,enum symbolic_enum,enum dynamic_list_enum): Move to top level. * ldcref.c: Add casts. * ldctor.c: Add casts. * ldexp.c * ldexp.h (enum node_tree_enum,enum phase_enum): Move to top level. * ldlang.c: Add casts. (lang_insert_orphan): Use enum name instead of integer. * ldlang.h (enum statement_enum): Move to top level. * ldmain.c: Add casts. * ldwrite.c: Add casts. * lexsup.c: Add casts. (enum control_enum): Move to top level. * mri.c: Add casts. (mri_draw_tree): Use enum name instead of integer. Updated sources to compile cleanly with -Wc++-compat: * basic_blocks.c: Add casts. * cg_dfn.c: Add cast. * corefile.c: Add casts. * gmon_io.c: Add casts. * hist.c: Add cast. * source.c: Add cast. * sym_ids.c (struct match): Moved to top level. * as.c (main): Call dwarf2_init. * config/obj-elf.c (struct group_list): New field. (build_group_lists): Use hash lookup. (free_section_idx): New function. (elf_frob_file): Adjust. * dwarf2dbg.c (all_segs_hash, last_seg_ptr): New variables. (get_line_subseg): Adjust. (dwarf2_init): New function. * dwarf2dbg.h (dwarf2_init): New declaration.
2009-09-05 * bfd/coff-arm.c (coff_arm_relocate_section)Nick Clifton1-4/+4
(record_thumb_to_arm_glue, bfd_arm_process_before_allocation): Change member name class to symbol_class. * bfd/coff-i960.c (coff_i960_relocate_section) Rename variable class to class_val. Change member name class to symbol_class. * bfd/coff-rs6000.c (_bfd_xcoff_swap_aux_in) (_bfd_xcoff_swap_aux_out): Rename arguments class to in_class. * bfd/coff-stgo32.c (adjust_aux_in_post) (adjust_aux_out_pre, adjust_aux_out_post): Rename arguments class to in_class. * bfd/coff64-rs6000.c (_bfd_xcoff64_swap_aux_in) (_bfd_xcoff64_swap_aux_out): Rename arguments class to in_class. * bfd/coffcode.h (coff_pointerize_aux_hook): Rename variable class to n_sclass. * bfd/coffgen.c (coff_write_symbol, coff_pointerize_aux): Rename variables named class to n_sclass. (coff_write_symbols): Rename variable class to sym_class. (bfd_coff_set_symbol_class): Rename argument class to symbol_class. * bfd/cofflink.c (_bfd_coff_link_hash_newfunc) (coff_link_add_symbols, _bfd_coff_link_input_bfd) (_bfd_coff_write_global_sym, _bfd_coff_generic_relocate_section): Update code to use renamed members. * bfd/coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Rename argument class to in_class. * bfd/libcoff-in.h (struct coff_link_hash_entry, struct coff_debug_merge_type) Renamed members class to symbol_class and type_class. * bfd/libcoff.h Regenerated. * bfd/peXXigen.c: (_bfd_XXi_swap_aux_in, _bfd_XXi_swap_aux_out): Rename argument class to in_class. * bfd/pef.c (bfd_pef_parse_imported_symbol): Update code to use renamed members. * bfd/pef.h (struct bfd_pef_imported_symbol): Changed name of member class to symbol_class. * binutils/ieee.c (ieee_read_cxx_misc, ieee_read_cxx_class) (ieee_read_reference): Rename variables named class to cxxclass. * gas/config/tc-arc.c (struct syntax_classes): Rename member class to s_class. (arc_extinst): Rename variable class to s_class. Update code to use renamed members. * gas/config/tc-mips.c (insn_uses_reg): Rename argument class to regclass. * gas/config/tc-ppc.c (ppc_csect, ppc_change_csect, ppc_function) (ppc_tc, ppc_is_toc_sym, ppc_symbol_new_hook, ppc_frob_label) (ppc_fix_adjustable, md_apply_fix): Update code to use renamed members. * gas/config/tc-ppc.h (struct ppc_tc_sy): Change name of member from class to symbol_class. (OBJ_COPY_SYMBOL_ATTRIBUTES): Update code to use renamed members. * gas/config/tc-score.c (s3_adjust_paritybit): Rename argument class to i_class. * gas/config/tc-score7.c (s7_adjust_paritybit): Rename argument class to i_class. * gprof/corefile.c (core_create_function_syms): Rename variable class to cxxclass. * include/coff/ti.h (GET_LNSZ_SIZE, PUT_LNSZ_SIZE): Updated name of class variable to in_class to match changes in function that use this macro. * include/opcode/ia64.h (struct ia64_operand): Renamed member class to op_class * ld/emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols) (gld${EMULATION_NAME}_try_needed): Rename variable class to link_class * opcodes/ia64-dis.c (print_insn_ia64): Update code to use renamed member. * opcodes/m88k-dis.c (m88kdis): Rename variable class to in_class. * opcodes/tic80-opc.c (tic80_symbol_to_value) (tic80_value_to_symbol): Rename argument class to symbol_class.
2009-06-16 * corefile.c (cmp_symbol_map): New function.Nick Clifton1-46/+43
(read_function_mappins): Use qsort to sort the symbols. (search_mapped_symbol): New function. (core_create_function_syms): Use bsearch to find symbols. * corefile.h (struct function_map): Add new bit-field: is_first. * cg_print.c (cmp_symbol_map): New function. (cg_print_file_ordering): Sort the symbol map.
2009-06-15 * corefile.c (core_create_syms_from): Use BFD_VMA_FMT whenNick Clifton1-1/+1
scanning in an address.
2009-06-12 * corefile.c (num_of_syms_in): New function - computes the numberNick Clifton1-3/+101
of symbols in a given file. (core_create_syms_from): New function - populates a symbol table from the symbols found in a specified file. * corefile.h: Prototype core_create_syms_from. * gprof.c (long_options): Add --external-symbol-table. (usage): Mention it. (main): Initiailize external_symbol_table from --external-symbol-table option. If set use it. * gprof.texi: Document the new option. * NEWS: Mention new feature added to gprof.
2009-04-09 * corefile.c (core_create_function_syms): Initialise a symbol'sNick Clifton1-1/+1
is_func field based on the setting of the BSF_FUNCTION flag.
2009-02-12 * corefile.c (core_create_function_syms): Remove "<locore>" andAlan Modra1-32/+4
"<hicore>" sentinels. * gprof.c: Likewise. * cg_print.c (cg_print_function_ordering): Likewise. * alpha.c (alpha_find_call): Add check for return value of sym_lookup. * mips.c (mips_find_call): Likewise. * sparc.c (sparc_find_call): Likewise. * tahoe.c (tahoe_find_call): Likewise. * vax.c (vax_find_call): Likewise.
2008-07-30Silence gcc printf warningsAlan Modra1-2/+3
2008-06-19* basic_blocks.c: Always include "gprof.h" first.Andreas Schwab1-1/+1
* cg_arcs.c: Likewise. * cg_dfn.c: Likewise. * cg_print.c: Likewise. * corefile.c: Likewise. * gprof.c: Likewise. * hist.c: Likewise. * search_list.c: Likewise. * sym_ids.c: Likewise. * utils.c: Likewise.
2007-07-06CHange FSF sources over to GPLv3Nick Clifton1-1/+1
2007-07-05* corefile.c (core_sym_class): Do not discard nested subprograms.Nick Clifton1-3/+11
2007-04-19 * corefile.c (core_create_function_syms, core_create_line_syms): Don'tAlan Modra1-12/+0
set discard_underscores. * gprof.c (discard_underscores): Delete. * gprof.h (discard_underscores): Delete. * sym_ids.c (match): Use bfd_get_symbol_leading_char to check for leading underscores. * utils.c (print_name_only): Call bfd_demangle rather than cplus_demangle. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
2007-04-10 * hist.h (struct histogram)Vladimir Prus1-0/+6
(histograms, num_histograms): New. * hist.c (find_histogram, find_histogram_for_pc) (read_histogram_header): New. (s_lowpc, s_highpc, lowpc, highpc, hist_num_bins) (hist_sample): Remove. (hist_read_rec): Use the above, and handle multiple histogram records with disjoint address ranges. (hist_write_hist): Support several histogram records. (scale_and_align_entries): Adjust for multiple histograms. (hist_assign_samples_1): New. (hist_assign_samples): Use the above. (hist_clip_symbol_address): New. * hist.h (hist_check_address) (hist_clip_symbol_address): Declare. * gmon_io.c (gmon_out_read, gmon_out_write): Adjust handling of legacy format for multiple histogram changes. * corefile.c (find_call): Check for core_text_space and clip symbol address range here. * vax.c (vax_find_call): Don't check for core_text_space, or clip the symbol's address range here. Use hist_check_address to check call's target address. * sparc.c: Likewise. * tahoe.c: Likewise. * i386.c: Likewise. * mips.c: Likewise. Also use core_text_sect->vma as the base address for code accesses, just like other machine-specific routines do. * gprof.texi: Adjust for the new logic.
2007-01-15 * corefile.c (parse_error): New function.Ben Elliston1-14/+21
(read_function_mappings): Check calls to fscanf and report any errors in parsing the mapping file.
2006-03-22 * corefile.c (core_init): Report that the executable is not in theBen Elliston1-1/+1
expected executable format rather than "a.out" format.
2005-05-09Update the address of the FSFNick Clifton1-2/+2
2005-04-23 * corefile.c (core_num_syms): Make static.Ben Elliston1-3/+3
(core_syms): Likewise. (min_insn_size): Likewise. * gprof.c (abfd): Remove unused variable. * hist.c (hist_dimension): Make static. (hist_dimension_abbrev): Likewise. * sym_ids.c (id_list): Likewise. (table_name): Likewise.
2005-04-14 * corefile.c (core_init): Call bfd_get_synthetic_symtab.Alan Modra1-1/+21
2005-03-03update copyright datesAlan Modra1-1/+2
2004-06-15 * corefile.c (core_init): Use bfd_get_section_sizeAlan Modra1-5/+5
instead of bfd_get_section_size_before_reloc or _raw_size. * symtab.c (symtab_finalize): Likewise.
2004-05-262004-05-26 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+2
* corefile.c (core_create_line_syms): Per ISO C '90, move vma_high's declaration to the function's start.
2004-05-26 * alpha.c, basic_blocks.c, basic_blocks.h, bb_exit_func.c,Ben Elliston1-26/+15
call_graph.c, call_graph.h, cg_arcs.c, cg_arcs.h, cg_dfn.c, cg_dfn.h, cg_print.c, cg_print.h, corefile.c, corefile.h, gmon_io.c, gmon_io.h, gprof.c, gprof.h, hertz.h, hist.c, hist.h, i386.c, mips.c, search_list.c, search_list.h, source.c, source.h, sparc.c, sym_ids.c, sym_ids.h, symtab.c, symtab.h, tahoe.c, utils.c, utils.h, vax.c, gen-c-prog.awk: Convert K&R C to ANSI C.
2004-05-26 * corefile.c (core_init): Use a separate local variable,Ben Elliston1-18/+14
core_sym_bytes, to make the units from bfd_get_symtab_upper_bound more obvious. (core_create_function_syms): Discard cbfd argument. Eliminate `offset' variable and calculate VMA directly. Update all users. * corefile.h (core_create_function_syms): Update prototype. (core_create_line_syms): Likewise. * gprof.c (main): Remove #ifdef PROF_SUPPORT_IMPLEMENTED code. Tidy.
2003-10-11 * corefile.c (core_create_function_syms): Don't refer directly toAlan Modra1-4/+10
_cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
2003-02-21Check for a NULL sentinel value before using it.Nick Clifton1-3/+6
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-8/+8
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-07-242002-07-24 Dave Brolley <brolley@redhat.com>Dave Brolley1-1/+8
* corefile.c (core_create_function_syms): Use the end of the section containing the symbol to compute max_vma.
2002-02-01 * alpha.c (alpha_find_call): Warning fixes.Alan Modra1-35/+44
* mips.c (mips_find_call): Likewise. * sparc.c (sparc_find_call): Likewise. * basic_blocks.c: Warning fixes. Eliminate DEFUN. * call_graph.c: Likewise. * cg_arcs.c: Likewise. * cg_dfn.cp: Likewise. * gprof.c: Likewise. * gprof.h: Likewise. * hist.c: Likewise. * search_list.c: Likewise. * source.c: Likewise. * source.h: Likewise. * sym_ids.c: Likewise. * symtab.c: Likewise. * symtab.h: Likewise. * utils.c: Likewise. * cg_print.c: Likewise. (struct function_map, symbol_map, symbol_map_count): Move declaration to.. * corefile: ..here. * corefile.c: Warning fixes. Eliminate DEFUN. (struct function_map): Remove declaration. * gmon_io.c: Warning fixes. Eliminate DEFUN. (gmon_io_read_64): Make static. (gmon_io_write_64): Likewise. (gmon_read_raw_arc): Likewise. (gmon_write_raw_arc): Likewise. (gmon_io_write_8): Don't pass char, pass int param. * gmon_io.h (gmon_io_write_8): Likewise. and a few copyright dates that should have been done previously.
2002-02-01 * basic_blocks.c: Replace bool with boolean, TRUE with true andAlan Modra1-7/+7
FALSE with false throughout. * basic_blocks.h: Likewise. * cg_arcs.c: Likewise. * cg_dfn.c: Likewise. * cg_print.c: Likewise. * corefile.c: Likewise. * gmon_io.c: Likewise. * gprof.c: Likewise. * hist.c: Likewise. * mips.c: Likewise. * source.c: Likewise. * source.h: Likewise. * sym_ids.c: Likewise. * sym_ids.h: Likewise. * symtab.h: Likewise. * tahoe.c: Likewise. * vax.c: Likewise. * gprof.h: Likewise. (TRUE): Don't define. (FALSE): Don't define.
2002-01-31 * alpha.c (alpha_Instruction): Don't use.Alan Modra1-1/+3
(alpha_find_call): Avoid use of bitfields and casts between pointers and integers of different sizes. Avoid endian problems when cross-compiling. * vax.c (vax_find_call): Likewise. (struct modebyte): Don't use. (vax_operandmode): Pass in an unsigned char *. (vax_operandlength): Likewise. (vax_reladdr): Rename to vax_offset and return relative offset rather than address. * i386.c (i386_find_call): Avoid casts between pointers and integers of different sizes. * sparc.c (sparc_find_call): Likewise. Avoid endian problems. * tahoe.c (tahoe_find_call): Likewise. (tahoe_reladdr): Rename to tahoe_offset and return relative offset rather than address. * basic_blocks.h: Don't include headers here. * call_graph.h: Likewise. * cg_arcs.h: Likewise. * cg_print.h: Likewise. * corefile.h: Likewise. * gmon_io.h: Likewise. * gmon_out.h: Likewise. * hertz.h: Likewise. * hist.h: Likewise. * source.h: Likewise. * sym_ids.h: Likewise. * symtab.h: Likewise. * gprof.h: Don't include ansidecl.h, do include bfd.h. (bool): Don't typedef. * alpha.c: Adjust #include's for above header changes. * basic_blocks.c: Likewise. * call_graph.c: Likewise. * cg_arcs.c: Likewise. * cg_dfn.c: Likewise. * cg_print.c: Likewise. * corefile.c: Likewise. * gmon_io.c: Likewise. * gprof.c: Likewise. * hertz.c: Likewise. * hist.c: Likewise. * i386.c: Likewise. * mips.c: Likewise. * sparc.c: Likewise. * sym_ids.c: Likewise. * symtab.c: Likewise. * tahoe.c: Likewise. * utils.c: Likewise. * vax.c: Likewise. * po/POTFILES.in: Regenerate.
2002-01-26* mips.c: New file.Jason Thorpe1-1/+6
* Makefile.am (sources): Add mips.c. (mips.o): New rule. * Makefile.in: Regenerate. * corefile.c: Update copyright years. (find_call): Call mips_find_call for bfd_arch_mips.
2001-03-14David Mosberger's fixes for cross compiling gprof.Alan Modra1-40/+40
2001-03-13Fix typos in ChangeLog; fix dates in copyright noticesNick Clifton1-1/+1
2000-07-24Add GPL copyright notices to uncopyrighted files.Nick Clifton1-165/+140
Add copy of GPL.
1999-08-06 From Brad Lucier <lucier@math.purdue.edu>:Ian Lance Taylor1-2/+3
* corefile.c (core_create_line_syms): Add cast for printf.
1999-07-11 * corefile.c (core_create_function_syms): Add ATTRIBUTED_UNUSED.Ian Lance Taylor1-1/+2
* sym-ids.c (non_existent_file): Fully initialize structure.
1999-06-30 * Many files: Add casts in many print statements to cast bfd_vmaIan Lance Taylor1-6/+8
values to unsigned long when calling printf. * Makefile.am ($(OBJECTS)): Add gmon.h. * Makefile.in: Rebuild.
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+762