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