* corefile.c (cmp_symbol_map): New function.
[binutils.git] / gprof / ChangeLog
blob68428aa1f826fdebf3d1bc456e3e81d00a759593
1 2009-06-16  Homer Xing  <homer.xing@yahoo.com>
3         * corefile.c (cmp_symbol_map): New function.
4         (read_function_mappins): Use qsort to sort the symbols.
5         (search_mapped_symbol): New function.
6         (core_create_function_syms): Use bsearch to find symbols.
7         * corefile.h (struct function_map): Add new bit-field: is_first.
8         * cg_print.c (cmp_symbol_map): New function.
9         (cg_print_file_ordering): Sort the symbol map.
11 2009-06-15  Homer Xing  <homer.xing@yahoo.com>
13         * corefile.c (core_create_syms_from): Use BFD_VMA_FMT when
14         scanning in an address.
16 2009-06-12  Homer Xing  <homer.xing@yahoo.com>
18         * corefile.c (num_of_syms_in): New function - computes the number
19         of symbols in a given file.
20         (core_create_syms_from): New function - populates a symbol table
21         from the symbols found in a specified file.
22         * corefile.h: Prototype core_create_syms_from.
23         * gprof.c (long_options): Add --external-symbol-table.
24         (usage): Mention it.
25         (main): Initiailize external_symbol_table from
26         --external-symbol-table option.  If set use it.
27         * gprof.texi: Document the new option.
29 2009-06-04  Alan Modra  <amodra@bigpond.net.au>
31         * dep-in.sed: Don't use \n in replacement part of s command.
32         * Makefile.am (DEP1): LC_ALL for uniq.
33         * Makefile.in: Regenerate.
35 2009-05-26  Nick Clifton  <nickc@redhat.com>
37         * po/id.po: Updated Indonesian translation.
38         * po/gprof.pot: Updated template file.
40 2009-05-26  Alan Modra  <amodra@bigpond.net.au>
42         * dep-in.sed: Output one filename per line with all lines having
43         continuation backslash.  Prefix first line with "A", following
44         lines with "B".
45         * Makefile.am (DEP): Don't use dep.sed here.
46         (DEP1): Run $MKDEP on single files, use dep.sed here on dependencies,
47         sort and uniq.
48         * Makefile.in: Regenerate.
50 2009-05-22  Alan Modra  <amodra@bigpond.net.au>
52         * Makefile.am: Run "make dep-am".
53         * Makefile.in: Regenerate.
55 2009-04-15  Kazu Hirata  <kazu@codesourcery.com>
57         * gprof.h: Include gconfig.h.  #undef PACKAGE.
59 2009-04-09  Philippe Biondi  <phil@secdev.org>
61         * corefile.c (core_create_function_syms): Initialise a symbol's
62         is_func field based on the setting of the BSF_FUNCTION flag.
64 2009-03-06  Nick Clifton  <nickc@redhat.com>
66         * po/es.po: Updated Spanish translation.
68 2009-03-03  Alan Modra  <amodra@bigpond.net.au>
70         * Makefile.am: Run "make dep-am".
71         * Makefile.in: Regenerate.
73 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75         * configure: Regenerate.
77 2009-02-12  Ken Werner  <ken.werner@de.ibm.com>
79         * corefile.c (core_create_function_syms): Remove "<locore>" and 
80         "<hicore>" sentinels.
81         * gprof.c: Likewise.
82         * cg_print.c (cg_print_function_ordering): Likewise.
83         * alpha.c (alpha_find_call): Add check for return value of sym_lookup.
84         * mips.c (mips_find_call): Likewise.
85         * sparc.c (sparc_find_call): Likewise.
86         * tahoe.c (tahoe_find_call): Likewise.
87         * vax.c (vax_find_call): Likewise.
89 2009-02-03  Carlos O'Donell  <carlos@codesourcery.com>
91         * configure.in: AC_SUBST pdfdir.
92         * Makefile.am: Add install-pdf, install-pdf-am,
93         and install-pdf-recursive targets. Define pdf__strip_dir.
94         * po/Make-in: Add install-pdf target.
95         * configure: Regenerate.
96         * Makefile.in: Regenerate.
98 2009-01-03  Nick Clifton  <nickc@redhat.com>
100         PR 7099
101         * gprof.texi (Compiling): Mention the need for using
102         -static-libgcc on shared library systems.
104 2009-01-02  Nick Clifton  <nickc@redhat.com>
106         * po/id.po: Updated Indonesian translation.
108 2008-12-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110         * configure: Regenerate.
112 2008-11-19  Nick Clifton  <nickc@redhat.com>
114         * fdl.texi: New file.
115         * gprof.texi: Change license to v1.3.
117 2008-09-29  Peter O'Gorman  <pogma@thewrittenword.com>
118             Steve Ellcey  <sje@cup.hp.com>
120         * configure: Regenerate for new libtool.
121         * aclocal.m4: Ditto.
122         * Makefile.in: Ditto.
124 2008-09-29  Nick Clifton  <nickc@redhat.com>
126         * po/vi.po: Updated Vietnamese translation.
128 2008-09-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
130         * configure.in: Call AC_SYS_LARGEFILE.
131         * gconfig.in: Regenerate.
132         * configure: Regenerate.
134 2008-09-11  Alan Modra  <amodra@bigpond.net.au>
136         * po/ro.po: New file.
138 2008-08-25  Alan Modra  <amodra@bigpond.net.au>
140         * gmon_io.h: Don't include sysdep.h here.
141         (O_BINARY, SET_BINARY): Don't define here.
142         * gmon_io.c: Include "binary-io.h".
143         (gmon_out_read): Remove #ifdef SET_BINARY.
144         * Makefile.am: Run "make dep-am"
145         * Makefile.in: Regenerate.
147 2008-08-24  Alan Modra  <amodra@bigpond.net.au>
149         * configure.in: Update a number of obsolete autoconf macros.
151 2008-08-15  Alan Modra  <amodra@bigpond.net.au>
153         PR 6526
154         * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
155         * Makefile.in: Regenerate.
156         * aclocal.m4: Regenerate.
157         * configure: Regenerate.
158         * gconfig.in: Regenerate.
160 2008-08-05  Brian Dessent  <brian@dessent.net>
162         * gmon_io.c (gmon_out_read): When reading old format gmon.out,
163         set num_histograms and hist_scale.
165 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
167         * Makefile.am (POTFILES.in): Set LC_ALL=C.
168         * Makefile.in: Regenerate.
170 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
172         * corefile.c, symtab.c: Silence gcc warnings.
174 2008-06-19  Andreas Schwab  <schwab@suse.de>
176         * basic_blocks.c: Always include "gprof.h" first.
177         * cg_arcs.c: Likewise.
178         * cg_dfn.c: Likewise.
179         * cg_print.c: Likewise.
180         * corefile.c: Likewise.
181         * gprof.c: Likewise.
182         * hist.c: Likewise.
183         * search_list.c: Likewise.
184         * sym_ids.c: Likewise.
185         * utils.c: Likewise.
187 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
189         * configure: Regenerate.
191 2008-06-04  Nick Clifton  <nickc@redhat.com>
193         * po/nl.po: New file: Dutch translation.
194         * configure.in (ALL_LINGUAS): Add nl.
195         * configure: Regenerate.
197 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
199         * Makefile.in: Regenerate.
201 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
203         * aclocal.m4: Regenerate.
204         * configure: Regenerate.
206 2008-03-31  Nick Clifton  <nickc@redhat.com>
208         * po/fr.po: Updated French translation.
210 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
212         * aclocal.m4: Regenerate.
213         * configure: Likewise.
214         * Makefile.in: Likewise.
216 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
218         * configure: Regenerate.
220 2008-02-06  Nick Clifton  <nickc@redhat.com>
222         * po/ms.po: Updated Malasian translation.
224 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
226         PR 5715
227         * configure: Regenerated.
229 2007-10-24  H.J. Lu  <hongjiu.lu@intel.com>
231         * configure.in: Move AM_PROG_LIBTOOL after AC_GNU_SOURCE.
232         * configure: Regenerated.
234 2007-10-24  Alan Modra  <amodra@bigpond.net.au>
236         * Makefile.am (INCLUDES): Remove -D_GNU_SOURCE.
237         * configure.in: Invoke AC_GNU_SOURCE.
238         * Makefile.in: Regenerate.
239         * configure: Regenerate.
240         * gconfig.in: Regenerate.
242 2007-10-12  Michael Haubenwallner  <haubi@gentoo.org>
244         PR gprof/5147
245         * configure.in: Add check for fabs() being in libm.
246         * configure: Regenerate.
248 2007-09-25  Robert Norton  <rnorton@broadcom.com>
250         * cg_print.c (sort_members): Include the final member on the list
251         in the sort.
253 2007-09-17  Nick Clifton  <nickc@redhat.com>
255         * po/es.po: Updated Spanish translation.
257 2007-08-30  Nick Clifton  <nickc@redhat.com>
259         * po/fi.po: Updated Finnish translation.
261 2007-08-24  Daniel Jacobowitz  <dan@codesourcery.com>
263         * po/sv.po: Updated Swedish translation.
265 2007-08-17  Alan Modra  <amodra@bigpond.net.au>
267         * po/Make-in: Add --msgid-bugs-address to xgettext invocation.
269 2007-08-12  Matthias Klose  <doko@ubuntu.com>
271         * Makefile.am (AM_MAKEINFOFLAGS, TEXI2DVI): Include
272         $(top_srcdir)/../../bfd/doc.
273         * Makefile.in: Regenerate.
275 2007-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
277         * configure.in (ALL_LINGUAS): Add fi.
278         * po/fi.po: New file.
279         * configure: Regenerated.
281 2007-08-10  Nick Clifton  <nickc@redhat.com>
283         * po/ga.po: Updated Irish translation.
284         * po/vi.po: Updated Vietnamese translation.
286 2007-08-07  Nick Clifton  <nickc@redhat.com>
288         * po/de.po: Updated German translation.
290 2007-07-12  Nick Clifton  <nickc@redhat.com>
292         * po/vi.po: Updated translation.
294 2007-07-12  Kai Tietz   <kai.tietz@onevision.com>
296         * cg_print.c: Force cast of sizeof to be a long.
297         * hist.c: Likewise.
299 2007-07-06  Nick Clifton  <nickc@redhat.com>
301         * basic_blocks.c: Update copyright notice to refer to GPLv3.
302         * basic_blocks.h, bbconv.pl, bb_exit_func.c, call_graph.c,
303         call_graph.h, cg_print.c, cg_print.h, corefile.c, corefile.h,
304         flat_bl.m, gmon_io.c, gmon_io.h, gmon_out.h, hist.c, hist.h,
305         search_list.c, search_list.h, source.c, source.h, sym_ids.c,
306         sym_ids.h, symtab.c, symtab.h: Likewise.
308 2007-07-05  Tristan Gingold  <gingold@adacore.com>
310         * corefile.c (core_sym_class): Do not discard nested subprograms.
311         * Makefile.am (corefile.o): Add dependency upon safe-ctype.h.
312         * Makefile.in: Regenerate.
314 2007-07-02  Alan Modra  <amodra@bigpond.net.au>
316         * Makefile.am: Run "make dep-am".
317         * Makefile.in: Regenerate.
318         * aclocal.m4: Regenerate.
319         * gconfig.in: Regenerate.
320         * po/gprof.pot: Regenerate.
322 2007-06-30  H.J. Lu  <hongjiu.lu@intel.com>
324         * aclocal.m4: Regenerated.
325         * Makefile.in: Likewise.
327 2007-06-20  Nick Clifton  <nickc@redhat.com>
329         * gprof.texi: Refer readers to the gcov tool if they want
330         line-by-line profiling.
332 2007-06-14  H.J. Lu  <hongjiu.lu@intel.com>
334         * Makefile.am (ACLOCAL_AMFLAGS): Add -I ../config -I ../bfd.
336         * acinclude.m4: Removed.
338         * Makefile.in: Regenerated.
339         * aclocal.m4: Likewise.
340         * configure: Likewise.
342 2007-05-24  Steve Ellcey  <sje@cup.hp.com>
344         * Makefile.in: Regnerate.
345         * configure: Regenerate.
346         * aclocal.m4: Regenerate.
348 2007-05-24  H.J. Lu  <hongjiu.lu@intel.com>
350         * gprof.texi: Remove orphaned "@end ignore".
352 2007-05-22  Nick Clifton  <nickc@redhat.com>
354         * gprof.texi: Use @copying around the copyright notice.
356 2007-05-14  H.J. Lu  <hongjiu.lu@intel.com>
358         * hist.c (scale_and_align_entries): Avoid C99 feature.
360 2007-04-19  Alan Modra  <amodra@bigpond.net.au>
362         * corefile.c (core_create_function_syms, core_create_line_syms): Don't
363         set discard_underscores.
364         * gprof.c (discard_underscores): Delete.
365         * gprof.h (discard_underscores): Delete.
366         * sym_ids.c (match): Use bfd_get_symbol_leading_char to check for
367         leading underscores.
368         * utils.c (print_name_only): Call bfd_demangle rather than
369         cplus_demangle.
370         * Makefile.am: Run "make dep-am".
371         * Makefile.in: Regenerate.
373 2007-04-14  Steve Ellcey  <sje@cup.hp.com>
375         * Makefile.am: Add ACLOCAL_AMFLAGS.
376         * Makefile.in: Regenerate.
378 2007-04-10  Vladimir Prus  <vladimir@codesourcery.com>
380         * hist.h (struct histogram)
381         (histograms, num_histograms): New.
382         * hist.c (find_histogram, find_histogram_for_pc)
383         (read_histogram_header): New.
384         (s_lowpc, s_highpc, lowpc, highpc, hist_num_bins)
385         (hist_sample): Remove.
386         (hist_read_rec): Use the above, and handle multiple
387         histogram records with disjoint address ranges.
388         (hist_write_hist): Support several histogram records.
389         (scale_and_align_entries): Adjust for multiple histograms.
390         (hist_assign_samples_1): New.
391         (hist_assign_samples): Use the above.
392         (hist_clip_symbol_address): New.
393         * hist.h (hist_check_address)
394         (hist_clip_symbol_address): Declare.
395         * gmon_io.c (gmon_out_read, gmon_out_write): Adjust handling
396         of legacy format for multiple histogram changes.
397         * corefile.c (find_call): Check for core_text_space and
398         clip symbol address range here.
399         * vax.c (vax_find_call): Don't check for
400         core_text_space, or clip the symbol's address range here.
401         Use hist_check_address to check call's target address.
402         * sparc.c: Likewise.
403         * tahoe.c: Likewise.
404         * i386.c: Likewise.
405         * mips.c: Likewise. Also use core_text_sect->vma as the base
406         address for code accesses, just like other machine-specific
407         routines do.
408         * gprof.texi: Adjust for the new logic.
410 2007-03-28  Richard Sandiford  <richard@codesourcery.com>
411             Phil Edwards  <phil@codesourcery.com>
413         * gprof.texi: Put the contents after the title page rather
414         than at the end of the document.
416 2007-03-22  Joseph Myers  <joseph@codesourcery.com>
418         * Makefile.am (TEXI2POD): Include $(AM_MAKEINFOFLAGS).
419         (AM_MAKEINFOFLAGS, TEXI2DVI): Define with -I ../bfd/doc.
420         * Makefile.in: Regenerate.
421         * gprof.texi: Include bfdver.texi.  Report both VERSION_PACKAGE
422         and VERSION.
424 2007-03-15  H.J. Lu  <hongjiu.lu@intel.com>
426         * Makefile.am (REPORT_BUGS_TO): Removed.
427         (INCLUDES): Remove -DREPORT_BUGS_TO.
428         * Makefile.in: Regenerated.
430         * configure.in (--with-bugurl): Removed.
431         * configure: Regenerated.
433 2007-03-01  Joseph Myers  <joseph@codesourcery.com>
435         * gprof.c: Include bfdver.h
436         (main): Use BFD_VERSION_STRING for version number and package
437         name.
438         * Makefile.am (PKGVERSION): Remove.
439         (INCLUDES): Update.
440         Regenerate dependencies.
441         * Makefile.in: Regenerate.
442         * configure.in (PKGVERSION): Remove.
443         * configure: Regenerate.
445 2007-02-17  Mark Mitchell  <mark@codesourcery.com>
446             Nathan Sidwell  <nathan@codesourcery.com>
447             Vladimir Prus  <vladimir@codesourcery.com>
448             Joseph Myers  <joseph@codesourcery.com>
450         * configure.in (--with-pkgversion, --with-bugurl): New options.
451         * configure: Regenerate.
452         * Makefile.am (PKGVERSION, REPORT_BUGS_TO): Define.
453         (INCLUDES): Define PKGVERSION and REPORT_BUGS_TO.
454         Regenerate dependencies.
455         * Makefile.in: Regenerate.
456         * gprof.c (usage): Don't print empty REPORT_BUGS_TO.
457         (main): Include PKGVERSION in version output.
458         * gprof.h: Remove include of bin-bugs.h.
460 2007-01-16  Ben Elliston  <bje@au.ibm.com>
462         * corefile.c (parse_error): New function.
463         (read_function_mappings): Check calls to fscanf and report any
464         errors in parsing the mapping file.
466 2006-12-12  Daniel Jacobowitz  <dan@codesourcery.com>
468         * Makefile.am (gprof_TEXINFOS): Set.
469         (gprof.info gprof.dvi gprof.html): Delete rule.
470         * Makefile.in: Regenerated.
472 2006-12-11  Daniel Jacobowitz  <dan@codesourcery.com>
474         * configure.in: Define GENINSRC_NEVER.
475         * doc/Makefile.am (gprof.info): Remove srcdir prefix.
476         (MAINTAINERCLEANFILES): Add info file.
477         (DISTCLEANFILES): Pretend to add info file.
478         * po/Make-in (.po.gmo): Put gmo files in objdir.
479         * configure, Makefile.in: Regenerated.
481 2006-11-27  Nick Clifton  <nickc@redhat.com>
483         * po/ms.po: Updated Malay translation.
485 2006-11-22  Nick Clifton  <nickc@redhat.com>
487         * configure.in (LINGUAS): Add ms.
488         * po/ms.po: New Malay translation.
490 2006-10-17  Bob Wilson  <bob.wilson@acm.org>
492         * gprof.c (main): Fix option string for -r and -R.
494 2006-10-16  Bob Wilson  <bob.wilson@acm.org>
496         * gprof.texi (Analysis Options): Argument for -n/-N is mandatory.
498 2006-10-16  Bob Wilson  <bob.wilson@acm.org>
500         * gprof.c (main): Fix option string for -C, -n and -N.
502 2006-09-26  Thiemo Seufer  <ths@networkno.de>
504         * gprof.texi: Fix install failure.
506 2006-09-19  Bob Wilson  <bob.wilson@acm.org>
508         * gprof.texi: Use TeX-style quotes and em-dashes consistently.
509         Specify section names in cross references.  Fix typos.
510         Omit "next", "previous" and "up" fields from @node lines.
511         (SYNOPSIS): Show map_file argument to --file-ordering.
512         (Compiling): Remove extra, truncated lines from example output.
513         (Cycles): Fix references to "called" field.
514         (Internals): Allow hyphenation between file:function names.
515         (GNU Free Documentation License): Update formatting to match fdl.texi.
517 2006-07-24  Ralk Wildenhues  <Ralf.Wildenhues@gmx.de>
519         * gprof.texi: Fix some typos.
521 2006-06-07  Joseph S. Myers  <joseph@codesourcery.com>
523         * po/Make-in (pdf, ps): New dummy targets.
525 2006-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
527         * po/Make-in (top_builddir): Define.
529 2006-06-05  Alan Modra  <amodra@bigpond.net.au>
531         * Makefile.in: Regenerate.
532         * gconfig.in: Regenerate.
534 2006-05-31  Daniel Jacobowitz  <dan@codesourcery.com>
536         * Makefile.am: Replace INTLLIBS and INTLDEPS with LIBINTL
537         and LIBINTL_DEP everywhere.
538         (INCLUDES): Use @INCINTL@.
539         * acinclude.m4: Include new gettext macros.
540         * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS.
541         Remove local code for po/Makefile.
542         * Makefile.in, aclocal.m4, configure: Regenerated.
544 2006-05-30  Nick Clifton  <nickc@redhat.com>
546         * po/es.po: Updated Spanish translation.
548 2006-05-02  James E Wilson  <wilson@specifix.com>
550         * gprof.c (main): When setting default output_style, add separate
551         checks for INPUT_HISTOGRAM and INPUT_CALL_GRAPH.
553 2006-04-25  Masaki Muranaka  <monaka@monami-software.com>
555         PR 2587
556         * Makefile.am: Add empty rule for .m -> .o build in order to work
557         around bug in gmake shipped by Apple.
558         * Makefile.in: Regenerate.
560 2006-04-19  Alan Modra  <amodra@bigpond.net.au>
562         * configure: Regenerate.
564 2006-04-06  Carlos O'Donell  <carlos@codesourcery.com>
566         * po/Make-in: Add install-html target.
567         * Makefile.am: Add install-html, install-html-am and
568         install-html-recursive targets.
569         * Makefile.in: Regenerate.
570         * configure.in: AC_SUBST datarootdir, docdir, htmldir.
571         * configure: Regenerate.
573 2006-03-21  Ben Elliston  <bje@au.ibm.com>
575         * corefile.c (core_init): Report that the executable is not in the
576         expected executable format rather than "a.out" format.
578 2006-03-09  Nick Clifton  <nickc@redhat.com>
580         * po/sv.po: Updated Swedish translation.
582 2006-02-27  Carlos O'Donell  <carlos@codesourcery.com>
584         * po/Make-in: Add html target.
586 For older changes see ChangeLog-2005
588 Local Variables:
589 mode: change-log
590 left-margin: 8
591 fill-column: 74
592 version-control: never
593 End: