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