1 2003-08-21 Nick Clifton <nickc@redhat.com>
3 * po/tr.po: Updated Turkish translation.
5 2003-08-14 Alan Modra <amodra@bigpond.net.au>
7 * dep-in.sed: Remove libintl.h.
8 * Makefile.am (POTFILES.in): Unset LC_COLLATE.
9 * Makefile.in: Regenerate.
11 2003-07-24 Nick Clifton <nickc@redhat.com>
13 * po/fr.po: Updated French translation.
15 2003-07-20 H.J. Lu <hongjiu.lu@intel.com>
17 * po/Make-in (.po.gmo): Do check if the .gmo file is writable
20 2003-07-17 Nick Clifton <nickc@redhat.com>
22 * po/es.po: New Spanish translation.
24 2003-07-11 Alan Modra <amodra@bigpond.net.au>
26 * po/gprof.pot: Regenerate.
28 2003-06-11 H.J. Lu <hongjiu.lu@intel.com>
30 * po/Make-in (DESTDIR): New.
31 (install-data-yes): Support $(DESTDIR).
32 (uninstall): Likewise.
34 2003-03-27 Chris Demetriou <cgd@broadcom.com>
36 * gmon_io.c (enum gmon_ptr_size, enum gmon_ptr_signedness): New.
37 (gmon_get_ptr_size, gmon_get_ptr_signedness): New.
38 (gmon_io_read_vma, gmon_io_write_vma, gmon_read_raw_arc)
39 (gmon_write_raw_arc, gmon_out_read, gmon_out_write): Adjust to
40 use new functions and enums.
42 2003-02-21 K Schutte <schutte@fel.tno.nl>
44 * corefile.c (core_create_line_syms): Check for a NULL sentinel
45 value before using it.
47 2002-12-02 Nick Clifton <nickc@redhat.com>
49 * configure.in (LINGUAS): Add pt_BR.
50 * configure: Regenerate.
51 * po/pt_BR: New Brazillian Portugese translation.
53 2002-11-30 Alan Modra <amodra@bigpond.net.au>
55 * basic_blocks.c, basic_blocks.h, cg_arcs.c, cg_dfn.c, cg_print.c,
56 corefile.c, gmon_io.c, gprof.c, gprof.h, hist.c, mips.c, source.c,
57 source.h, sym_ids.c, sym_ids.h, symtab.h, tahoe.c, vax.c: Replace
58 boolean with bfd_boolean, true with TRUE, false with FALSE.
61 2002-11-12 Nick Clifton <nickc@redhat.com>
63 * configure.in (ALL_LINGUAS): Add da.
64 * configure: Regenerate.
65 * po/da.po: New Danish translation.
67 2002-08-22 Nick Clifton <nickc@redhat.com>
69 * gprof.c (main): Turn off default excluded functions in FLAT
72 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
74 * gmon_io.c (gmon_io_read_64, gmon_io_write_64): Define only if
75 BFD_HOST_U_64_BIT is defined.
76 (gmon_io_read_vma, gmon_io_write_vma): Add ifdefs.
78 2002-07-30 Nick Clifton <nickc@redhat.com>
80 * po/tr.po: Updated Turkish translation.
82 2002-07-30 Nick Clifton <nickc@redhat.com>
84 * alpha.c, cg_arcs.c, cg_dfn.c, gmon.h, gprof.c, gprof.h, hertz.c,
85 i386.c, mips.c, sparc.c, tahoe.c, utils.c, vax.c: Update Copyright
86 notice so that it applies even if the sources are modified.
88 2002-07-29 Ulrich Drepper <drepper@redhat.com>
90 * gprof.texi (Executing the Program): Add documentation on how to use
91 bbconv.pl. Patch by Eric Hanchrow.
93 2002-07-25 Nick Clifton <nickc@redhat.com>
95 * po/es.po: Updated Spanish translation.
96 * po/fr.po: Updated French translation.
98 2002-07-24 Dave Brolley <brolley@redhat.com>
100 * corefile.c (core_create_function_syms): Use the end of the section
101 containing the symbol to compute max_vma.
103 2002-07-24 Nick Clifton <nickc@redhat.com>
105 * po/sv.po: Updated Swedish translation.
106 * po/es.po: Updated Spanish translation.
108 2002-07-23 Nick Clifton <nickc@redhat.com>
110 * po/fr.po: Updated French translation.
111 * po/id.po: New Indonesian translation.
112 * configure.in (LINGUAS): Add id.
113 * configure: Regenerate.
115 2002-05-02 Nick Clifton <nickc@cambridge.redhat.com>
117 * po/Make-in (.po.gmo): Do not attempt to create a .gmo file if
118 the sources are read-only.
120 2002-04-04 Alan Modra <amodra@bigpond.net.au>
122 * dep-in.sed: Cope with absolute paths.
123 * Makefile.am (dep.sed): Subst TOPDIR.
125 * Makefile.in: Regenerate.
127 2002-03-21 Alan Modra <amodra@bigpond.net.au>
129 * Makefile.am: Run "make dep-am".
130 * Makefile.in: Regenerate.
132 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
134 * po/fr.po: Updated version.
136 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
138 * po/fr.po: Updated version.
140 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
142 * gprof.texi: Wrap @menu in @ifnottex, not @ifinfo.
144 2002-02-19 Frank Ch. Eigler <fche@redhat.com>
146 * hist.c (hist_print): Rewrite log_scale calculation loop.
148 2002-02-11 Alan Modra <amodra@bigpond.net.au>
150 * Makefile.am: "make dep-am".
151 * Makefile.in: Regenerate.
153 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
155 * gprof.c: Include "getopt.h" after other includes, so that
156 the proper macros are defined.
157 * gen-c-prog.awk: Emit a prototype for the generated function.
159 2002-02-01 Alan Modra <amodra@bigpond.net.au>
161 * configure.in (build_warnings): Add -Wstrict-prototypes
162 -Wmissing-prototypes.
163 * aclocal.m4: Regenerate.
164 * gconfig.in: Regenerate.
165 * configure: Regenerate.
166 * Makefile.am: Run "make dep-am".
167 * Makefile.in: Regenerate.
169 * alpha.c (alpha_find_call): Warning fixes.
170 * mips.c (mips_find_call): Likewise.
171 * sparc.c (sparc_find_call): Likewise.
172 * basic_blocks.c: Warning fixes. Eliminate DEFUN.
173 * call_graph.c: Likewise.
174 * cg_arcs.c: Likewise.
175 * cg_dfn.cp: Likewise.
179 * search_list.c: Likewise.
180 * source.c: Likewise.
181 * source.h: Likewise.
182 * sym_ids.c: Likewise.
183 * symtab.c: Likewise.
184 * symtab.h: Likewise.
186 * cg_print.c: Likewise.
187 (struct function_map, symbol_map, symbol_map_count): Move
190 * corefile.c: Warning fixes. Eliminate DEFUN.
191 (struct function_map): Remove declaration.
192 * gmon_io.c: Warning fixes. Eliminate DEFUN.
193 (gmon_io_read_64): Make static.
194 (gmon_io_write_64): Likewise.
195 (gmon_read_raw_arc): Likewise.
196 (gmon_write_raw_arc): Likewise.
197 (gmon_io_write_8): Don't pass char, pass int param.
198 * gmon_io.h (gmon_io_write_8): Likewise.
200 * Makefile.am: Run "make dep-am"
201 * Makefile.in: Regenerate.
203 * basic_blocks.c: Replace bool with boolean, TRUE with true and
204 FALSE with false throughout.
205 * basic_blocks.h: Likewise.
206 * cg_arcs.c: Likewise.
207 * cg_dfn.c: Likewise.
208 * cg_print.c: Likewise.
209 * corefile.c: Likewise.
210 * gmon_io.c: Likewise.
214 * source.c: Likewise.
215 * source.h: Likewise.
216 * sym_ids.c: Likewise.
217 * sym_ids.h: Likewise.
218 * symtab.h: Likewise.
222 (TRUE): Don't define.
223 (FALSE): Don't define.
225 2002-01-31 Jason R Thorpe <thorpej@wasabisystems.com>
227 * TODO: Remove "host architecture pointer size" item.
228 * acconfig.h: Remove.
229 * gconfig.in: Regenerate.
230 * configure.in: Remove check for gmon pointer size.
231 * configure: Regenerate.
232 * gmon.h (GMON_HDRSIZE_BSD44_32): Define.
233 (GMON_HDRSIZE_BSD44_64): Ditto.
234 (GMON_HDRSIZE_OLDBSD_32): Ditto.
235 (GMON_HDRSIZE_OLDBSD_64): Ditto.
236 (struct raw_phdr): Wrap in #if 0, keeping it for
237 documentation purposes only.
238 (struct old_raw_phdr): Likewise.
239 (struct raw_arc): Likewise. Change type/size of
240 "count" member to long match 4.4BSD.
241 * gmon_io: Update copyright years.
242 (gmon_io_read_64): New function.
243 (gmon_io_read_vma): Use bfd_arch_bits_per_address to
244 determine target pointer size. Use gmon_io_read_32
246 (gmon_io_write_64): New function.
247 (gmon_io_write_vma): Use bfd_arch_bits_per_address to
248 determine target pointer size. Use gmon_io_write_32
249 and gmon_io_write_64.
252 (gmon_read_raw_arc): New function.
253 (gmon_write_raw_arc): New function.
254 (gmon_out_read): Do not use struct raw_phdr or
255 struct old_raw_phdr to read the gmon header. Use
256 gmon_read_raw_arc to read call graph records.
257 (gmon_out_write): Do not use struct raw_phdr or
258 struct old_raw_phdr to write the gmon header. Use
259 gmon_write_raw_arc to write call graph records.
260 * po/gprof.pot: Regenerate.
261 * Makefile.in: Regenerate.
263 2002-01-31 Alan Modra <amodra@bigpond.net.au>
265 * alpha.c (alpha_Instruction): Don't use.
266 (alpha_find_call): Avoid use of bitfields and casts between
267 pointers and integers of different sizes. Avoid endian problems
268 when cross-compiling.
269 * vax.c (vax_find_call): Likewise.
270 (struct modebyte): Don't use.
271 (vax_operandmode): Pass in an unsigned char *.
272 (vax_operandlength): Likewise.
273 (vax_reladdr): Rename to vax_offset and return relative offset
275 * i386.c (i386_find_call): Avoid casts between pointers and
276 integers of different sizes.
277 * sparc.c (sparc_find_call): Likewise. Avoid endian problems.
278 * tahoe.c (tahoe_find_call): Likewise.
279 (tahoe_reladdr): Rename to tahoe_offset and return relative offset
282 * basic_blocks.h: Don't include headers here.
283 * call_graph.h: Likewise.
284 * cg_arcs.h: Likewise.
285 * cg_print.h: Likewise.
286 * corefile.h: Likewise.
287 * gmon_io.h: Likewise.
288 * gmon_out.h: Likewise.
291 * source.h: Likewise.
292 * sym_ids.h: Likewise.
293 * symtab.h: Likewise.
294 * gprof.h: Don't include ansidecl.h, do include bfd.h.
295 (bool): Don't typedef.
296 * alpha.c: Adjust #include's for above header changes.
297 * basic_blocks.c: Likewise.
298 * call_graph.c: Likewise.
299 * cg_arcs.c: Likewise.
300 * cg_dfn.c: Likewise.
301 * cg_print.c: Likewise.
302 * corefile.c: Likewise.
303 * gmon_io.c: Likewise.
310 * sym_ids.c: Likewise.
311 * symtab.c: Likewise.
316 * po/POTFILES.in: Regenerate.
318 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
320 * configure: Regenerated.
322 2002-01-26 Richard Henderson <rth@redhat.com>
324 * i386.c (i386_iscall): Static.
325 * tahoe.c (indirectchild, tahoe_operandmode): Static.
326 (tahoe_operandlength, tahoe_reladdr): Static.
327 * vax.c (indirectchild): Static.
329 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
331 * Makefile.am (install): Depend on install-info.
332 * Makefile.in: Regenerate.
334 2002-01-26 Jason Thorpe <thorpej@wasabisystems.com>
337 * Makefile.am (sources): Add mips.c.
339 * Makefile.in: Regenerate.
340 * corefile.c: Update copyright years.
341 (find_call): Call mips_find_call for bfd_arch_mips.
343 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
345 * po/fr.po: Updated version.
347 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
349 * po/es.po: Updated version.
351 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
353 * po/gprof.pot: Regenerate.
355 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
357 * po/es.po: New file: Spanish translation.
358 * configure.in (ALL_LINGUAS): Add es.
359 * configure: Regenerate.
361 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
363 * gmon_io.c (gmon_out_read): Remove use of ngettext(). It is not
366 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
368 * cg_print.c (print_header): Fix spelling typo.
370 * gmon_io.c (gmon_out_read): Fix formatting of text messages to
371 allow easier translation into other languages.
373 2001-12-21 Nick Clifton <nickc@cambridge.redhat.com>
375 * configure.in (ALL_LINGUAS): Add sv.
376 * configure: Regenerate.
377 * po/sv.po: Import from translation project web site.
379 2001-12-03 Nick Clifton <nickc@cambridge.redhat.com>
381 * configure.in (LINGUAS): Add tr.
382 * configure: Regenerate.
383 * po/tr.po: Import from translation project's web site.
385 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
387 * configure.in (ALL_LINGUAS): Add 'fr'.
388 * configure: Regernate.
389 * po/fr.po: New file.
391 2001-10-03 Alan Modra <amodra@bigpond.net.au>
393 * configure: Regenerate.
395 2001-10-02 Alan Modra <amodra@bigpond.net.au>
397 * Makefile.am (Makefile): Depend on bfd/configure.in.
399 * Makefile.in: Regenerate.
401 2001-09-18 Bruno Haible <haible@clisp.cons.org>
403 * gprof.c (main): For gettext, also set the LC_CTYPE locate facet.
404 * sym_ids.c: Include "safe-ctype.h" instead of <ctype.h>.
405 (parse_spec): Use ISDIGIT instead of isdigit.
407 2001-09-18 Alan Modra <amodra@bigpond.net.au>
409 * sparc.c (sparc_find_call): Warning fix.
410 * alpha.c (alpha_find_call): Likewise.
412 2001-08-09 Alan Modra <amodra@bigpond.net.au>
414 * alpha.c: Add missing prototypes.
419 (i386_iscall): Don't use DEFUN.
421 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
423 * NOTES: Rename to README for consistency with other binutils.
425 2001-06-18 H.J. Lu <hjl@gnu.org>
427 * Makefile.am (diststuff): Add $(MANS).
428 (gprof.1): Remove the prefix `$(srcdir)/'.
429 * Makefile.in: Regenerated.
433 2001-06-12 Ben Elliston <bje@redhat.com>
435 * gprof.texi (File Format): Profile data files are stored in
436 target byte order, not host byte order.
438 2001-05-16 Alexandre Oliva <aoliva@redhat.com>
440 * gmon_io.c (gmon_io_read, gmon_io_write_vma,
441 gmon_io_write_32, gmon_io_write_8, gmon_io_write): Adjust
442 argument list for K&R C.
444 2001-04-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
446 * gprof.texi: Put @c man begin and @c man end indications
447 to generate man page using texi2pod and pod2man. Added SEEALSO,
448 SYNOPSIS, BUGS, FILES and DESCRIPTION from original gprof.1
449 enclosed in @ifset man condition.
450 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variable.
451 Generate gprof.1 from gprof.texi.
452 * gprof.1: Generate from gprof.texi.
453 * Makefile.in: Regenerate.
455 2001-03-13 David Mosberger <davidm@hpl.hp.com>
457 * hist.c (hist_dimension): Declare as an array of 16 characters.
458 (hist_read_rec): If SAMPLEDEBUG, print each histogram bin count.
460 * basic_blocks.c: Whitespace and formatting changes.
461 * bb_exit_func.c: Ditto.
462 * call_graph.c: Ditto.
463 * call_graph.h: Ditto.
476 * search_list.c: Ditto.
477 * search_list.h: Ditto.
488 * gmon_out.h (gmon_hist_hdr): Delete.
489 (gmon_cg_arc_record): Delete.
491 * gmon_io.c (put_vma): Declare "static".
493 (gmon_io_write): New function.
494 (gmon_io_write_8): Ditto.
495 (gmon_io_write_32): Ditto.
496 (gmon_io_write_vma): Ditto.
497 (gmon_io_read): Ditto.
498 (gmon_io_read_32): Ditto.
499 (gmon_io_read_vma): Ditto.
500 * basic_blocks.c (bb_read_rec): Use gmon_io_read* / gmon_io_write*
501 to read/write data file in a more portable fashion.
502 (bb_write_blocks): Ditto.
503 * call_graph.c (cg_read_rec): Ditto.
504 (cg_write_arcs): Ditto.
505 * hist.c (hist_read_rec): Ditto.
506 (hist_write_hist): Ditto.
508 From Jes Sorensen <jes@linuxcare.com>
509 * gmon_out.h: Use GMON_PTR_SIZE instead of sizeof(char*).
511 * configure.in: Get GMON_PTR_SIZE from existing <sys/gmon_out.h>
513 * acconfig.h: New file. Mention and document GMON_PTR_SIZE.
514 * gconfig.h: Regenerate.
515 * configure: Regenerate.
516 * Makefile.in: Regenerate.
518 2001-02-27 Alan Modra <alan@linuxcare.com.au>
520 * configure.in (BFD_VERSION): New.
521 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
522 * configure: Regenerate.
523 * gconfig.in: Regenerate.
524 * Makefile.am: Run "make dep-am"
525 * Makefile.in: Regenerate.
527 2001-01-27 Michael Sokolov <msokolov@ivan.Harhan.ORG>
529 * basic_blocks.c: #include <unistd.h> only if it exists.
531 2000-11-06 Nick Clifton <nickc@redhat.com>
533 * gprof.texi: Add GNU Free Documentation License.
535 2000-09-07 H.J. Lu <hjl@gnu.org>
537 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
538 * configure: Rebuild.
540 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
542 * aclocal.m4, configure: Rebuilt with new libtool.m4.
544 2000-09-02 Nick Clifton <nickc@redhat.com>
546 * configure.in: Increase version number to 2.10.91.
547 * configure: Regenerate.
548 * aclocal.m4: Regenerate.
549 * config.in: Regenerate.
551 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
553 * acinclude.m4: Include libtool and gettext macros from the
555 * aclocal.m4, configure: Rebuilt.
557 2000-07-26 Nick Clifton <nickc@cygnus.com>
559 * bb_exit_func.c: Assign copyright to FSF. Note that David
560 Mosberger-Tang <David.Mosberger@acm.org> continuted this code.
562 2000-07-24 Nick Clifton <nickc@cygnus.com>
564 * basic_blocks.c: Add copyright notice.
565 * basic_blocks.h: Add copyright notice.
566 * call_graph.c: Add copyright notice.
567 * call_graph.h: Add copyright notice.
568 * cg_print.c: Add copyright notice.
569 * cg_print.h: Add copyright notice.
570 * corefile.c: Add copyright notice.
571 * corefile.h: Add copyright notice.
572 * gmon_io.c: Add copyright notice.
573 * gmon_io.h: Add copyright notice.
574 * gmon_out.h: Add copyright notice.
575 * hist.c: Add copyright notice.
576 * hist.h: Add copyright notice.
577 * search_list.c: Add copyright notice.
578 * search_list.h: Add copyright notice.
579 * source.c: Add copyright notice.
580 * source.h: Add copyright notice.
581 * sym_ids.c: Add copyright notice.
582 * sym_ids.h: Add copyright notice.
583 * symtab.c: Add copyright notice.
584 * symtab.h: Add copyright notice.
586 2000-07-05 Kenneth Block <krblock@computer.org>
588 * gprof.c: Add optional style to demangle switch
589 * gprof.texi: Document optional style to demangle switch.
591 2000-06-05 DJ Delorie <dj@redhat.com>
595 2000-07-01 Alan Modra <alan@linuxcare.com.au>
597 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
598 (CLEANFILES): Add DEPA.
599 * Makefile.in: Regenerate.
601 2000-06-22 Alan Modra <alan@linuxcare.com.au>
603 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
605 * Makefile.in: Regenerate.
607 2000-06-20 Alan Modra <alan@linuxcare.com.au>
609 * source.c (annotate_source): Correct pointer comparison when
610 checking for backslashes.
612 2000-06-13 H.J. Lu <hjl@gnu.org>
614 * configure: Regenerate.
616 2000-06-08 David O'Brien <obrien@FreeBSD.org>
618 * configure.in (VERSION): Update to show this is the CVS mainline.
620 2000-06-07 Philippe De Muyter <phdm@macqel.be>
622 * source.c: Remove direct inclusion of sys/stat.h.
624 2000-05-31 Nick Clifton <nickc@cygnus.com>
626 * gprof.h (_): Revert previous delta. We want to use gettext,
627 not dgettext in the _ macro.
629 2000-05-29 Alan Modra <alan@linuxcare.com.au>
631 * gprof.h (_): Use BFD version.
633 2000-05-26 Nick Clifton <nickc@cygnus.com>
635 * gprof.c (main): When calling getopt_long indicate that the 'd'
636 switch takes an optional argument, whereas the 'D' switch takes no
639 2000-05-26 Alan Modra <alan@linuxcare.com.au>
641 * dep-in.sed: Copy from ../binutils.
642 * Makefile.am: Update dependencies with "make dep-am"
643 * Makefile.in: Regenerate.
645 * gprof.h: Remove most nls defines. They are pulled in by
646 bfd/sysdep.h. #include "ansidecl.h" not <ansidecl.h>
648 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
650 * gprof.texi: Fix numerous typos. Mention some DOS/Windows related
653 * configure.in: Check for setmode function.
654 * configure: Regenerate.
656 * gmon_io.h (SET_BINARY) [HAVE_SETMODE]: Define.
658 * gmon_io.c (gmon_out_read) [SET_BINARY]: Switch stdin into binary
661 * source.c: Include filenames.h and sys/stat.h.
662 (source_file_lookup_path, source_file_lookup_name): Use
663 FILENAME_CMP to compare file names.
664 (annotate_source) [__MSDOS__]: If "filename-ann" would overwrite
665 "filename", replace the extension with ".ann".
666 [HAVE_DOS_BASED_FILE_SYSTEM]: Support file names with
667 backslashes and drive letters.
668 Use IS_ABSOLUTE_PATH.
670 * search_list.h (PATH_SEP_CHAR): Define.
672 * search_list.c (search_list_append): Use PATH_SEP_CHAR.
674 * hertz.c (HERTZ) [__MSDOS__]: Don't define unless they have
675 neither HAVE_SETITIMER nor HAVE_SYSCONF.
676 [HAVE_SETITIMER]: If they define both HAVE_SETITIMER and
677 HAVE_SYSCONF, try setitimer and fall back on sysconf.
679 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
681 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
682 --enable-build-warnings option.
683 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
684 * Makefile.in, configure, aclocal.m4: Re-generate.
686 2000-04-05 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
688 * gprof.c (copyright): Do not use N_ in array initializer.
690 2000-04-04 Alan Modra <alan@linuxcare.com.au>
692 * po/gprof.pot: Regenerate.
694 * gprof.c (usage): Restore translated part of bug string.
696 * Makefile.am (BASEDIR): Define.
700 (INCLUDES): Add "-I."
701 (DEP, DEP1, dep.sed, dep, dep-in, dep-am): New targets.
702 (CLEANFILES): Define.
704 * Makefile.in: Regenerate.
706 2000-04-03 Alan Modra <alan@linuxcare.com.au>
708 * gprof.h: #include "bin-bugs.h".
709 * gprof.c (usage): Use REPORT_BUGS_TO.
711 2000-03-31 Alan Modra <alan@linuxcare.com.au>
713 * symtab.c (symtab_finalize): Don't use post-increment on
714 structure copy, to work around a ppc gcc bug.
716 1999-09-29 Mark Kettenis <kettenis@gnu.org>
718 * hertz.h [MACH] (hertz): Remove macro. The
719 <machine/mach_param.h> include doesn't exist on al Mach based
720 systems, and the definition of hertz breaks compilation of hertz.c
723 2000-02-22 Ian Lance Taylor <ian@zembu.com>
725 From Brad Lucier <lucier@math.purdue.edu>:
726 * i386.c (i386_find_call): Add cast to ensure that printf argument
728 * tahoe.c (tahoe_find_call): Likewise.
729 * vax.c (vax_find_call): Likewise.
731 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
733 * utils.c (print_name_only): Don't pass error strings to
734 printf as format arg.
736 1999-09-24 Nick Clifton <nickc@cygnus.com>
738 * gmon_io.c (gmon_out_read): Make sure that sensible values
739 are extracted from a raw header.
741 1999-08-06 Ian Lance Taylor <ian@zembu.com>
743 From Brad Lucier <lucier@math.purdue.edu>:
744 * corefile.c (core_create_line_syms): Add cast for printf.
746 1999-07-21 Ian Lance Taylor <ian@zembu.com>
749 * configure.bat: Remove; obsolete.
751 1999-07-15 Ian Lance Taylor <ian@zembu.com>
753 * configure.in: Bump version number to 2.9.5.
754 * configure: Rebuild.
756 1999-07-11 Ian Lance Taylor <ian@zembu.com>
758 * corefile.c (core_create_function_syms): Add ATTRIBUTED_UNUSED.
759 * sym-ids.c (non_existent_file): Fully initialize structure.
761 1999-07-01 Ian Lance Taylor <ian@zembu.com>
763 * Many files: Add casts in many print statements to cast bfd_vma
764 values to unsigned long when calling printf.
765 * Makefile.am ($(OBJECTS)): Add gmon.h.
766 * Makefile.in: Rebuild.
768 1999-06-14 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
770 * gprof.texi: Fix typo.
772 1999-06-13 Ian Lance Taylor <ian@zembu.com>
774 From Bob Byrnes <byrnes@curl.com>:
775 * cg_dfn.c: Include "libiberty.h"
776 (DFN_INCR_DEPTH): Define instead of DFN_DEPTH.
777 (dfn_stack): Define as pointer rather than array.
778 (pre_visit): Reallocate dfn_stack as needed.
780 1999-04-26 Tom Tromey <tromey@cygnus.com>
782 * aclocal.m4, configure: Updated for new version of libtool.
784 1999-04-06 Ian Lance Taylor <ian@zembu.com>
786 * gprof.h (LC_MESSAGES): Never define.
787 * gprof.c (main): Don't pass LC_MESSAGES to setlocale if the
788 system does not define it.
790 1999-04-05 H.J. Lu <hjl@gnu.org>
792 * corefile.c (core_create_line_syms): Don't use fixed size array
793 for prev_name and prev_filename.
795 1999-04-04 Michael Hohmuth <hohmuth@innocent.com>
797 * gprof.h (FF_BSD44): Define.
798 * gmon.h (struct raw_phdr): Add version, profrate, and spare
799 fields unconditionally.
800 (struct old_raw_phdr): New struct.
801 * gprof.c (main): Handle -O 4.4bsd.
802 * gmon_io.c (gmon_out_read): Handle BSD 4.4 format, either
803 automatically or by user specification.
804 (gmon_out_write): Handle BSD 4.4 format.
805 * configure.in: Don't set BSD44_FORMAT.
806 * gprof.texi (Miscellaneous Options): Document -O 4.4bsd.
807 * configure, gconfig.in: Rebuild.
809 Tue Feb 16 17:01:33 1999 Ian Lance Taylor <ian@cygnus.com>
811 * configure.in: Change AC_PREREQ to 2.13. Change AM_PROG_INSTALL
812 to AC_PROG_INSTALL. Remove AM_CYGWIN32. Change AM_EXEEXT to
813 AC_EXEEXT. Add comment to AC_DEFINE.
814 * acconfig.h: Remove.
815 * aclocal.m4: Rebuild.
816 * configure: Rebuild.
817 * Makefile.in: Rebuild.
818 * gconfig.in: Rebuild.
820 1998-12-06 Ian Lance Taylor <ian@cygnus.com>
822 * gprof.texi (Symspecs): Mention that you have to add any
823 underscore yourself when naming a symbol.
825 1998-11-02 Geoffrey Noer <noer@cygnus.com>
827 * configure.in: detect cygwin* instead of cygwin32*
828 * configure: regenerate
830 Wed Aug 12 14:59:06 1998 Ian Lance Taylor <ian@cygnus.com>
832 Avoid some overflow cases:
833 * basic_blocks.h (bb_min_calls): Change to unsigned long.
834 * call_graph.h (cg_tally): Change count parameter to unsigned
836 * cg_arcs.h (Arc): Change count field to unsigned long.
837 (arc_add): Change count parameter to unsigned long.
838 * source.h (Source_File): Change ncalls field to unsigned long.
839 * symtab.h (Sym): Change fields ncalls, bb_calls, and
840 cg.self_calls to unsigned long.
841 * Many files: Update accordingly.
843 * configure, Makefile.in, aclocal.m4: Rebuild with current tools.
845 Fri Jul 10 17:29:49 1998 Stan Cox <scox@equinox.cygnus.com>
847 * configure.in (BSD44_FORMAT): Define for cygwin32, win32, mingw32
848 * configure: Rebuild.
850 Fri Jun 12 13:40:05 1998 Tom Tromey <tromey@cygnus.com>
852 * po/Make-in (all-yes): If maintainer mode, depend on .pot file.
853 ($(PACKAGE).pot): Unconditionally depend on POTFILES.
855 Sun May 10 22:35:33 1998 Jeffrey A Law (law@cygnus.com)
857 * po/Make-in (install-info): New target.
859 Tue May 5 18:28:40 1998 Tom Tromey <tromey@cygnus.com>
861 * gprof.h (_): Undefine BFD's version.
863 Tue Apr 28 19:17:33 1998 Tom Tromey <tromey@cygnus.com>
865 * gprof.c (main): Conditionally call setlocale.
866 * gprof.h: Include <locale.h> if HAVE_LOCALE_H.
867 (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
869 Tue Apr 28 19:50:09 1998 Ian Lance Taylor <ian@cygnus.com>
871 * corefile.c: Rename from core.c.
872 * corefile.h: Rename from core.h.
873 * Many .c files: Include corefile.h rather than core.h.
874 * Makefile.am (sources): Change core.c to corefile.c.
875 (noinst_HEADERS): Change core.h to corefile.h.
876 ($(OBJECTS)): Depend upon corefile.h rather than core.h.
877 (corefile.o): Rename target from core.o, depend upon corefile.c.
878 * Makefile.in, po/POTFILES.in: Rebuild.
880 Mon Apr 27 16:50:40 1998 Ian Lance Taylor <ian@cygnus.com>
882 * configure.in: Change version number to 2.9.4
883 * configure: Rebuild.
885 Wed Apr 22 16:01:17 1998 Tom Tromey <tromey@cygnus.com>
887 * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).
889 Wed Apr 22 00:00:22 1998 Tom Tromey <tromey@scribbles.cygnus.com>
891 * gprof.h: Added includes and defines for gettext.
892 * configure.in (ALL_LINGUAS): New macro.
893 Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile.
894 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY,
895 HAVE_LC_MESSAGES): Define.
896 * gprof.c (main): Call setlocale, bindtextdomain, textdomain.
897 * Makefile.am (SUBDIRS): New macro.
898 (INCLUDES): Look in intl dirs for headers. Define LOCALEDIR.
899 (gprof_DEPENDENCIES): Added INTLDEPS.
900 (gprof_LDADD): Added INTLLLIBS.
901 (POTFILES): New macro.
902 (po/POTFILES.in): New target.
903 * Many files: Wrap user-visible strings with gettext invocation.
905 Tue Apr 7 12:43:37 1998 Ian Lance Taylor <ian@cygnus.com>
907 From hjl@lucon.org <H.J. Lu>:
908 * Makefile.am (diststuff): New target.
909 * Makefile.in: Rebuild.
911 Mon Mar 30 12:47:48 1998 Ian Lance Taylor <ian@cygnus.com>
913 * configure.in: Set version to 2.9.1.
914 * configure: Rebuild.
916 * Branched binutils 2.9.
918 Sat Mar 28 23:09:08 1998 Ian Lance Taylor <ian@cygnus.com>
920 Fix some gcc -Wall warnings:
921 * cg_arcs.c (num_cycles): Change to unsigned int.
923 (arc_add): Change maxarcs to unsigned int.
924 (cg_assemble): Change index to unsigned int.
925 * cg_arcs.h (num_cycles, numarcs): Update declarations.
926 * cg_print.c (cg_print): Change index to unsigned int.
927 (cg_print_index): Change index, nnames, todo, i, and j to unsigned
929 (cg_print_file_ordering): Change symbol_count and index2 to
931 * core.c (symbol_map_count): Change to unsigned int.
932 (core_create_function_syms): Change j to unsigned int.
933 (core_create_line_syms): Add cast to avoid warning.
934 * hist.c (hist_assign_samples): Change j to unsigned int.
935 (hist_print): Change index to unsigned i nt. Add cast to avoid
937 * sym_ids.c (parse_spec): Add casts to avoid warning.
938 * symtab.c (symtab_finalize): Change j to unsigned int.
939 (sym_lookup): Update printf format strings.
940 * symtab.h (Sym_Table): Change len to unsigned int.
941 * tahoe.c (tahoe_reladdr): Add casts to avoid warnings.
943 Tue Mar 24 19:00:11 1998 Ian Lance Taylor <ian@cygnus.com>
945 Add --demangle and --no-demangle options:
946 * gprof.h (demangle): Declare.
947 * gprof.c (demangle): New global variable.
948 (OPTION_DEMANGLE, OPTION_NO_DEMANGLE): Define.
949 (long_options): Add "demangle" and "no-demangle".
950 (usage): Mention --demangle and --no-demangle.
951 (main): Handle OPTION_DEMANGLE and OPTION_NO_DEMANGLE.
952 * utils.c (print_name_only): Only demangle symbol name if demangle
954 * gprof.texi (Output Options): Document new options.
956 Fri Mar 20 19:21:56 1998 Ian Lance Taylor <ian@cygnus.com>
958 * Makefile.in: Rebuild with automake 1.2e.
959 * aclocal.m4, configure: Rebuild with libtool 1.2.
961 Thu Feb 12 14:36:05 1998 Ian Lance Taylor <ian@cygnus.com>
963 * gprof.c (usage): Update bug-gnu-utils address.
965 Sat Feb 7 15:43:12 1998 Ian Lance Taylor <ian@cygnus.com>
967 * configure, aclocal.m4: Rebuild with new libtool.
969 Fri Feb 6 12:02:28 1998 Ian Lance Taylor <ian@cygnus.com>
971 * alpha.c (alpha_Instruction): Use int, not signed.
973 Fri Feb 6 02:00:19 1998 Jeffrey A Law (law@cygnus.com)
975 * core.c (core_init): Adding missing "break".
977 Thu Feb 5 12:49:37 1998 Ian Lance Taylor <ian@cygnus.com>
979 * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.
981 Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>
983 * bbconv.pl: New file.
984 * Makefile.am (EXTRA_DIST): Add bbconv.pl.
985 * Makefile.in: Rebuild.
987 * gprof.texi: Extensive additions to document all arguments and
990 * symtab.c (symtab_finalize): Prefer function symbols over line
992 (dbg_sym_lookup): Correct debugging messages.
994 * gprof.c (main): --sum implies --line.
996 * cg_print.c (cg_print): When doing line by line profiling, don't
997 use a non-function as a main listing item.
999 * call_graph.c (cg_tally): When using line by line profiling, use
1000 the function symbol as the child.
1002 * symtab.h (NBBS): Define.
1003 (Sym): Add bb_addr and bb_calls fields.
1004 * basic_blocks.c (bb_read_rec): Save multiple basic blocks per
1006 (bb_write_blocks): Adjust for multiple basic blocks per symbol.
1007 (print_exec_counts): Don't check whether a symbol is the start of
1008 a basic block. Print all basic blocks for a symbol.
1009 (annotate_with_count): Rewrite to print all basic block counts and
1010 to pay attention to width argument.
1011 (print_annotated_source): Don't check whether symbol is the start
1014 Make it possible to build a cross gprof, although a few cases are
1016 * configure.in: Don't set MY_TARGET.
1017 * gprof.h: Don't include MACHINE_H. Don't define FOPEN_RB or
1018 FOPEN_WB; just get them from sysdep.h.
1019 * core.h (min_insn_size, offset_to_code): Declare.
1020 * core.c (MIN_INSN_SIZE): Don't define.
1021 (min_insn_size, offset_to_code): New variables.
1022 (core_init): Initialize min_insn_size and offset_to_code.
1023 (find_call): New function.
1024 (core_create_line_syms): Don't use min_dist. Set is_static in
1026 * hist.c (UNITS_TO_CODE): Define.
1027 * gprof.c (default_excluded_list): Add "__mcount_internal".
1028 * gmon.h: Change TARGET_alpha to __alpha__.
1029 * hertz.h: Ifdef MACH, define hertz as HZ.
1030 * alpha.c (alpha_Instruction): Rename from Instruction. Change
1032 (alpha_find_call): Rename from find_call.
1034 * dummy.c, dummy.h: Remove.
1035 * i386.c (i386_iscall): Rename from iscall. Change all
1036 references. Check for call instruction, not jump or lcall.
1037 (i386_find_call): Rename from find_call. Correct for VMA.
1038 Correct call destination computation. Don't dereference symbol if
1041 * ns532.c, ns532.h: Remove.
1042 * sparc.c (CALL): Define.
1043 (sparc_find_call): Rename from find_call.
1045 * tahoe.c: Include cg_arcs.h, core.h, hist.h, and symtab.h. Don't
1046 include time_host.h.
1047 (CALLF, PC): Define.
1048 (enum tahoe_opermodes, tahoe_operandenum): Define. Rename all
1049 references to opermodes or operandenum to these.
1050 (tahoe_operandmode): Rename from operandmode. Call abort if
1051 switch does not return.
1052 (tahoe_operandname): Rename from operandname. Call abort if
1053 switch does not return.
1054 (tahoe_operandlength): Rename from operandlength. Call abort if
1055 switch does not return.
1056 (tahoe_reladdr): Rename from reladdr.
1057 (tahoe_find_call): Rename from find_call. Use core_text_space
1058 rather than textspace.
1060 * vax.c (CALLS, PC): Define.
1061 (enum opermodes, operandenum, struct modebyte): Define.
1062 (vax_operandmode): Rename from operandmode. Call abort if switch
1064 (vax_operandname): Rename from operandname. Call abort if switch
1066 (vax_operandlength): Rename from operandlength. Call abort if
1067 switch does not return.
1068 (vax_reladdr): Rename from reladdr.
1069 (vax_find_call): Rename from find_call.
1071 * Makefile.am (AUTOMAKE_OPTIONS): Set to cygnus.
1072 (MY_TARGET): Remove.
1073 (INCLUDES): Remove -DTARGET_$(MY_TARGET) and -DMACHINE_H=
1075 (gprof_SOURCES): Add i386.c, alpha.c, vax.c, tahoe.c, sparc.c.
1076 (gprof_DEPENDENCIES): Remove $(MY_TARGET).o.
1077 (gprof_LDADD): Likewise.
1078 (noinst_HEADERS): Remove alpha.h, i386.h, ns532.h, sparc.h,
1079 tahoe.h, vax.h, dummy.h.
1080 (EXTRA_DIST): Remove alpha.c, i386.c, ns532.c, sparc.c, tahoe.c,
1082 ($(OBJECTS)): Don't depend upon $(MY_TARGET).h.
1083 ($(MY_TARGET).o): Remove target.
1084 (i386.o, alpha.o, vax.o, tahoe.o, sparc.o): New targets.
1085 * configure, Makefile.in, aclocal.m4: Rebuild.
1087 Mon Dec 29 14:17:08 1997 Ian Lance Taylor <ian@cygnus.com>
1089 * core.c (core_sym_class): Treat weak symbols as text symbols.
1090 From Dean Gaudet <dgaudet@arctic.org>.
1092 Wed Sep 24 11:35:43 1997 Ian Lance Taylor <ian@cygnus.com>
1094 * aclocal.m4: Rebuild with new libtool.
1095 * Makefile.in: Rebuild with current automake.
1096 * configure: Rebuild.
1098 Sat Aug 9 16:25:01 1997 Ian Lance Taylor <ian@cygnus.com>
1100 * configure.in: Change version number to 2.8.2. Call
1101 AM_PROG_LIBTOOL. Remove shared library handling; now handled by
1102 libtool. Add AM_CONFIG_HEADER. Change AC_PROG_INSTALL to
1103 AM_PROG_INSTALL. Add AM_EXEEXT.
1104 * Makefile.am (LINK): Remove.
1105 (gprof_LDFLAGS): Remove
1106 (gprof_DEPENDENCIES): Change libbfd.a to libbfd.la.
1107 (gprof_LDADD): Likewise.
1108 ($(OBJECTS)): Depend upon gconfig.h and ../bfd/config.h.
1109 * gprof.h: Undefine PACKAGE and VERSION after including BFD
1110 sysdep.h file, then include new gconfig.h file.
1111 * gprof.c (VERSION): Don't define.
1112 * acconfig.h: New file.
1113 * stamp-h.in: New file.
1114 * gconfig.in: New file, created by autoheader.
1115 * Makefile.in, configure, aclocal.m4: Rebuild.
1117 Sat Jun 28 23:20:42 1997 Ian Lance Taylor <ian@cygnus.com>
1119 * aclocal.m4, configure, Makefile.in: Rebuild with automake 1.2.
1121 Mon Jun 16 15:31:39 1997 Ian Lance Taylor <ian@cygnus.com>
1123 * Makefile.am (INCLUDES): Add -DDEBUG.
1124 * Makefile.in: Rebuild.
1126 Tue Apr 15 14:19:30 1997 Ian Lance Taylor <ian@cygnus.com>
1128 Change to use automake:
1129 * Makefile.am: New file.
1130 * configure.in: Run AM_INIT_AUTOMAKE, AM_MAINTAINER_MODE, and
1132 * aclocal.m4: New file, created by aclocal.
1133 * Makefile.in: Replace with file created by automake --cygnus.
1134 * configure: Rebuild.
1136 Thu Apr 3 13:21:25 1997 Ian Lance Taylor <ian@cygnus.com>
1138 * gprof.c (VERSION): Define as "2.8.1".
1140 * Branched binutils 2.8.
1142 Thu Mar 27 17:15:23 1997 Ian Lance Taylor <ian@cygnus.com>
1144 * gprof.c (main): Correct copyright message.
1146 Mon Mar 24 11:12:26 1997 Ian Lance Taylor <ian@cygnus.com>
1148 * Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling.
1149 * gmon.h: Use bytes counts rather than sizeof in struct raw_phdr
1152 Mon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com>
1154 * cg_arcs.c (arc_add): memset() newly alloced arc to ensure
1155 all fields are initialized with 0.
1157 Sat Mar 15 19:17:31 1997 H.J. Lu <hjl@lucon.org>
1159 * symtab.h (find_call): Declare.
1160 * cg_arcs.c (cg_assemble): Don't declare find_call.
1161 * hist.c (scale_and_align_entries): Declare.
1163 Thu Feb 27 12:46:53 1997 Ian Lance Taylor <ian@cygnus.com>
1165 * configure.in: Define BSD44_FORMAT if the target looks like a
1166 BSD4.4 derived system.
1167 * configure: Rebuild.
1168 * Makefile.in (.c.o): Add @DEFS@.
1169 * gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate
1170 from profrate field, not version field.
1172 Thu Jan 16 17:42:54 1997 Ian Lance Taylor <ian@cygnus.com>
1174 * dummy.c (find_call): Clear ignore_direct_calls.
1176 Tue Dec 31 15:44:10 1996 Ian Lance Taylor <ian@cygnus.com>
1178 * Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the
1180 (gprof): Put $(CFLAGS) after the other options.
1182 Tue Nov 26 17:08:38 1996 Ian Lance Taylor <ian@cygnus.com>
1184 * configure: Rebuild with autoconf 2.12.
1186 Wed Oct 2 15:23:16 1996 Ian Lance Taylor <ian@cygnus.com>
1188 * sparc.c (find_call): Align p_lowpc to avoid bus error.
1190 Tue Oct 1 15:58:10 1996 Ian Lance Taylor <ian@cygnus.com>
1192 * gprof.c (usage): Print bug report address.
1193 (main): Change version printing to match current GNU standards.
1195 Fri Aug 30 12:16:11 1996 Ian Lance Taylor <ian@cygnus.com>
1197 * gmon.h: Replace #elif with #else/#endif.
1199 Thu Aug 29 17:04:10 1996 Michael Meissner <meissner@tiktok.cygnus.com>
1201 * configure.in (i[345]86-*-*): Recognize i686 for pentium pro.
1202 * configure: Regenerate.
1204 Thu Aug 22 17:12:30 1996 Ian Lance Taylor <ian@cygnus.com>
1206 * configure.in: Set and substitute HLDENV.
1207 * configure: Rebuild.
1208 * Makefile.in (HLDENV): New variable.
1209 (gprof): Use $(HLDENV).
1211 Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be>
1213 * core.c (read_function_mappings): Cast xmalloc return.
1215 Thu Jul 4 12:01:42 1996 Ian Lance Taylor <ian@cygnus.com>
1217 * gprof.c (VERSION): Define as "2.7.1".
1219 * Released binutils 2.7.
1221 * bb_exit_func.c: Rename from __bb_exit_func.c, so that it can be
1222 stored on a System V file system.
1224 Thu Jun 27 11:36:22 1996 Ian Lance Taylor <ian@cygnus.com>
1226 * configure.in: Call AC_ISC_POSIX.
1227 * configure: Rebuild.
1228 * Makefile.in (gprof): Pass $(CFLAGS) during link.
1229 * hertz.c: Don't include <sys/time.h>; let sysdep.h handle that.
1230 If HAVE_SETITIMER is not defined, try using sysconf.
1232 Mon Jun 24 18:27:28 1996 Jason Molenda (crash@godzilla.cygnus.co.jp)
1234 * Makefile.in (exec_prefix, bindir, libdir, mandir, infodir, datadir,
1235 INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values.
1236 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1237 (AC_PROG_INSTALL): added.
1238 * configure: Rebuilt.
1240 Mon Jun 24 12:03:09 1996 Ian Lance Taylor <ian@cygnus.com>
1242 * configure.in: On alpha*-*-osf*, link against libbfd.a if not
1243 using shared libraries.
1244 * configure: Rebuild with autoconf 2.10.
1246 Tue Jun 18 17:35:58 1996 Ian Lance Taylor <ian@cygnus.com>
1248 * core.c (core_create_line_syms): Use xstrdup rather than strdup.
1249 * source.c (source_file_lookup_path): Likewise.
1251 Mon Apr 8 14:44:33 1996 Ian Lance Taylor <ian@cygnus.com>
1253 * configure.in: Permit --enable-shared to specify a list of
1255 * configure: Rebuild.
1257 Thu Mar 21 17:18:25 1996 Ian Lance Taylor <ian@cygnus.com>
1259 * core.c (core_create_function_syms): Move filename and func_name
1260 inside ifdef where they are used.
1262 * core.c (core_sym_class): Parenthesize && within ||.
1263 * symtab.c (symtab_finalize): Correct parenthesization.
1265 * cg_print.h (cg_print_file_ordering): Declare.
1266 (cg_print_function_ordering): Declare.
1268 * __bb_exit_func.c (__bb_exit_func): Replace bcopy with memcpy.
1269 * cg_arcs.c (arc_add): Likewise.
1270 * cg_print.c (cg_print_function_ordering): Likewise.
1272 Thu Mar 21 17:02:02 1996 David Mosberger-Tang <davidm@azstarnet.com>
1274 * gprof.c (default_excluded_list): Add "__mcount".
1276 * gprof.c (main): Change ifdef __osf__ to __alpha__.
1278 * gmon_io.c (gmon_out_read): If BSD44_FORMAT is defined, get the
1279 profiling rate from the header.
1281 * gmon.h (struct raw_phdr): Only include pad if both __alpha__ and
1282 __osf__ are defined. Add new fields if BSD44_FORMAT is defined.
1284 * alpha.h (MIN_INSN_SIZE): Define.
1285 * core.c (MIN_INSN_SIZE): If not defined, define as 1.
1286 (core_sym_class): Ignore debugging symbols.
1287 (core_create_line_syms): Use MIN_INSN_SIZE when gathering line
1290 Wed Mar 20 18:15:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1292 * cg_print.c (cg_print_function_ordering): Fix __GNUC__ misspelled
1294 (order_and_dump_functions_by_arcs): Likewise.
1296 Tue Mar 12 12:19:50 1996 Ian Lance Taylor <ian@cygnus.com>
1298 * configure: Rebuild with autoconf 2.8.
1300 Sun Feb 18 15:06:18 1996 Ian Lance Taylor <ian@cygnus.com>
1302 * configure.in: Check for 'do not mix' from native linker before
1303 trying to use -rpath.
1304 * configure: Rebuild.
1306 Tue Feb 13 15:32:53 1996 Ian Lance Taylor <ian@cygnus.com>
1308 * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared.
1309 * configure: Rebuild.
1311 Wed Feb 7 14:03:17 1996 Ian Lance Taylor <ian@cygnus.com>
1313 * configure.in: Don't set CC. Look for --enable-shared. Set
1314 BFDLIB and HLDFLAGS and substitute them.
1315 * configure: Rebuild.
1316 * Makefile.in (LIBS): Use @BFDLIB@.
1317 (HLDFLAGS): New variable.
1318 (gprof): Use $(HLDFLAGS).
1320 Mon Feb 5 16:34:44 1996 Ian Lance Taylor <ian@cygnus.com>
1322 Support for building bfd and opcodes as shared libraries, based on
1323 patches from Alan Modra <alan@spri.levels.unisa.edu.au>:
1324 * Makefile.in (LIBDEPS): New variable.
1325 (LIBS): Use -L../bfd -lbfd.
1326 (gprof): Depend upon $(LIBDEPS) rather than $(LIBS).
1328 Sat Dec 30 10:11:03 1995 Jeffrey A Law (law@cygnus.com)
1330 * gprof.c (long_options): Add "--function-ordering" and
1331 "--file-ordering" options.
1332 (usage): Add new options to usage message.
1333 (main): Handle new options.
1334 * gprof.h (STYLE_FUNCTION_ORDER): Define.
1335 (STYLE_FILE_ORDER): Define.
1336 (function_mapping_file): Declare.
1337 * cg_arcs.c (arcs, numarcs): New globals.
1338 (arc_add): Put new arcs into the arc array so the function/file
1339 ordering code can examine them.
1340 * cg_arcs.h (struct arc): New field "has_been_placed".
1341 (arcs, numarcs): Declare new globals.
1342 * core.c (symbol_map, symbol_map_count): New globals.
1343 (read_function_mappings): New function to read in a function
1345 (core_init): Call read_function_mappings if a function mapping
1347 (core_create_function_syms): Handle function to object file
1349 * symtab.h (struct sym): New fields "mapped", "has_been_placed",
1351 * cg_print.c (cmp_arc_count): New function for sorting arcs.
1352 (cmp_fun_nuses): Likewise for functions.
1353 (cg_print_function_ordering): New function to print a suggested
1355 (cg_print_file_ordering): Likewise for ordering .o files.
1356 (order_and_dump_functions_by_arcs): Helper function for function
1357 and object file ordering code.
1359 Sun Dec 24 21:32:27 1995 Jeffrey A Law (law@cygnus.com)
1361 * core.c (core_sym_class): Ignore symbols without BSF_FUNCTION
1362 set if ignore_non_function is set.
1363 * gprof.h (ignore_non_functions): Declare.
1364 * gprof.c (ignore_non_functions): Define.
1365 (long_options): Add "ignore-non-functions".
1366 (usage): Add new options.
1367 (main): Recognize "-D" and "--ignore-non-functions" option.
1369 Tue Nov 21 13:24:39 1995 Ken Raeburn <raeburn@cygnus.com>
1371 * Makefile.in (.m.c): Strip out directory name from function
1374 * hist.c (scale_and_align_entries): Don't use DEFUN_VOID. Do
1375 UNITS_TO_CODE adjustment unconditionally; compiler can optimize
1376 away zero-offset case. Refer to scaled_addr, not aligned_addr.
1378 * vax.c: Don't include vax.h here.
1380 Thu Nov 16 03:41:37 1995 Ken Raeburn <raeburn@cygnus.com>
1382 Version 2.6 released.
1384 Wed Nov 8 11:40:04 1995 Ian Lance Taylor <ian@cygnus.com>
1386 * gprof.c (main): Cast getenv return value.
1388 Mon Nov 6 15:05:00 1995 Ken Raeburn <raeburn@cygnus.com>
1390 * Makefile.in (TAGS): New target.
1392 Wed Nov 1 12:51:21 1995 Per Bothner <bothner@kalessin.cygnus.com>
1394 * Makefile.in (DISTSTUFF): Rename to GEN_FILES, to avoid confusion.
1395 (all): Depend on $(GEN_FILES), not diststuff (which also depends
1398 Wed Nov 1 15:23:15 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de>
1400 * sym_ids.c: Include <ctype.h>.
1402 Wed Oct 25 13:24:31 1995 Per Bothner <bothner@kalessin.cygnus.com>
1404 * Makefile.in (diststuff): Also make info.
1405 (mostlyclean): Don't remove gprof.info*.
1406 (maintainer-clean realclean): Also remove *.info*.
1408 Fri Oct 6 16:25:32 1995 Ken Raeburn <raeburn@cygnus.com>
1410 Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
1412 * Makefile.in: Add dependecies for $(OBJS) on header files.
1414 * cg_print.c (print_cycle, print_members, cg_print_index): Fix new
1415 style output format to make it consistent.
1416 * dummy.c (find_call): Fix typo in error message.
1418 Wed Sep 20 13:21:02 1995 Ian Lance Taylor <ian@cygnus.com>
1420 * Makefile.in (maintainer-clean): New target, synonym for
1423 Fri Sep 8 14:38:08 1995 Ian Lance Taylor <ian@cygnus.com>
1425 * Makefile.in (install): Don't install in $(tooldir).
1427 Fri Aug 25 15:30:05 1995 Ken Raeburn <raeburn@cygnus.com>
1429 NS32K changes from Ian Dall:
1430 * configure.in: Use ns32k, not ns532.
1431 * ns532.c: Include symtab.h.
1432 (find_call): Renamed from findcall. Print a message.
1433 * ns532.h: Remove dummy.h comments.
1435 Tue Aug 22 10:00:45 1995 Jeffrey A. Law <law@rtl.cygnus.com>
1437 * Makefile.in (install): Remove "brokensed" hack, unnecessary now
1438 that we're using autoconf.
1440 Wed Jul 19 18:46:13 1995 Fred Fish <fnf@cygnus.com>
1442 * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line
1443 to proper type of "unsigned int *".
1445 Fri Jun 16 15:29:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1447 * configure.in: Use changequote around use of [].
1449 Mon Jun 12 12:14:52 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1451 * Makefile.in (distclean, realclean): Remove config.cache and
1454 Wed May 17 17:56:53 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1456 * Makefile.in (Makefile): Added config.status to dependency list.
1457 (config.status): New target.
1458 (SHELL): New definition.
1460 Tue Apr 25 21:11:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1462 * Makefile.in (install): Depend on "all".
1464 Thu Apr 20 17:29:07 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1466 * Makefile.in: Change all references to MY_MACHINE to MY_TARGET,
1467 to match configure script.
1469 Wed Apr 19 11:19:37 1995 J.T. Conklin <jtc@rtl.cygnus.com>
1471 * gen-c-prog.awk: Changed reference to "make-c-prog.awk" in
1472 comment emitted by this script to gen-c-prog.awk.
1474 * Makefile.in, configure.in: Converted to use autoconf.
1475 * configure: New file, generated with autoconf 2.3.
1476 * config/{mt-alpha, mt-dummy, mt-i386, mt-ns532, mt-sparc,
1477 mt-tahoe, mt-vax}: Removed.
1479 Mon Mar 13 21:44:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1481 * __bb_exit_func.c: New file, from David Mosberger-Tang.
1483 Thu Feb 9 16:56:07 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu>
1485 * All *.c: More cleanup towards GNU format.
1487 * gmon_out.h (struct gmon_hist_hdr, struct gmon_cg_arc_record):
1488 replaced sizeof (bfd_vma) by size (char*) because Ken tells me
1489 that bfd_vma is only guaranteed to be at least as big as a pointer.
1491 (GMON_Record_tag): added explicit enumeration values to ensure
1492 compatibility across compilers.
1494 * gmon_io.c (get_vma, put_vma): replaced sizeof(bfd_vma) by
1497 Tue Feb 7 17:24:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1499 * All *.c and *.h files: Ran "indent -gnu". Cleaned up a couple
1500 of constructs GNU indent couldn't handle. Block comments not yet
1501 rewritten in GNU format.
1503 * gprof.c (VERSION): Changed to 2.6, to get in sync for next
1506 Sun Feb 5 16:19:46 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu>
1508 * symtab.c (symtab_finalize): ensure globals symbols really
1509 are favored over static ones---even if their name looks less
1510 preferable; this is important for HP-UX; for example, there
1511 is a static label Ltext_something that aliases the global
1514 * hist.c (hist_print): auto-scaling is now in effect for FSF-style
1515 output only; also, auto-scaling is now performed based on
1516 per-call, rather than total execution time, which is what it was
1519 * gprof.h (File_Format): new type.
1521 * gprof.c (VERSION): upped to 2.7---seems to be completely out of
1522 sync with Cygnus version numbers though...
1524 (long_options): renamed --gmon-info to --file-info, --width added,
1525 renamed --old-file-format to --file-format
1526 (main): dito; also added support to read prof files, but as
1527 mon_out_read() is not implemented, it's #ifdef'd out for now
1529 (usage): update to reflect new options.
1531 * gmon_io.c: replaced "old_file_format" by more general
1532 "file_format" option
1534 * gmon.h (struct raw_phdr): fixed declaration for OSF/1.
1536 * core.c (core_sym_class): added back check for __gnu_compiled and
1537 ___gnu_compiled for the benefit of systems without
1538 bfd_find_nearest_line() support
1540 (get_src_info): now the libbfd is fixed, invoke bfd_find_nearest_line()
1541 with section-relative addresses
1543 (core_create_function_syms): get_src_info() calls are currently
1544 enabled for OSF/1 only. It appears to work allright for SunOS
1545 4.1.x as well, but on SPARCs it gets painfully slow with the
1546 current implementation of aout_32_find_nearest_line();
1547 unfortunately, this means that static functions will not have their
1548 filename printed in the call-graph function index; line-level
1549 profiling should still work, but requires some patience
1551 * cg_print.c (cg_print_index): sanitised printing of index when
1552 using FSF-style output; in particular, output width is now controlled
1553 via option --width and the function tries hard to keep columns
1554 aligned even in the presence of (occasional) long names
1556 * NOTES: a first shot at updating the documentation.
1558 Wed Feb 1 19:07:44 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu>
1560 * core.c (core_create_function_syms): fixed computation of min_vma
1563 * *.c: removed rcsid.
1565 Tue Jan 31 16:18:18 1995 Ken Raeburn <raeburn@cujo.cygnus.com>
1567 * Lots of changes from David Mosberger-Tang:
1569 Tue Oct 25 19:20:14 1994 David Mosberger-Tang <davidm@piston.cs.arizona.edu>
1571 * gprof.c (main): put parentheses around & within &&.
1573 * basic_blocks.c (bb_read_rec): print warning message (once) when
1574 ignoring basic-block execution counts.
1576 * source.c (source_file_lookup_name): corrected second argument to
1579 * hist.c (print_header): merged Fri Oct 21 18:58:02 1994 change by
1580 Ken Raeburn <raeburn@cujo.cygnus.com> from binutils-2.5.1.
1582 * gmon_io.c (gmon_out_read): the output stule STYLE_GMON_INFO is now
1583 supported both for old and new (versioned) gmon.out files. Old
1584 files are identified as version 0.
1586 * gmon.h (struct raw_arc): count field is now sizeof(long) bytes
1587 long (instead of 4) because that is what OSF/1 v3.0 uses.
1589 * core.c: minor fixes and debugging info changes.
1591 Sun Sep 11 18:47:47 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1593 * core.c (core_init): if .text cannot be found, try $CODE$ (the
1594 name of the text-section under HP-UX).
1596 * hist.c (hist_assign_samples): fixed off-by-one bug: highpc
1597 points one past the last sampling bin, so hist_scale should be
1598 computed as "hist_scale /= hist_num_bins", not "hist_scale /=
1601 * gmon_io.c, hist.c, hist.h: renamed hist_num_samples to
1604 * configure.in: added alpha-*-*) for per-target config.
1606 * alpha.c, alpha.h: created.
1608 * gprof.c (default_excluded_list): <locore>, <hicore> added.
1610 * core.c (core_create_function_syms, core_create_line_syms):
1611 explicitly keep two sentinels "<locore>" and "<hicore>" that catch
1612 all addresses outside the text-space. Thus, sym_lookup(&symtab,
1613 addr) continues to guarantee not to return 0 on any address. It
1614 also avoids incorrectly crediting the first/last symbol in the
1617 * core.c (core_create_line_syms): always create function symbols
1618 first, then merge in line symbols; this is so that if parts of the
1619 program were compiled without -g, function-level symbols are
1622 * utils.c (print_name_only): support for print_path added.
1624 * symtab.c (cmp_addr): also use is_func flag in comparison.
1625 (symtab_finalize): return immediately when table empty; now
1626 more careful about getting rid of the right duplicate symbol.
1628 * sparc.c (find_call): many fixes---this function was rather
1629 botched in binutils-2.4 already; it should work again.
1631 * source.c (source_file_lookup_path): PATH is now strdup'ed (it is
1632 not good to rely on get_src_info() to return distinct string
1635 * search_list.c (search_list_append): added cast for xmalloc().
1637 * hist.c: added explicit initialization to some of the global
1638 variables; fixed SItab (scales were off by a factor of 10).
1640 * hist.h: include of bfd.h added.
1642 * gprof.c, gprof.h (print_path): added.
1644 * gprof.h (MAX): fixed.
1646 * gmon_out.h: renamed gmon_time_hist_hdr to gmon_hist_hdr.
1648 * gmon_io.c: added some casts to (long) so we can always print as %lx
1650 * core.c (core_get_text_space): fixed to make it work.
1652 * cg_print.c (cg_print_index): added support for print_path option.
1654 * cg_dfn.h (cg_dfn): wrap prototype in PARAMS().
1656 * call_graph.c, gmon_io.c, hist.c: avoid taking address of array
1657 as some compilers complain (e.g., DEC's OSF/1 compiler)
1659 * basic_blocks.c, gmon_io.c, hist.c, source.c, sym_ids.c,
1660 symtab.c: calls to memset() had 2nd and 3rd args reversed.
1662 Sat Sep 10 21:53:13 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1664 * gprof.c: added "_mcount" to default_excluded_list.
1665 (main): if output_style==0 and there is either a histogram or a
1666 call-graph, always generate flat and call-graph, no matter what
1667 line_granularity is set to.
1669 * source.c (source_file_lookup_name): if searching for sf->name
1670 fails, try again with filename obtained after stripping off any
1671 partial path from sf->name.
1673 * gprof.h (SRCDEBUG): added.
1675 * search_list.c (search_list_append): directories were added in wrong
1678 * reimplemented selection mechanism from ground up; it is now possible
1679 to accurately control what gets included/excluded in each of the
1680 output styles; a "symbol-specification" (spec) is the basic means
1681 to select a set of symbols; a spec has the syntax:
1683 spec == (FILENAME:(FUNCNAME|LINE_NUM) | NAME).
1686 any of the terminal symbols can be empty, in which case they
1687 match anything (wildcards). NAME is interpreted as a FILENAME
1688 if it contains a dot (e.g., foo.c), as LINE_NUM if it starts
1689 with a digit, and as FUNCNAME otherwise.
1691 For example, to get a call-graph display that ignores arcs
1692 from foo() to bar(), you'd say "--no-graph=foo/bar"; to
1693 show only arcs into bar() (no matter what the caller),
1694 you'd say "--graph=/bar"; and to get a call-graph without
1695 any arc info, you'd say "--graph=/"; similarly, to
1696 get a flat profile without mcount, you'd say "--no-flat=mcount"
1697 and to get a flat profile that shows includes all functions
1698 you'd say "--flat=""" (i.e., an empty spec)
1700 * hist.c (hist_print): top_time wasn't initialized to 0.0.
1702 Fri Sep 9 01:10:21 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1704 * gmon_out.h: all headers now declared in terms of characters
1705 to avoid getting into trouble with different compilers introducing
1706 different amount of padding; the code already accessed the fields
1707 through bfd functions, so that didn't have to change.
1709 * hist.c (hist_read_rec, hist_write_rec): added support for
1710 collection pc histograms measuring quantities other than time;
1711 the histogram header now includes a field that specifies the
1712 dimension of the quantity measured by the histogram bins
1713 (normally, this is "seconds", but other meaningful dimensions
1714 include such things as "I-cache misses", "instruction issue stalls"
1715 etc.); there is also a field to specify a one-character
1716 abbreviation for the dimension; in the case of time, this would
1717 be 's'; in most other cases it probably would be '1' (not a physical
1720 Thu Sep 8 16:05:08 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1722 * gprof.c, gmon_io.[ch]: BSD_COMPATIBLE is gone and new_file_version
1723 has become old_file_version; gmon_io.c now always supports old-style
1724 gmon.out files; it first tries to read gmon.out as a new version
1725 file, if that fails, it tries to read it in the old format;
1726 although not very likely, it is possible for gprof to mistake an
1727 old-style file as a new one (the first 4 bytes would have to
1728 be "gmon"---including the trailing '\0'); in that case, it is
1729 necessary to specify --old-file-version
1731 * gprof.h: removed dependency on SYSV; the code now always uses
1732 strrchr(), memset(), and memcpy() and does not include either
1733 of string.h or strings.h; this should make gprof compile on
1734 any (Unix) system without configuration (per suggestion of
1737 * gprof.c (usage): fixed location of --new-file-format option.
1739 * cg_arcs.c (propagate_flags): fixed typo in declaration.
1741 * flat_bl.m: removed formfeed at end of file; the form-feed
1742 is now printed cg_print.c only when necessary.
1744 * major rewrite of gprof---too many changes to mention all of
1747 + -l now requests profiling at the line level (as opposed
1748 to function level); in this mode, gprof creates a "symbol"
1749 (aka name-list entry) for each line of source code, instead
1750 of one per function)
1752 + support for a new gmon.out file format; the new format
1753 consists of a header with a magic and a version number,
1754 followed by a sequence of profile data; profile data
1755 can any of: (a) PC histogram, (b) call-graph arcs, or
1756 (c) basic-block execution counts; the version number makes
1757 it possible to extend gmon.out in a backwards compatible
1760 + support for tcov style annotated output: if the gmon.out file
1761 contains basic-block execution counts, the user can request
1762 the generation of annotated source files, much like Sun's
1767 + new scheme to suppress symbols that aren't function names
1768 (e.g., avoids mistaking a goto label as a function)
1770 + reorganized source code to make it more managable; as a
1771 side effect, gprof now compiles cleanly with "gcc -Wall"
1773 Thu Sep 1 15:46:49 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1775 * gprof.c (funcsymbol): bfd_find_nearest_line() is now used as a
1776 final cross-check to determine whether a static symbol should be
1777 considered as a function-name.
1779 Fri Aug 5 19:32:36 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1781 * gmon_io.c (gmon_out_read): recognize "-" as the filename for
1782 stdin; this is useful if you wanna keep gmon.out files compressed;
1783 this way you can "gzcat" the compressed file into gprof.
1785 * gprof.c: flag_min_count now initialized with 1 instead of 0.
1787 * basic_blocks.c (bb_annotate_source): added support for creating
1788 .tcov files when option flag_annotate_make_files is TRUE.
1789 (annotate_with_count): all counts less than the minimum count
1790 specified by -m are now annotated with hash-marks.
1792 * gprof.c (main): -A is now followed by a string of option chars.
1794 * basic_blocks.c (annotate_with_count): replaced b->count with
1797 * source.c: flag_annotate_source replaced by source_lock_map.
1799 * source.h: source_lock_map added.
1801 * gprof.c (main): new command-line syntax: -S simply specifies
1802 which source-files user is interested in; -A requests annotated
1803 source files and -AA requests that all lines in a source file
1806 Thu Aug 4 23:27:03 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1808 * basic_blocks.c (PATH_MAX): if undefined, define as 1024.
1810 * sparc.c, i386.c, tahoe.c, vax.c: added include of "time_hist.h"
1811 so s_lowpc etc. get declared.
1813 * arcs.h (doarcs): created.
1815 * arcs.c: reordered static functions such that they get defined
1818 * gprof.c (main): added options:
1819 -A: request annotation of all source lines (with -S)
1820 -m: minimum execution count (with default basic-block display)
1821 -N: force new file format (only if BSD_COMPATIBLE is defined)
1822 -S: annotate source file
1823 -t: set table length (with -S)
1825 * Makefile.am (OBJS): added basic_blocks.o call_graph.o gmon_io.o
1826 source.o time_hist.o
1828 Fri Jul 1 15:23:50 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu)
1830 * gprof.c (asgnsamples): computation of "pcl" and "pch" depended
1831 on the fact being able to store a long in a double without loss of
1832 precision; this does not hold on machines with 64 bit longs and 64
1835 Fri Oct 21 18:58:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1837 * printgprof.c (flatprofheader): Always set totime to 1.0 if not
1838 greater than 0.0. Suggested by Harold Assink
1839 <carlo@sg.tn.tudelft.nl>.
1841 Fri Sep 23 15:06:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com>
1843 * printgprof.c (printprof): Use free, not cfree.
1844 (printgprof, printindex): Ditto.
1846 Thu Sep 1 10:40:45 1994 Jeff Law (law@snake.cs.utah.edu)
1848 * gprof.h (kfromlist, ktolist, flist, Flist, elist, Elist): Make
1849 decls extern to keep native HP compiler quiet.
1851 Tue Aug 30 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1853 * gprof.c (funcsymbol): Ignore ___gnu_compiled as well as
1854 __gnu_compiled, for the benefit of systems which add a leading
1857 Wed Aug 24 12:49:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com)
1859 * configure.in: Change i386-*-* to i[345]86-*-*.
1861 Sun Jul 10 00:35:31 1994 Ian Dall (dall@hfrd.dsto.gov.au)
1863 * ns532.c, ns532.h: New Files. ns532 support.
1865 * config/mt-ns532: New File. ns532 support.
1867 * gprof.c: user register int i instead of defaulting the int.
1868 Allows compilation with -Dregister= for debugging.
1870 * configure.in: Add ns532 support.
1872 Thu Jun 23 11:22:41 1994 Jeff Law (law@snake.cs.utah.edu)
1874 * Makefile.in (gprof): Depend on $(LIBS).
1876 Fri May 27 12:24:57 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1878 From binutils-2.4 release:
1880 Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com)
1882 * configure.bat: [new] build makefile from makefile.in (dos)
1883 * hertz.c: allow static HERTZ (msdos needs it)
1884 * gprof.c: allow target to select "r" or "rb" for fopen
1885 * gprof.c: ignore __gnu_compiled symbols
1886 * i386.h: dfine FOPEN_RB to "rb" for dos.
1888 Tue May 17 15:30:22 1994 E. Michael Smith (ems@cygnus.com)
1890 * Makefile.in (.m.c:): Added .SUFFIXES : .m
1891 so flat_bl.c would make from flat_bl.m file.
1893 Thu May 5 19:23:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
1895 * Makefile.in (install-info): Check for gprof.info in build dir,
1896 fall back to srcdir. Depend on it.
1898 * gprof.h (TRUE, FALSE): Always use undef before defining them.
1900 Mon Apr 4 23:47:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1902 * Makefile.in (MY_MACHINE): Renamed from MACHINE to avoid losing
1903 makes (osf1) in which the value of MACHINE can not be changed.
1904 * config/*.mt: Changed appropriately.
1906 Wed Mar 30 16:12:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
1908 * gprof.c (getsymtab): Change nosyms to long. Rename
1909 get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for
1910 errors from bfd_get_symtab_upper_bound and
1911 bfd_canonicalize_symtab.
1913 Tue Mar 22 10:50:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1915 * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of
1916 bfd_decode_symclass.
1918 Sun Mar 20 15:40:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
1920 * Makefile.in: Avoid bug in hpux sed.
1922 Wed Dec 15 20:16:40 1993 david d `zoo' zuhn (zoo@andros.cygnus.com)
1924 * gprof.texi (Invoking): add text about -v flag
1926 * gprof.1: add text about -v flag
1928 Wed Dec 8 16:55:06 1993 david d `zoo' zuhn (zoo@andros.cygnus.com)
1930 * gprof.c (VERSION): defined a version macro, print the value
1931 when the -v option is used
1933 Tue Jul 6 10:11:56 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1935 * Makefile.in: Install correctly.
1937 Thu Jun 24 14:43:22 1993 David J. Mackenzie (djm@thepub.cygnus.com)
1939 * gprof.c (main): Get whoami from argv, instead of hardcoding.
1940 Use it in usage message. Split usage message to fit in 80 cols.
1942 Sun Jun 20 20:58:02 1993 Ken Raeburn (raeburn@poseidon.cygnus.com)
1944 * Makefile.in: Undo 15 June change.
1946 Wed Jun 16 12:54:53 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
1948 * gmon.h, gprof.h: structs of chars used to hold external
1950 * gprof.c (getpfile, openpfile, readsamples): Swap data in using
1953 Tue Jun 15 23:09:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com)
1955 * Makefile.in (.c.o): Look in ../include, not ../bfd, for bfd.h.
1957 Mon Jun 14 16:22:59 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com)
1959 * Makefile.in: remove parentdir support
1961 Mon Jun 7 12:56:17 1993 Per Bothner (bothner@rtl.cygnus.com)
1963 * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h.
1964 * configure.in: No longer need to configure to get sysdep.h.
1966 Tue May 18 21:44:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1968 * Makefile.in (install): should not depend on install-info
1970 Mon Apr 26 12:37:46 1993 Ian Lance Taylor (ian@cygnus.com)
1972 * gprof.h: Include ansidecl.h before sysdep.h. Undefine hz.
1974 Tue Apr 13 16:14:03 1993 Per Bothner (bothner@cygnus.com)
1976 * Makefile.in: Add -g to CFLAGS.
1977 Ads LDFLAGS and use in place of CFLAGS where appropriate.
1978 * configure.in: Make a sysdep.hlink in the same way other
1979 bfd-based directories do.
1980 * gprof.h (UNIT): Replace non-standard 'u_short' by 'unsigned
1982 * gprof.h: #include sysdep.h instead of a bunch of stuff.
1983 * gprof.c (main): Fix typo gproff->gprof.
1985 Thu Mar 25 19:00:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1987 * gprof.texi: add INFO-DIR-ENTRY
1989 Tue Mar 23 00:03:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1991 * Makefile.in: add installcheck target
1993 Sat Feb 27 18:17:10 1993 Per Bothner (bothner@rtl.cygnus.com)
1995 * gprof.c (funcsymbol): Invert test for aflag.
1997 Thu Feb 25 16:01:50 1993 Per Bothner (bothner@rtl.cygnus.com)
1999 * printgprof (xmalloc, xrealloc): Cast results of malloc
2002 Wed Feb 3 13:55:33 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com)
2004 * Makefile.in: created info, install-info, dvi
2006 Wed Jan 6 00:58:09 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2008 * Makefile.in: fix install rule for $(PROG)
2010 Fri Oct 9 11:25:41 1992 Mark Eichin (eichin@cygnus.com)
2012 * gprof.1: updated SYNOPSIS to match actual behavior.
2014 Mon Oct 5 17:50:16 1992 Per Bothner (bothner@cygnus.com)
2016 * gen-c-prog.awk: New awk script, lightly changed from
2017 previously deleted make-c-prog.awk. Converts a text file
2018 to a c function that prints that text.
2019 * flat_bl.m, fsf_callg_bl.m, bsd_callg_bl.m: New files.
2020 Inputs to gen-c-prog.awk, containing text describing
2022 * blurbs.c: Removed. Use *_bl.c instead.
2023 * Makefile.in: Use gen-cprog.awk to generate *_bl.c files
2024 from *_bl.m files. Also, improve *clean rules.
2025 * printgprof.c (printgprof): Usw new function names from *_bl.c.
2028 Sun Aug 30 19:54:53 1992 Per Bothner (bothner@rtl.cygnus.com)
2030 * gprof.h, gprof.c, printfgprof.c: Add support for two
2031 output styles: The default is similar to the old FSF gprof,
2032 while -T sets the variable bsd_style_output, which causes
2033 output matching Berkeley's gprof. The biggest differences
2034 are that with the FSF style output, the flat profile comes
2035 before the call graph; numbers come before explanations;
2036 and there is less gratuitous white space.
2037 * gprof.h, gprof.c, printfgprof.c: New discard_underscores
2038 variable causes discarding of initial underscores when
2039 printing symbol names. It is set unless there is a "main"
2040 symbol (without an underscore).
2041 * printfgprof.c: New function printnameonly(), called
2042 by printname(). It handles stripping of initial '_',
2043 as well as C++ name-demangling.
2044 * gprof.callg, gprof.flat, make-c-prog.awk: Removed.
2045 It is just as convenient to edit blurbs.c directly.
2046 * Makefile.in: Removed rule for making blurbs.c.
2047 * blurbs.c: This is now a true source file (as opposed
2048 to being generated from gprof.callg and gprof.flat).
2049 Change style to use one long string literal, instead of
2050 one literal per output line. Add FSF-style blurb for call graph.
2052 Wed Aug 19 14:36:39 1992 Ian Lance Taylor (ian@cygnus.com)
2054 * Makefile.in: always create installation directories.
2056 Wed Aug 12 15:14:14 1992 Mark Eichin (eichin@cygnus.com)
2058 * Makefile.in: change ${MACHINE} to $(MACHINE).
2060 Sun Jul 19 17:34:01 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2062 * Makefile.in: removed installation of the now useless
2063 call.{flag,callg} files.
2065 * gprof.1: now uses the standard man macros instead of the new BSD
2068 Sun Jul 12 19:06:00 1992 John Gilmore (gnu at cygnus.com)
2070 * configure.in: Remove host section, expand target section.
2071 * config/mt-{tahoe,vax}: Add, to match existing support files.
2072 * config/tmake-*: Remove leftover crud.
2074 * blurbs.c: New file, created from gprof.flat and gprof.callg by
2075 * make-c-prog.awk: which processes text files into C programs.
2076 * printgprof.c (flatprofheader, gprofheader): Call new functions
2078 (printblurb): Remove.
2079 * Makefile.in: Infrastructure to build blurbs.
2080 * pathnames.h: has been removed. Gprof now has no filename
2084 Sat Jul 11 18:07:21 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2086 * Makefile.in: define man1dir and install the man page
2088 Fri Jul 10 21:14:08 1992 david d `zoo' zuhn (zoo@cygnus.com)
2090 * Makefile.in: added dummy info and install-info targets
2092 Thu Jun 4 11:34:02 1992 Mark Eichin (eichin at cygnus.com)
2094 * lookup.c: fixed fencepost in nllookup and added dbg_nllookup for
2095 help in debugging the problem (with -DDEBUG)
2096 * gprof.c: symbol values are now real values, don't add the vma
2097 anymore. (done for solaris; should verify this on other platforms)