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