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