Commit | Line | Data |
---|---|---|
2ce30166 GN |
1 | Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com> |
2 | ||
3 | * configure.in: detect cygwin* instead of cygwin32* | |
4 | * configure: regenerate | |
5 | ||
8c73afb3 ILT |
6 | Wed Aug 12 14:59:06 1998 Ian Lance Taylor <ian@cygnus.com> |
7 | ||
8 | Avoid some overflow cases: | |
9 | * basic_blocks.h (bb_min_calls): Change to unsigned long. | |
10 | * call_graph.h (cg_tally): Change count parameter to unsigned | |
11 | long. | |
12 | * cg_arcs.h (Arc): Change count field to unsigned long. | |
13 | (arc_add): Change count parameter to unsigned long. | |
14 | * source.h (Source_File): Change ncalls field to unsigned long. | |
15 | * symtab.h (Sym): Change fields ncalls, bb_calls, and | |
16 | cg.self_calls to unsigned long. | |
17 | * Many files: Update accordingly. | |
18 | ||
19 | * configure, Makefile.in, aclocal.m4: Rebuild with current tools. | |
20 | ||
47f7fb8b SC |
21 | Fri Jul 10 17:29:49 1998 Stan Cox <scox@equinox.cygnus.com> |
22 | ||
23 | * configure.in (BSD44_FORMAT): Define for cygwin32, win32, mingw32 | |
24 | * configure: Rebuild. | |
25 | ||
27a0ce88 TT |
26 | Fri Jun 12 13:40:05 1998 Tom Tromey <tromey@cygnus.com> |
27 | ||
28 | * po/Make-in (all-yes): If maintainer mode, depend on .pot file. | |
29 | ($(PACKAGE).pot): Unconditionally depend on POTFILES. | |
30 | ||
c8f90c73 JL |
31 | Sun May 10 22:35:33 1998 Jeffrey A Law (law@cygnus.com) |
32 | ||
33 | * po/Make-in (install-info): New target. | |
34 | ||
cd39bab0 TT |
35 | Tue May 5 18:28:40 1998 Tom Tromey <tromey@cygnus.com> |
36 | ||
37 | * gprof.h (_): Undefine BFD's version. | |
38 | ||
64eaad40 TT |
39 | Tue Apr 28 19:17:33 1998 Tom Tromey <tromey@cygnus.com> |
40 | ||
41 | * gprof.c (main): Conditionally call setlocale. | |
42 | * gprof.h: Include <locale.h> if HAVE_LOCALE_H. | |
43 | (LC_MESSAGES): Now can be defined even when ENABLE_NLS. | |
44 | ||
43870aec ILT |
45 | Tue Apr 28 19:50:09 1998 Ian Lance Taylor <ian@cygnus.com> |
46 | ||
47 | * corefile.c: Rename from core.c. | |
48 | * corefile.h: Rename from core.h. | |
49 | * Many .c files: Include corefile.h rather than core.h. | |
50 | * Makefile.am (sources): Change core.c to corefile.c. | |
51 | (noinst_HEADERS): Change core.h to corefile.h. | |
52 | ($(OBJECTS)): Depend upon corefile.h rather than core.h. | |
53 | (corefile.o): Rename target from core.o, depend upon corefile.c. | |
54 | * Makefile.in, po/POTFILES.in: Rebuild. | |
55 | ||
cc4f98f5 ILT |
56 | Mon Apr 27 16:50:40 1998 Ian Lance Taylor <ian@cygnus.com> |
57 | ||
58 | * configure.in: Change version number to 2.9.4 | |
59 | * configure: Rebuild. | |
60 | ||
1158ffaf TT |
61 | Wed Apr 22 16:01:17 1998 Tom Tromey <tromey@cygnus.com> |
62 | ||
63 | * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir). | |
64 | ||
16a02269 TT |
65 | Wed Apr 22 00:00:22 1998 Tom Tromey <tromey@scribbles.cygnus.com> |
66 | ||
67 | * gprof.h: Added includes and defines for gettext. | |
68 | * configure.in (ALL_LINGUAS): New macro. | |
69 | Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. | |
70 | * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, | |
71 | HAVE_LC_MESSAGES): Define. | |
72 | * gprof.c (main): Call setlocale, bindtextdomain, textdomain. | |
73 | * Makefile.am (SUBDIRS): New macro. | |
74 | (INCLUDES): Look in intl dirs for headers. Define LOCALEDIR. | |
75 | (gprof_DEPENDENCIES): Added INTLDEPS. | |
76 | (gprof_LDADD): Added INTLLLIBS. | |
77 | (POTFILES): New macro. | |
78 | (po/POTFILES.in): New target. | |
79 | * Many files: Wrap user-visible strings with gettext invocation. | |
80 | ||
0054bb2a ILT |
81 | Tue Apr 7 12:43:37 1998 Ian Lance Taylor <ian@cygnus.com> |
82 | ||
83 | From hjl@lucon.org <H.J. Lu>: | |
84 | * Makefile.am (diststuff): New target. | |
85 | * Makefile.in: Rebuild. | |
86 | ||
0d3e84dd ILT |
87 | Mon Mar 30 12:47:48 1998 Ian Lance Taylor <ian@cygnus.com> |
88 | ||
89 | * configure.in: Set version to 2.9.1. | |
90 | * configure: Rebuild. | |
91 | ||
92 | * Branched binutils 2.9. | |
93 | ||
6b84886a ILT |
94 | Sat Mar 28 23:09:08 1998 Ian Lance Taylor <ian@cygnus.com> |
95 | ||
96 | Fix some gcc -Wall warnings: | |
97 | * cg_arcs.c (num_cycles): Change to unsigned int. | |
98 | (numarcs): Likewise. | |
99 | (arc_add): Change maxarcs to unsigned int. | |
100 | (cg_assemble): Change index to unsigned int. | |
101 | * cg_arcs.h (num_cycles, numarcs): Update declarations. | |
102 | * cg_print.c (cg_print): Change index to unsigned int. | |
103 | (cg_print_index): Change index, nnames, todo, i, and j to unsigned | |
104 | int. | |
105 | (cg_print_file_ordering): Change symbol_count and index2 to | |
106 | unsigned int. | |
107 | * core.c (symbol_map_count): Change to unsigned int. | |
108 | (core_create_function_syms): Change j to unsigned int. | |
109 | (core_create_line_syms): Add cast to avoid warning. | |
110 | * hist.c (hist_assign_samples): Change j to unsigned int. | |
111 | (hist_print): Change index to unsigned i nt. Add cast to avoid | |
112 | warning. | |
113 | * sym_ids.c (parse_spec): Add casts to avoid warning. | |
114 | * symtab.c (symtab_finalize): Change j to unsigned int. | |
115 | (sym_lookup): Update printf format strings. | |
116 | * symtab.h (Sym_Table): Change len to unsigned int. | |
117 | * tahoe.c (tahoe_reladdr): Add casts to avoid warnings. | |
118 | ||
e4dee78c ILT |
119 | Tue Mar 24 19:00:11 1998 Ian Lance Taylor <ian@cygnus.com> |
120 | ||
121 | Add --demangle and --no-demangle options: | |
122 | * gprof.h (demangle): Declare. | |
123 | * gprof.c (demangle): New global variable. | |
124 | (OPTION_DEMANGLE, OPTION_NO_DEMANGLE): Define. | |
125 | (long_options): Add "demangle" and "no-demangle". | |
126 | (usage): Mention --demangle and --no-demangle. | |
127 | (main): Handle OPTION_DEMANGLE and OPTION_NO_DEMANGLE. | |
128 | * utils.c (print_name_only): Only demangle symbol name if demangle | |
129 | is true. | |
130 | * gprof.texi (Output Options): Document new options. | |
131 | ||
86884cd1 ILT |
132 | Fri Mar 20 19:21:56 1998 Ian Lance Taylor <ian@cygnus.com> |
133 | ||
134 | * Makefile.in: Rebuild with automake 1.2e. | |
135 | * aclocal.m4, configure: Rebuild with libtool 1.2. | |
136 | ||
6590e0d5 ILT |
137 | Thu Feb 12 14:36:05 1998 Ian Lance Taylor <ian@cygnus.com> |
138 | ||
139 | * gprof.c (usage): Update bug-gnu-utils address. | |
140 | ||
641146fe ILT |
141 | Sat Feb 7 15:43:12 1998 Ian Lance Taylor <ian@cygnus.com> |
142 | ||
143 | * configure, aclocal.m4: Rebuild with new libtool. | |
144 | ||
5587a091 ILT |
145 | Fri Feb 6 12:02:28 1998 Ian Lance Taylor <ian@cygnus.com> |
146 | ||
147 | * alpha.c (alpha_Instruction): Use int, not signed. | |
148 | ||
ed302e5d JL |
149 | Fri Feb 6 02:00:19 1998 Jeffrey A Law (law@cygnus.com) |
150 | ||
151 | * core.c (core_init): Adding missing "break". | |
152 | ||
fa1a1b32 ILT |
153 | Thu Feb 5 12:49:37 1998 Ian Lance Taylor <ian@cygnus.com> |
154 | ||
155 | * configure, Makefile.in, aclocal.m4: Rebuild with new libtool. | |
156 | ||
c3de2a19 ILT |
157 | Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org> |
158 | ||
249da916 ILT |
159 | * bbconv.pl: New file. |
160 | * Makefile.am (EXTRA_DIST): Add bbconv.pl. | |
161 | * Makefile.in: Rebuild. | |
162 | ||
e2fd4231 ILT |
163 | * gprof.texi: Extensive additions to document all arguments and |
164 | output formats. | |
165 | ||
7862d7d0 ILT |
166 | * symtab.c (symtab_finalize): Prefer function symbols over line |
167 | symbols. | |
168 | (dbg_sym_lookup): Correct debugging messages. | |
169 | ||
170 | * gprof.c (main): --sum implies --line. | |
171 | ||
172 | * cg_print.c (cg_print): When doing line by line profiling, don't | |
173 | use a non-function as a main listing item. | |
174 | ||
175 | * call_graph.c (cg_tally): When using line by line profiling, use | |
176 | the function symbol as the child. | |
177 | ||
178 | * symtab.h (NBBS): Define. | |
179 | (Sym): Add bb_addr and bb_calls fields. | |
180 | * basic_blocks.c (bb_read_rec): Save multiple basic blocks per | |
181 | symbol. | |
182 | (bb_write_blocks): Adjust for multiple basic blocks per symbol. | |
183 | (print_exec_counts): Don't check whether a symbol is the start of | |
184 | a basic block. Print all basic blocks for a symbol. | |
185 | (annotate_with_count): Rewrite to print all basic block counts and | |
186 | to pay attention to width argument. | |
187 | (print_annotated_source): Don't check whether symbol is the start | |
188 | of a basic block. | |
189 | ||
c3de2a19 ILT |
190 | Make it possible to build a cross gprof, although a few cases are |
191 | still not handled: | |
192 | * configure.in: Don't set MY_TARGET. | |
193 | * gprof.h: Don't include MACHINE_H. Don't define FOPEN_RB or | |
194 | FOPEN_WB; just get them from sysdep.h. | |
195 | * core.h (min_insn_size, offset_to_code): Declare. | |
196 | * core.c (MIN_INSN_SIZE): Don't define. | |
197 | (min_insn_size, offset_to_code): New variables. | |
198 | (core_init): Initialize min_insn_size and offset_to_code. | |
199 | (find_call): New function. | |
200 | (core_create_line_syms): Don't use min_dist. Set is_static in | |
201 | pass 2. | |
202 | * hist.c (UNITS_TO_CODE): Define. | |
203 | * gprof.c (default_excluded_list): Add "__mcount_internal". | |
204 | * gmon.h: Change TARGET_alpha to __alpha__. | |
205 | * hertz.h: Ifdef MACH, define hertz as HZ. | |
206 | * alpha.c (alpha_Instruction): Rename from Instruction. Change | |
207 | all references. | |
208 | (alpha_find_call): Rename from find_call. | |
209 | * alpha.h: Remove. | |
210 | * dummy.c, dummy.h: Remove. | |
211 | * i386.c (i386_iscall): Rename from iscall. Change all | |
212 | references. Check for call instruction, not jump or lcall. | |
213 | (i386_find_call): Rename from find_call. Correct for VMA. | |
214 | Correct call destination computation. Don't dereference symbol if | |
215 | it is NULL. | |
216 | * i386.h: Remove. | |
217 | * ns532.c, ns532.h: Remove. | |
218 | * sparc.c (CALL): Define. | |
219 | (sparc_find_call): Rename from find_call. | |
220 | * sparc.h: Remove. | |
221 | * tahoe.c: Include cg_arcs.h, core.h, hist.h, and symtab.h. Don't | |
222 | include time_host.h. | |
223 | (CALLF, PC): Define. | |
224 | (enum tahoe_opermodes, tahoe_operandenum): Define. Rename all | |
225 | references to opermodes or operandenum to these. | |
226 | (tahoe_operandmode): Rename from operandmode. Call abort if | |
227 | switch does not return. | |
228 | (tahoe_operandname): Rename from operandname. Call abort if | |
229 | switch does not return. | |
230 | (tahoe_operandlength): Rename from operandlength. Call abort if | |
231 | switch does not return. | |
232 | (tahoe_reladdr): Rename from reladdr. | |
233 | (tahoe_find_call): Rename from find_call. Use core_text_space | |
234 | rather than textspace. | |
235 | * tahoe.h: Remove. | |
236 | * vax.c (CALLS, PC): Define. | |
237 | (enum opermodes, operandenum, struct modebyte): Define. | |
238 | (vax_operandmode): Rename from operandmode. Call abort if switch | |
239 | does not return. | |
240 | (vax_operandname): Rename from operandname. Call abort if switch | |
241 | does not return. | |
242 | (vax_operandlength): Rename from operandlength. Call abort if | |
243 | switch does not return. | |
244 | (vax_reladdr): Rename from reladdr. | |
245 | (vax_find_call): Rename from find_call. | |
246 | * vax.h: Remove. | |
247 | * Makefile.am (AUTOMAKE_OPTIONS): Set to cygnus. | |
248 | (MY_TARGET): Remove. | |
249 | (INCLUDES): Remove -DTARGET_$(MY_TARGET) and -DMACHINE_H= | |
250 | \"$(MY_TARGET).h\". | |
251 | (gprof_SOURCES): Add i386.c, alpha.c, vax.c, tahoe.c, sparc.c. | |
252 | (gprof_DEPENDENCIES): Remove $(MY_TARGET).o. | |
253 | (gprof_LDADD): Likewise. | |
254 | (noinst_HEADERS): Remove alpha.h, i386.h, ns532.h, sparc.h, | |
255 | tahoe.h, vax.h, dummy.h. | |
256 | (EXTRA_DIST): Remove alpha.c, i386.c, ns532.c, sparc.c, tahoe.c, | |
257 | vax.c, dummy.c. | |
258 | ($(OBJECTS)): Don't depend upon $(MY_TARGET).h. | |
259 | ($(MY_TARGET).o): Remove target. | |
260 | (i386.o, alpha.o, vax.o, tahoe.o, sparc.o): New targets. | |
261 | * configure, Makefile.in, aclocal.m4: Rebuild. | |
262 | ||
a3da1edc ILT |
263 | Mon Dec 29 14:17:08 1997 Ian Lance Taylor <ian@cygnus.com> |
264 | ||
265 | * core.c (core_sym_class): Treat weak symbols as text symbols. | |
266 | From Dean Gaudet <dgaudet@arctic.org>. | |
267 | ||
42a62317 ILT |
268 | Wed Sep 24 11:35:43 1997 Ian Lance Taylor <ian@cygnus.com> |
269 | ||
270 | * aclocal.m4: Rebuild with new libtool. | |
271 | * Makefile.in: Rebuild with current automake. | |
272 | * configure: Rebuild. | |
273 | ||
274e44ae ILT |
274 | Sat Aug 9 16:25:01 1997 Ian Lance Taylor <ian@cygnus.com> |
275 | ||
276 | * configure.in: Change version number to 2.8.2. Call | |
277 | AM_PROG_LIBTOOL. Remove shared library handling; now handled by | |
278 | libtool. Add AM_CONFIG_HEADER. Change AC_PROG_INSTALL to | |
279 | AM_PROG_INSTALL. Add AM_EXEEXT. | |
280 | * Makefile.am (LINK): Remove. | |
281 | (gprof_LDFLAGS): Remove | |
282 | (gprof_DEPENDENCIES): Change libbfd.a to libbfd.la. | |
283 | (gprof_LDADD): Likewise. | |
284 | ($(OBJECTS)): Depend upon gconfig.h and ../bfd/config.h. | |
285 | * gprof.h: Undefine PACKAGE and VERSION after including BFD | |
286 | sysdep.h file, then include new gconfig.h file. | |
287 | * gprof.c (VERSION): Don't define. | |
288 | * acconfig.h: New file. | |
289 | * stamp-h.in: New file. | |
290 | * gconfig.in: New file, created by autoheader. | |
291 | * Makefile.in, configure, aclocal.m4: Rebuild. | |
292 | ||
50fb7977 ILT |
293 | Sat Jun 28 23:20:42 1997 Ian Lance Taylor <ian@cygnus.com> |
294 | ||
295 | * aclocal.m4, configure, Makefile.in: Rebuild with automake 1.2. | |
296 | ||
3b66bca3 ILT |
297 | Mon Jun 16 15:31:39 1997 Ian Lance Taylor <ian@cygnus.com> |
298 | ||
299 | * Makefile.am (INCLUDES): Add -DDEBUG. | |
300 | * Makefile.in: Rebuild. | |
301 | ||
2f1fec47 ILT |
302 | Tue Apr 15 14:19:30 1997 Ian Lance Taylor <ian@cygnus.com> |
303 | ||
304 | Change to use automake: | |
305 | * Makefile.am: New file. | |
306 | * configure.in: Run AM_INIT_AUTOMAKE, AM_MAINTAINER_MODE, and | |
307 | AM_CYGWIN32. | |
308 | * aclocal.m4: New file, created by aclocal. | |
309 | * Makefile.in: Replace with file created by automake --cygnus. | |
310 | * configure: Rebuild. | |
311 | ||
49109351 ILT |
312 | Thu Apr 3 13:21:25 1997 Ian Lance Taylor <ian@cygnus.com> |
313 | ||
314 | * gprof.c (VERSION): Define as "2.8.1". | |
315 | ||
316 | * Branched binutils 2.8. | |
317 | ||
d2ee1370 ILT |
318 | Thu Mar 27 17:15:23 1997 Ian Lance Taylor <ian@cygnus.com> |
319 | ||
320 | * gprof.c (main): Correct copyright message. | |
321 | ||
9537b1d0 ILT |
322 | Mon Mar 24 11:12:26 1997 Ian Lance Taylor <ian@cygnus.com> |
323 | ||
324 | * Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling. | |
325 | * gmon.h: Use bytes counts rather than sizeof in struct raw_phdr | |
326 | and struct raw_arc. | |
327 | ||
7dc37d80 ILT |
328 | Mon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com> |
329 | ||
330 | * cg_arcs.c (arc_add): memset() newly alloced arc to ensure | |
331 | all fields are initialized with 0. | |
332 | ||
1eb9fa9e ILT |
333 | Sat Mar 15 19:17:31 1997 H.J. Lu <hjl@lucon.org> |
334 | ||
335 | * symtab.h (find_call): Declare. | |
336 | * cg_arcs.c (cg_assemble): Don't declare find_call. | |
337 | * hist.c (scale_and_align_entries): Declare. | |
338 | ||
22395d7e ILT |
339 | Thu Feb 27 12:46:53 1997 Ian Lance Taylor <ian@cygnus.com> |
340 | ||
341 | * configure.in: Define BSD44_FORMAT if the target looks like a | |
342 | BSD4.4 derived system. | |
343 | * configure: Rebuild. | |
344 | * Makefile.in (.c.o): Add @DEFS@. | |
345 | * gmon_io.c (gmon_out_read): In BSD44_FORMAT code, get profrate | |
346 | from profrate field, not version field. | |
347 | ||
9edcbc03 ILT |
348 | Thu Jan 16 17:42:54 1997 Ian Lance Taylor <ian@cygnus.com> |
349 | ||
350 | * dummy.c (find_call): Clear ignore_direct_calls. | |
351 | ||
b3902dd3 ILT |
352 | Tue Dec 31 15:44:10 1996 Ian Lance Taylor <ian@cygnus.com> |
353 | ||
354 | * Makefile.in (.c.o): Add -D_GNU_SOURCE. Put $(CFLAGS) at the | |
355 | end. | |
356 | (gprof): Put $(CFLAGS) after the other options. | |
357 | ||
4947b15f ILT |
358 | Tue Nov 26 17:08:38 1996 Ian Lance Taylor <ian@cygnus.com> |
359 | ||
360 | * configure: Rebuild with autoconf 2.12. | |
361 | ||
1259da3e ILT |
362 | Wed Oct 2 15:23:16 1996 Ian Lance Taylor <ian@cygnus.com> |
363 | ||
364 | * sparc.c (find_call): Align p_lowpc to avoid bus error. | |
365 | ||
50622dea ILT |
366 | Tue Oct 1 15:58:10 1996 Ian Lance Taylor <ian@cygnus.com> |
367 | ||
368 | * gprof.c (usage): Print bug report address. | |
369 | (main): Change version printing to match current GNU standards. | |
370 | ||
76a61985 ILT |
371 | Fri Aug 30 12:16:11 1996 Ian Lance Taylor <ian@cygnus.com> |
372 | ||
373 | * gmon.h: Replace #elif with #else/#endif. | |
374 | ||
3d5aa992 MM |
375 | Thu Aug 29 17:04:10 1996 Michael Meissner <meissner@tiktok.cygnus.com> |
376 | ||
377 | * configure.in (i[345]86-*-*): Recognize i686 for pentium pro. | |
378 | * configure: Regenerate. | |
379 | ||
cb26c22d ILT |
380 | Thu Aug 22 17:12:30 1996 Ian Lance Taylor <ian@cygnus.com> |
381 | ||
382 | * configure.in: Set and substitute HLDENV. | |
383 | * configure: Rebuild. | |
384 | * Makefile.in (HLDENV): New variable. | |
385 | (gprof): Use $(HLDENV). | |
386 | ||
1c34a108 ILT |
387 | Wed Aug 7 14:43:51 1996 Philippe De Muyter <phdm@info.ucl.ac.be> |
388 | ||
389 | * core.c (read_function_mappings): Cast xmalloc return. | |
390 | ||
45c85bcb ILT |
391 | Thu Jul 4 12:01:42 1996 Ian Lance Taylor <ian@cygnus.com> |
392 | ||
4cdbf68f ILT |
393 | * gprof.c (VERSION): Define as "2.7.1". |
394 | ||
45c85bcb ILT |
395 | * Released binutils 2.7. |
396 | ||
13566744 ILT |
397 | * bb_exit_func.c: Rename from __bb_exit_func.c, so that it can be |
398 | stored on a System V file system. | |
399 | ||
e3c0e00b ILT |
400 | Thu Jun 27 11:36:22 1996 Ian Lance Taylor <ian@cygnus.com> |
401 | ||
402 | * configure.in: Call AC_ISC_POSIX. | |
403 | * configure: Rebuild. | |
404 | * Makefile.in (gprof): Pass $(CFLAGS) during link. | |
405 | * hertz.c: Don't include <sys/time.h>; let sysdep.h handle that. | |
406 | If HAVE_SETITIMER is not defined, try using sysconf. | |
407 | ||
39c3964f JM |
408 | Mon Jun 24 18:27:28 1996 Jason Molenda (crash@godzilla.cygnus.co.jp) |
409 | ||
410 | * Makefile.in (exec_prefix, bindir, libdir, mandir, infodir, datadir, | |
411 | INSTALL_PROGRAM, INSTALL_DATA): Use autoconf-set values. | |
412 | * configure.in (AC_PREREQ): autoconf 2.5 or higher. | |
413 | (AC_PROG_INSTALL): added. | |
414 | * configure: Rebuilt. | |
415 | ||
8530ae8e ILT |
416 | Mon Jun 24 12:03:09 1996 Ian Lance Taylor <ian@cygnus.com> |
417 | ||
418 | * configure.in: On alpha*-*-osf*, link against libbfd.a if not | |
419 | using shared libraries. | |
420 | * configure: Rebuild with autoconf 2.10. | |
421 | ||
d75ea6de ILT |
422 | Tue Jun 18 17:35:58 1996 Ian Lance Taylor <ian@cygnus.com> |
423 | ||
424 | * core.c (core_create_line_syms): Use xstrdup rather than strdup. | |
425 | * source.c (source_file_lookup_path): Likewise. | |
426 | ||
b4cb4ea2 ILT |
427 | Mon Apr 8 14:44:33 1996 Ian Lance Taylor <ian@cygnus.com> |
428 | ||
429 | * configure.in: Permit --enable-shared to specify a list of | |
430 | directories. | |
431 | * configure: Rebuild. | |
432 | ||
df928c8f ILT |
433 | Thu Mar 21 17:18:25 1996 Ian Lance Taylor <ian@cygnus.com> |
434 | ||
435 | * core.c (core_create_function_syms): Move filename and func_name | |
436 | inside ifdef where they are used. | |
437 | ||
438 | * core.c (core_sym_class): Parenthesize && within ||. | |
439 | * symtab.c (symtab_finalize): Correct parenthesization. | |
440 | ||
441 | * cg_print.h (cg_print_file_ordering): Declare. | |
442 | (cg_print_function_ordering): Declare. | |
443 | ||
444 | * __bb_exit_func.c (__bb_exit_func): Replace bcopy with memcpy. | |
445 | * cg_arcs.c (arc_add): Likewise. | |
446 | * cg_print.c (cg_print_function_ordering): Likewise. | |
447 | ||
0f579087 ILT |
448 | Thu Mar 21 17:02:02 1996 David Mosberger-Tang <davidm@azstarnet.com> |
449 | ||
450 | * gprof.c (default_excluded_list): Add "__mcount". | |
451 | ||
452 | * gprof.c (main): Change ifdef __osf__ to __alpha__. | |
453 | ||
454 | * gmon_io.c (gmon_out_read): If BSD44_FORMAT is defined, get the | |
455 | profiling rate from the header. | |
456 | ||
457 | * gmon.h (struct raw_phdr): Only include pad if both __alpha__ and | |
458 | __osf__ are defined. Add new fields if BSD44_FORMAT is defined. | |
459 | ||
460 | * alpha.h (MIN_INSN_SIZE): Define. | |
461 | * core.c (MIN_INSN_SIZE): If not defined, define as 1. | |
462 | (core_sym_class): Ignore debugging symbols. | |
463 | (core_create_line_syms): Use MIN_INSN_SIZE when gathering line | |
464 | information. | |
465 | ||
7a542ed9 ILT |
466 | Wed Mar 20 18:15:47 1996 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> |
467 | ||
468 | * cg_print.c (cg_print_function_ordering): Fix __GNUC__ misspelled | |
469 | as __GNU_C__. | |
470 | (order_and_dump_functions_by_arcs): Likewise. | |
471 | ||
ea2488ad ILT |
472 | Tue Mar 12 12:19:50 1996 Ian Lance Taylor <ian@cygnus.com> |
473 | ||
474 | * configure: Rebuild with autoconf 2.8. | |
475 | ||
7925f4d4 ILT |
476 | Sun Feb 18 15:06:18 1996 Ian Lance Taylor <ian@cygnus.com> |
477 | ||
478 | * configure.in: Check for 'do not mix' from native linker before | |
479 | trying to use -rpath. | |
480 | * configure: Rebuild. | |
481 | ||
56f9773f ILT |
482 | Tue Feb 13 15:32:53 1996 Ian Lance Taylor <ian@cygnus.com> |
483 | ||
484 | * configure.in: Set HDLFLAGS for *-*-hpux with --enable-shared. | |
485 | * configure: Rebuild. | |
486 | ||
ba8e3a2e ILT |
487 | Wed Feb 7 14:03:17 1996 Ian Lance Taylor <ian@cygnus.com> |
488 | ||
489 | * configure.in: Don't set CC. Look for --enable-shared. Set | |
490 | BFDLIB and HLDFLAGS and substitute them. | |
491 | * configure: Rebuild. | |
492 | * Makefile.in (LIBS): Use @BFDLIB@. | |
493 | (HLDFLAGS): New variable. | |
494 | (gprof): Use $(HLDFLAGS). | |
495 | ||
04ed3b54 ILT |
496 | Mon Feb 5 16:34:44 1996 Ian Lance Taylor <ian@cygnus.com> |
497 | ||
498 | Support for building bfd and opcodes as shared libraries, based on | |
499 | patches from Alan Modra <alan@spri.levels.unisa.edu.au>: | |
500 | * Makefile.in (LIBDEPS): New variable. | |
501 | (LIBS): Use -L../bfd -lbfd. | |
502 | (gprof): Depend upon $(LIBDEPS) rather than $(LIBS). | |
503 | ||
64c50fc5 JL |
504 | Sat Dec 30 10:11:03 1995 Jeffrey A Law (law@cygnus.com) |
505 | ||
506 | * gprof.c (long_options): Add "--function-ordering" and | |
507 | "--file-ordering" options. | |
508 | (usage): Add new options to usage message. | |
509 | (main): Handle new options. | |
510 | * gprof.h (STYLE_FUNCTION_ORDER): Define. | |
511 | (STYLE_FILE_ORDER): Define. | |
512 | (function_mapping_file): Declare. | |
513 | * cg_arcs.c (arcs, numarcs): New globals. | |
514 | (arc_add): Put new arcs into the arc array so the function/file | |
515 | ordering code can examine them. | |
516 | * cg_arcs.h (struct arc): New field "has_been_placed". | |
517 | (arcs, numarcs): Declare new globals. | |
518 | * core.c (symbol_map, symbol_map_count): New globals. | |
519 | (read_function_mappings): New function to read in a function | |
520 | to object map file. | |
521 | (core_init): Call read_function_mappings if a function mapping | |
522 | file exists. | |
523 | (core_create_function_syms): Handle function to object file | |
524 | mappings. | |
525 | * symtab.h (struct sym): New fields "mapped", "has_been_placed", | |
526 | "nuses", "prev". | |
527 | * cg_print.c (cmp_arc_count): New function for sorting arcs. | |
528 | (cmp_fun_nuses): Likewise for functions. | |
529 | (cg_print_function_ordering): New function to print a suggested | |
530 | function ordering. | |
531 | (cg_print_file_ordering): Likewise for ordering .o files. | |
532 | (order_and_dump_functions_by_arcs): Helper function for function | |
533 | and object file ordering code. | |
534 | ||
32843f94 JL |
535 | Sun Dec 24 21:32:27 1995 Jeffrey A Law (law@cygnus.com) |
536 | ||
537 | * core.c (core_sym_class): Ignore symbols without BSF_FUNCTION | |
538 | set if ignore_non_function is set. | |
539 | * gprof.h (ignore_non_functions): Declare. | |
540 | * gprof.c (ignore_non_functions): Define. | |
541 | (long_options): Add "ignore-non-functions". | |
542 | (usage): Add new options. | |
543 | (main): Recognize "-D" and "--ignore-non-functions" option. | |
544 | ||
1aa65af6 KR |
545 | Tue Nov 21 13:24:39 1995 Ken Raeburn <raeburn@cygnus.com> |
546 | ||
a4f589cc KR |
547 | * Makefile.in (.m.c): Strip out directory name from function |
548 | name. | |
549 | ||
fcc14c40 KR |
550 | * hist.c (scale_and_align_entries): Don't use DEFUN_VOID. Do |
551 | UNITS_TO_CODE adjustment unconditionally; compiler can optimize | |
552 | away zero-offset case. Refer to scaled_addr, not aligned_addr. | |
553 | ||
1aa65af6 KR |
554 | * vax.c: Don't include vax.h here. |
555 | ||
b218076e KR |
556 | Thu Nov 16 03:41:37 1995 Ken Raeburn <raeburn@cygnus.com> |
557 | ||
558 | Version 2.6 released. | |
559 | ||
31af2d7e ILT |
560 | Wed Nov 8 11:40:04 1995 Ian Lance Taylor <ian@cygnus.com> |
561 | ||
562 | * gprof.c (main): Cast getenv return value. | |
563 | ||
4a07e94f KR |
564 | Mon Nov 6 15:05:00 1995 Ken Raeburn <raeburn@cygnus.com> |
565 | ||
566 | * Makefile.in (TAGS): New target. | |
567 | ||
c3294c2e PB |
568 | Wed Nov 1 12:51:21 1995 Per Bothner <bothner@kalessin.cygnus.com> |
569 | ||
570 | * Makefile.in (DISTSTUFF): Rename to GEN_FILES, to avoid confusion. | |
571 | (all): Depend on $(GEN_FILES), not diststuff (which also depends | |
572 | on info). | |
573 | ||
911d6ca1 ILT |
574 | Wed Nov 1 15:23:15 1995 Manfred Hollstein KS/EF4A 60/1F/110 #40283 <manfred@lts.sel.alcatel.de> |
575 | ||
576 | * sym_ids.c: Include <ctype.h>. | |
577 | ||
fc9e7850 PB |
578 | Wed Oct 25 13:24:31 1995 Per Bothner <bothner@kalessin.cygnus.com> |
579 | ||
580 | * Makefile.in (diststuff): Also make info. | |
581 | (mostlyclean): Don't remove gprof.info*. | |
582 | (maintainer-clean realclean): Also remove *.info*. | |
583 | ||
869b94c5 KR |
584 | Fri Oct 6 16:25:32 1995 Ken Raeburn <raeburn@cygnus.com> |
585 | ||
586 | Mon Sep 25 22:49:32 1995 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de> | |
587 | ||
588 | * Makefile.in: Add dependecies for $(OBJS) on header files. | |
589 | ||
590 | * cg_print.c (print_cycle, print_members, cg_print_index): Fix new | |
591 | style output format to make it consistent. | |
592 | * dummy.c (find_call): Fix typo in error message. | |
593 | ||
0312401c ILT |
594 | Wed Sep 20 13:21:02 1995 Ian Lance Taylor <ian@cygnus.com> |
595 | ||
596 | * Makefile.in (maintainer-clean): New target, synonym for | |
597 | realclean. | |
598 | ||
3e0d0327 ILT |
599 | Fri Sep 8 14:38:08 1995 Ian Lance Taylor <ian@cygnus.com> |
600 | ||
601 | * Makefile.in (install): Don't install in $(tooldir). | |
602 | ||
af0786b4 KR |
603 | Fri Aug 25 15:30:05 1995 Ken Raeburn <raeburn@cygnus.com> |
604 | ||
605 | NS32K changes from Ian Dall: | |
606 | * configure.in: Use ns32k, not ns532. | |
607 | * ns532.c: Include symtab.h. | |
608 | (find_call): Renamed from findcall. Print a message. | |
609 | * ns532.h: Remove dummy.h comments. | |
610 | ||
d0c997a9 JL |
611 | Tue Aug 22 10:00:45 1995 Jeffrey A. Law <law@rtl.cygnus.com> |
612 | ||
613 | * Makefile.in (install): Remove "brokensed" hack, unnecessary now | |
614 | that we're using autoconf. | |
615 | ||
643f17d2 FF |
616 | Wed Jul 19 18:46:13 1995 Fred Fish <fnf@cygnus.com> |
617 | ||
618 | * core.c (get_src_info): Cast arg 7 of bfd_find_nearest_line | |
619 | to proper type of "unsigned int *". | |
620 | ||
379062d1 KR |
621 | Fri Jun 16 15:29:36 1995 Ken Raeburn <raeburn@cujo.cygnus.com> |
622 | ||
623 | * configure.in: Use changequote around use of []. | |
624 | ||
9e4be2c7 C |
625 | Mon Jun 12 12:14:52 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
626 | ||
627 | * Makefile.in (distclean, realclean): Remove config.cache and | |
628 | config.log. | |
629 | ||
3ecd5c7d C |
630 | Wed May 17 17:56:53 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
631 | ||
632 | * Makefile.in (Makefile): Added config.status to dependency list. | |
633 | (config.status): New target. | |
634 | (SHELL): New definition. | |
635 | ||
e4fc2696 KR |
636 | Tue Apr 25 21:11:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com> |
637 | ||
638 | * Makefile.in (install): Depend on "all". | |
639 | ||
4c92f064 KR |
640 | Thu Apr 20 17:29:07 1995 Ken Raeburn <raeburn@cujo.cygnus.com> |
641 | ||
642 | * Makefile.in: Change all references to MY_MACHINE to MY_TARGET, | |
643 | to match configure script. | |
644 | ||
7858d8dc C |
645 | Wed Apr 19 11:19:37 1995 J.T. Conklin <jtc@rtl.cygnus.com> |
646 | ||
647 | * gen-c-prog.awk: Changed reference to "make-c-prog.awk" in | |
648 | comment emitted by this script to gen-c-prog.awk. | |
649 | ||
650 | * Makefile.in, configure.in: Converted to use autoconf. | |
651 | * configure: New file, generated with autoconf 2.3. | |
652 | * config/{mt-alpha, mt-dummy, mt-i386, mt-ns532, mt-sparc, | |
653 | mt-tahoe, mt-vax}: Removed. | |
654 | ||
03c35bcb KR |
655 | Mon Mar 13 21:44:24 1995 Ken Raeburn <raeburn@cujo.cygnus.com> |
656 | ||
657 | * __bb_exit_func.c: New file, from David Mosberger-Tang. | |
658 | ||
659 | Thu Feb 9 16:56:07 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu> | |
660 | ||
661 | * All *.c: More cleanup towards GNU format. | |
662 | ||
663 | * gmon_out.h (struct gmon_hist_hdr, struct gmon_cg_arc_record): | |
664 | replaced sizeof (bfd_vma) by size (char*) because Ken tells me | |
665 | that bfd_vma is only guaranteed to be at least as big as a pointer. | |
666 | ||
667 | (GMON_Record_tag): added explicit enumeration values to ensure | |
668 | compatibility across compilers. | |
669 | ||
670 | * gmon_io.c (get_vma, put_vma): replaced sizeof(bfd_vma) by | |
671 | sizeof(char*). | |
672 | ||
5489fcc3 KR |
673 | Tue Feb 7 17:24:12 1995 Ken Raeburn <raeburn@cujo.cygnus.com> |
674 | ||
12516a37 KR |
675 | * All *.c and *.h files: Ran "indent -gnu". Cleaned up a couple |
676 | of constructs GNU indent couldn't handle. Block comments not yet | |
677 | rewritten in GNU format. | |
678 | ||
5489fcc3 KR |
679 | * gprof.c (VERSION): Changed to 2.6, to get in sync for next |
680 | binutils release. | |
681 | ||
682 | Sun Feb 5 16:19:46 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu> | |
683 | ||
684 | * symtab.c (symtab_finalize): ensure globals symbols really | |
685 | are favored over static ones---even if their name looks less | |
686 | preferable; this is important for HP-UX; for example, there | |
687 | is a static label Ltext_something that aliases the global | |
688 | symbol _start | |
689 | ||
690 | * hist.c (hist_print): auto-scaling is now in effect for FSF-style | |
691 | output only; also, auto-scaling is now performed based on | |
692 | per-call, rather than total execution time, which is what it was | |
693 | meant to be. | |
694 | ||
695 | * gprof.h (File_Format): new type. | |
696 | ||
697 | * gprof.c (VERSION): upped to 2.7---seems to be completely out of | |
698 | sync with Cygnus version numbers though... | |
699 | ||
700 | (long_options): renamed --gmon-info to --file-info, --width added, | |
701 | renamed --old-file-format to --file-format | |
702 | (main): dito; also added support to read prof files, but as | |
703 | mon_out_read() is not implemented, it's #ifdef'd out for now | |
704 | ||
705 | (usage): update to reflect new options. | |
706 | ||
707 | * gmon_io.c: replaced "old_file_format" by more general | |
708 | "file_format" option | |
709 | ||
710 | * gmon.h (struct raw_phdr): fixed declaration for OSF/1. | |
711 | ||
712 | * core.c (core_sym_class): added back check for __gnu_compiled and | |
713 | ___gnu_compiled for the benefit of systems without | |
714 | bfd_find_nearest_line() support | |
715 | ||
716 | (get_src_info): now the libbfd is fixed, invoke bfd_find_nearest_line() | |
717 | with section-relative addresses | |
718 | ||
719 | (core_create_function_syms): get_src_info() calls are currently | |
720 | enabled for OSF/1 only. It appears to work allright for SunOS | |
721 | 4.1.x as well, but on SPARCs it gets painfully slow with the | |
722 | current implementation of aout_32_find_nearest_line(); | |
723 | unfortunately, this means that static functions will not have their | |
724 | filename printed in the call-graph function index; line-level | |
725 | profiling should still work, but requires some patience | |
726 | ||
3e906c08 | 727 | * cg_print.c (cg_print_index): sanitised printing of index when |
5489fcc3 KR |
728 | using FSF-style output; in particular, output width is now controlled |
729 | via option --width and the function tries hard to keep columns | |
730 | aligned even in the presence of (occasional) long names | |
731 | ||
732 | * NOTES: a first shot at updating the documentation. | |
733 | ||
734 | Wed Feb 1 19:07:44 1995 David Mosberger-Tang <davidm@piston.cs.arizona.edu> | |
735 | ||
736 | * core.c (core_create_function_syms): fixed computation of min_vma | |
737 | and max_vma. | |
738 | ||
739 | * *.c: removed rcsid. | |
740 | ||
741 | Tue Jan 31 16:18:18 1995 Ken Raeburn <raeburn@cujo.cygnus.com> | |
742 | ||
743 | * Lots of changes from David Mosberger-Tang: | |
744 | ||
745 | Tue Oct 25 19:20:14 1994 David Mosberger-Tang <davidm@piston.cs.arizona.edu> | |
746 | ||
747 | * gprof.c (main): put parentheses around & within &&. | |
748 | ||
749 | * basic_blocks.c (bb_read_rec): print warning message (once) when | |
750 | ignoring basic-block execution counts. | |
751 | ||
752 | * source.c (source_file_lookup_name): corrected second argument to | |
753 | strcmp(). | |
754 | ||
755 | * hist.c (print_header): merged Fri Oct 21 18:58:02 1994 change by | |
756 | Ken Raeburn <raeburn@cujo.cygnus.com> from binutils-2.5.1. | |
757 | ||
758 | * gmon_io.c (gmon_out_read): the output stule STYLE_GMON_INFO is now | |
759 | supported both for old and new (versioned) gmon.out files. Old | |
760 | files are identified as version 0. | |
761 | ||
762 | * gmon.h (struct raw_arc): count field is now sizeof(long) bytes | |
763 | long (instead of 4) because that is what OSF/1 v3.0 uses. | |
764 | ||
765 | * core.c: minor fixes and debugging info changes. | |
766 | ||
767 | Sun Sep 11 18:47:47 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
768 | ||
769 | * core.c (core_init): if .text cannot be found, try $CODE$ (the | |
770 | name of the text-section under HP-UX). | |
771 | ||
772 | * hist.c (hist_assign_samples): fixed off-by-one bug: highpc | |
773 | points one past the last sampling bin, so hist_scale should be | |
774 | computed as "hist_scale /= hist_num_bins", not "hist_scale /= | |
775 | hist_num_bins - 1". | |
776 | ||
777 | * gmon_io.c, hist.c, hist.h: renamed hist_num_samples to | |
778 | hist_num_bins. | |
779 | ||
780 | * configure.in: added alpha-*-*) for per-target config. | |
781 | ||
782 | * alpha.c, alpha.h: created. | |
783 | ||
784 | * gprof.c (default_excluded_list): <locore>, <hicore> added. | |
785 | ||
786 | * core.c (core_create_function_syms, core_create_line_syms): | |
787 | explicitly keep two sentinels "<locore>" and "<hicore>" that catch | |
788 | all addresses outside the text-space. Thus, sym_lookup(&symtab, | |
789 | addr) continues to guarantee not to return 0 on any address. It | |
790 | also avoids incorrectly crediting the first/last symbol in the | |
791 | text-space. | |
792 | ||
793 | * core.c (core_create_line_syms): always create function symbols | |
794 | first, then merge in line symbols; this is so that if parts of the | |
795 | program were compiled without -g, function-level symbols are | |
796 | available still. | |
797 | ||
798 | * utils.c (print_name_only): support for print_path added. | |
799 | ||
800 | * symtab.c (cmp_addr): also use is_func flag in comparison. | |
801 | (symtab_finalize): return immediately when table empty; now | |
802 | more careful about getting rid of the right duplicate symbol. | |
803 | ||
804 | * sparc.c (find_call): many fixes---this function was rather | |
805 | botched in binutils-2.4 already; it should work again. | |
806 | ||
807 | * source.c (source_file_lookup_path): PATH is now strdup'ed (it is | |
808 | not good to rely on get_src_info() to return distinct string | |
809 | pointers). | |
810 | ||
811 | * search_list.c (search_list_append): added cast for xmalloc(). | |
812 | ||
813 | * hist.c: added explicit initialization to some of the global | |
814 | variables; fixed SItab (scales were off by a factor of 10). | |
815 | ||
816 | * hist.h: include of bfd.h added. | |
817 | ||
818 | * gprof.c, gprof.h (print_path): added. | |
819 | ||
820 | * gprof.h (MAX): fixed. | |
821 | ||
822 | * gmon_out.h: renamed gmon_time_hist_hdr to gmon_hist_hdr. | |
823 | ||
824 | * gmon_io.c: added some casts to (long) so we can always print as %lx | |
825 | ||
826 | * core.c (core_get_text_space): fixed to make it work. | |
827 | ||
828 | * cg_print.c (cg_print_index): added support for print_path option. | |
829 | ||
830 | * cg_dfn.h (cg_dfn): wrap prototype in PARAMS(). | |
831 | ||
832 | * call_graph.c, gmon_io.c, hist.c: avoid taking address of array | |
833 | as some compilers complain (e.g., DEC's OSF/1 compiler) | |
834 | ||
835 | * basic_blocks.c, gmon_io.c, hist.c, source.c, sym_ids.c, | |
836 | symtab.c: calls to memset() had 2nd and 3rd args reversed. | |
837 | ||
838 | Sat Sep 10 21:53:13 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
839 | ||
840 | * gprof.c: added "_mcount" to default_excluded_list. | |
841 | (main): if output_style==0 and there is either a histogram or a | |
842 | call-graph, always generate flat and call-graph, no matter what | |
843 | line_granularity is set to. | |
844 | ||
845 | * source.c (source_file_lookup_name): if searching for sf->name | |
846 | fails, try again with filename obtained after stripping off any | |
847 | partial path from sf->name. | |
848 | ||
849 | * gprof.h (SRCDEBUG): added. | |
850 | ||
851 | * search_list.c (search_list_append): directories were added in wrong | |
852 | order. | |
853 | ||
854 | * reimplemented selection mechanism from ground up; it is now possible | |
855 | to accurately control what gets included/excluded in each of the | |
856 | output styles; a "symbol-specification" (spec) is the basic means | |
857 | to select a set of symbols; a spec has the syntax: | |
858 | ||
859 | spec == (FILENAME:(FUNCNAME|LINE_NUM) | NAME). | |
860 | arc == spec/spec. | |
861 | ||
862 | any of the terminal symbols can be empty, in which case they | |
863 | match anything (wildcards). NAME is interpreted as a FILENAME | |
864 | if it contains a dot (e.g., foo.c), as LINE_NUM if it starts | |
865 | with a digit, and as FUNCNAME otherwise. | |
866 | ||
867 | For example, to get a call-graph display that ignores arcs | |
868 | from foo() to bar(), you'd say "--no-graph=foo/bar"; to | |
869 | show only arcs into bar() (no matter what the caller), | |
870 | you'd say "--graph=/bar"; and to get a call-graph without | |
871 | any arc info, you'd say "--graph=/"; similarly, to | |
872 | get a flat profile without mcount, you'd say "--no-flat=mcount" | |
873 | and to get a flat profile that shows includes all functions | |
874 | you'd say "--flat=""" (i.e., an empty spec) | |
875 | ||
876 | * hist.c (hist_print): top_time wasn't initialized to 0.0. | |
877 | ||
878 | Fri Sep 9 01:10:21 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
879 | ||
880 | * gmon_out.h: all headers now declared in terms of characters | |
881 | to avoid getting into trouble with different compilers introducing | |
882 | different amount of padding; the code already accessed the fields | |
883 | through bfd functions, so that didn't have to change. | |
884 | ||
885 | * hist.c (hist_read_rec, hist_write_rec): added support for | |
886 | collection pc histograms measuring quantities other than time; | |
887 | the histogram header now includes a field that specifies the | |
888 | dimension of the quantity measured by the histogram bins | |
889 | (normally, this is "seconds", but other meaningful dimensions | |
890 | include such things as "I-cache misses", "instruction issue stalls" | |
891 | etc.); there is also a field to specify a one-character | |
892 | abbreviation for the dimension; in the case of time, this would | |
893 | be 's'; in most other cases it probably would be '1' (not a physical | |
894 | dimension). | |
895 | ||
896 | Thu Sep 8 16:05:08 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
897 | ||
898 | * gprof.c, gmon_io.[ch]: BSD_COMPATIBLE is gone and new_file_version | |
899 | has become old_file_version; gmon_io.c now always supports old-style | |
900 | gmon.out files; it first tries to read gmon.out as a new version | |
901 | file, if that fails, it tries to read it in the old format; | |
902 | although not very likely, it is possible for gprof to mistake an | |
903 | old-style file as a new one (the first 4 bytes would have to | |
904 | be "gmon"---including the trailing '\0'); in that case, it is | |
905 | necessary to specify --old-file-version | |
906 | ||
907 | * gprof.h: removed dependency on SYSV; the code now always uses | |
908 | strrchr(), memset(), and memcpy() and does not include either | |
909 | of string.h or strings.h; this should make gprof compile on | |
910 | any (Unix) system without configuration (per suggestion of | |
911 | raeburn@cygnus.com) | |
912 | ||
913 | * gprof.c (usage): fixed location of --new-file-format option. | |
914 | ||
915 | * cg_arcs.c (propagate_flags): fixed typo in declaration. | |
916 | ||
917 | * flat_bl.m: removed formfeed at end of file; the form-feed | |
918 | is now printed cg_print.c only when necessary. | |
919 | ||
920 | * major rewrite of gprof---too many changes to mention all of | |
921 | them. new features: | |
922 | ||
923 | + -l now requests profiling at the line level (as opposed | |
924 | to function level); in this mode, gprof creates a "symbol" | |
925 | (aka name-list entry) for each line of source code, instead | |
926 | of one per function) | |
927 | ||
928 | + support for a new gmon.out file format; the new format | |
929 | consists of a header with a magic and a version number, | |
930 | followed by a sequence of profile data; profile data | |
931 | can any of: (a) PC histogram, (b) call-graph arcs, or | |
932 | (c) basic-block execution counts; the version number makes | |
933 | it possible to extend gmon.out in a backwards compatible | |
934 | fashion | |
935 | ||
936 | + support for tcov style annotated output: if the gmon.out file | |
937 | contains basic-block execution counts, the user can request | |
938 | the generation of annotated source files, much like Sun's | |
939 | tcov used to do | |
940 | ||
941 | + long options | |
942 | ||
943 | + new scheme to suppress symbols that aren't function names | |
944 | (e.g., avoids mistaking a goto label as a function) | |
945 | ||
946 | + reorganized source code to make it more managable; as a | |
947 | side effect, gprof now compiles cleanly with "gcc -Wall" | |
948 | ||
949 | Thu Sep 1 15:46:49 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
950 | ||
951 | * gprof.c (funcsymbol): bfd_find_nearest_line() is now used as a | |
952 | final cross-check to determine whether a static symbol should be | |
953 | considered as a function-name. | |
954 | ||
955 | Fri Aug 5 19:32:36 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
956 | ||
957 | * gmon_io.c (gmon_out_read): recognize "-" as the filename for | |
958 | stdin; this is useful if you wanna keep gmon.out files compressed; | |
959 | this way you can "gzcat" the compressed file into gprof. | |
960 | ||
961 | * gprof.c: flag_min_count now initialized with 1 instead of 0. | |
962 | ||
963 | * basic_blocks.c (bb_annotate_source): added support for creating | |
964 | .tcov files when option flag_annotate_make_files is TRUE. | |
965 | (annotate_with_count): all counts less than the minimum count | |
966 | specified by -m are now annotated with hash-marks. | |
967 | ||
968 | * gprof.c (main): -A is now followed by a string of option chars. | |
969 | ||
970 | * basic_blocks.c (annotate_with_count): replaced b->count with | |
971 | cnt. | |
972 | ||
973 | * source.c: flag_annotate_source replaced by source_lock_map. | |
974 | ||
975 | * source.h: source_lock_map added. | |
976 | ||
977 | * gprof.c (main): new command-line syntax: -S simply specifies | |
978 | which source-files user is interested in; -A requests annotated | |
979 | source files and -AA requests that all lines in a source file | |
980 | are annotated. | |
981 | ||
982 | Thu Aug 4 23:27:03 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
983 | ||
984 | * basic_blocks.c (PATH_MAX): if undefined, define as 1024. | |
985 | ||
986 | * sparc.c, i386.c, tahoe.c, vax.c: added include of "time_hist.h" | |
987 | so s_lowpc etc. get declared. | |
988 | ||
989 | * arcs.h (doarcs): created. | |
990 | ||
991 | * arcs.c: reordered static functions such that they get defined | |
992 | before use. | |
993 | ||
994 | * gprof.c (main): added options: | |
995 | -A: request annotation of all source lines (with -S) | |
996 | -m: minimum execution count (with default basic-block display) | |
997 | -N: force new file format (only if BSD_COMPATIBLE is defined) | |
998 | -S: annotate source file | |
999 | -t: set table length (with -S) | |
1000 | ||
1001 | * Makefile (OBJS): added basic_blocks.o call_graph.o gmon_io.o | |
1002 | source.o time_hist.o | |
1003 | ||
1004 | Fri Jul 1 15:23:50 1994 David Mosberger-Tang (davidm@piston.cs.arizona.edu) | |
1005 | ||
1006 | * gprof.c (asgnsamples): computation of "pcl" and "pch" depended | |
1007 | on the fact being able to store a long in a double without loss of | |
1008 | precision; this does not hold on machines with 64 bit longs and 64 | |
1009 | bit doubles. | |
1010 | ||
a051e7cc KR |
1011 | Fri Oct 21 18:58:02 1994 Ken Raeburn <raeburn@cujo.cygnus.com> |
1012 | ||
1013 | * printgprof.c (flatprofheader): Always set totime to 1.0 if not | |
1014 | greater than 0.0. Suggested by Harold Assink | |
1015 | <carlo@sg.tn.tudelft.nl>. | |
1016 | ||
a67d9a42 KR |
1017 | Fri Sep 23 15:06:45 1994 Ken Raeburn <raeburn@cujo.cygnus.com> |
1018 | ||
1019 | * printgprof.c (printprof): Use free, not cfree. | |
1020 | (printgprof, printindex): Ditto. | |
1021 | ||
54a17c91 JL |
1022 | Thu Sep 1 10:40:45 1994 Jeff Law (law@snake.cs.utah.edu) |
1023 | ||
1024 | * gprof.h (kfromlist, ktolist, flist, Flist, elist, Elist): Make | |
1025 | decls extern to keep native HP compiler quiet. | |
1026 | ||
f43a7782 ILT |
1027 | Tue Aug 30 11:12:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) |
1028 | ||
1029 | * gprof.c (funcsymbol): Ignore ___gnu_compiled as well as | |
1030 | __gnu_compiled, for the benefit of systems which add a leading | |
1031 | underscore. | |
1032 | ||
68e01f9d ILT |
1033 | Wed Aug 24 12:49:13 1994 Ian Lance Taylor (ian@sanguine.cygnus.com) |
1034 | ||
1035 | * configure.in: Change i386-*-* to i[345]86-*-*. | |
1036 | ||
fbcbb8c4 KR |
1037 | Sun Jul 10 00:35:31 1994 Ian Dall (dall@hfrd.dsto.gov.au) |
1038 | ||
1039 | * ns532.c, ns532.h: New Files. ns532 support. | |
1040 | ||
1041 | * config/mt-ns532: New File. ns532 support. | |
1042 | ||
1043 | * gprof.c: user register int i instead of defaulting the int. | |
1044 | Allows compilation with -Dregister= for debugging. | |
1045 | ||
1046 | * configure.in: Add ns532 support. | |
1047 | ||
15aca511 JL |
1048 | Thu Jun 23 11:22:41 1994 Jeff Law (law@snake.cs.utah.edu) |
1049 | ||
1050 | * Makefile.in (gprof): Depend on $(LIBS). | |
1051 | ||
c06e55d9 KR |
1052 | Fri May 27 12:24:57 1994 Ken Raeburn (raeburn@cujo.cygnus.com) |
1053 | ||
1054 | From binutils-2.4 release: | |
1055 | ||
1056 | Wed May 11 22:32:00 1994 DJ Delorie (dj@ctron.com) | |
1057 | ||
1058 | * configure.bat: [new] build makefile from makefile.in (dos) | |
1059 | * hertz.c: allow static HERTZ (msdos needs it) | |
1060 | * gprof.c: allow target to select "r" or "rb" for fopen | |
1061 | * gprof.c: ignore __gnu_compiled symbols | |
1062 | * i386.h: dfine FOPEN_RB to "rb" for dos. | |
1063 | ||
9cda8e3a BC |
1064 | Tue May 17 15:30:22 1994 E. Michael Smith (ems@cygnus.com) |
1065 | ||
1066 | * Makefile.in (.m.c:): Added .SUFFIXES : .m | |
1067 | so flat_bl.c would make from flat_bl.m file. | |
1068 | ||
dc2b222a KR |
1069 | Thu May 5 19:23:24 1994 Ken Raeburn (raeburn@cujo.cygnus.com) |
1070 | ||
1071 | * Makefile.in (install-info): Check for gprof.info in build dir, | |
1072 | fall back to srcdir. Depend on it. | |
1073 | ||
1074 | * gprof.h (TRUE, FALSE): Always use undef before defining them. | |
1075 | ||
4e8e5c4a JL |
1076 | Mon Apr 4 23:47:30 1994 Jeffrey A. Law (law@snake.cs.utah.edu) |
1077 | ||
5489fcc3 KR |
1078 | * Makefile.in (MY_MACHINE): Renamed from MACHINE to avoid losing |
1079 | makes (osf1) in which the value of MACHINE can not be changed. | |
1080 | * config/*.mt: Changed appropriately. | |
4e8e5c4a | 1081 | |
bd7fc39d ILT |
1082 | Wed Mar 30 16:12:40 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com) |
1083 | ||
1084 | * gprof.c (getsymtab): Change nosyms to long. Rename | |
1085 | get_symtab_upper_bound to bfd_get_symtab_upper_bound. Check for | |
1086 | errors from bfd_get_symtab_upper_bound and | |
1087 | bfd_canonicalize_symtab. | |
1088 | ||
4b8250bd JL |
1089 | Tue Mar 22 10:50:52 1994 Jeffrey A. Law (law@snake.cs.utah.edu) |
1090 | ||
1091 | * gprof.c (funcsymbol): Use bfd_get_symbol_info instead of | |
1092 | bfd_decode_symclass. | |
1093 | ||
1094 | Sun Mar 20 15:40:21 1994 Jeffrey A. Law (law@snake.cs.utah.edu) | |
4e85e79f JL |
1095 | |
1096 | * Makefile.in: Avoid bug in hpux sed. | |
1097 | ||
4fe2350b DZ |
1098 | Wed Dec 15 20:16:40 1993 david d `zoo' zuhn (zoo@andros.cygnus.com) |
1099 | ||
1100 | * gprof.texi (Invoking): add text about -v flag | |
1101 | ||
1102 | * gprof.1: add text about -v flag | |
1103 | ||
b4f476e9 DZ |
1104 | Wed Dec 8 16:55:06 1993 david d `zoo' zuhn (zoo@andros.cygnus.com) |
1105 | ||
1106 | * gprof.c (VERSION): defined a version macro, print the value | |
1107 | when the -v option is used | |
1108 | ||
b4a1e77b SC |
1109 | Tue Jul 6 10:11:56 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) |
1110 | ||
1111 | * Makefile.in: Install correctly. | |
1112 | ||
7ce122a2 DM |
1113 | Thu Jun 24 14:43:22 1993 David J. Mackenzie (djm@thepub.cygnus.com) |
1114 | ||
1115 | * gprof.c (main): Get whoami from argv, instead of hardcoding. | |
1116 | Use it in usage message. Split usage message to fit in 80 cols. | |
1117 | ||
92c7228d KR |
1118 | Sun Jun 20 20:58:02 1993 Ken Raeburn (raeburn@poseidon.cygnus.com) |
1119 | ||
1120 | * Makefile.in: Undo 15 June change. | |
1121 | ||
73fbbeea | 1122 | Wed Jun 16 12:54:53 1993 Steve Chamberlain (sac@phydeaux.cygnus.com) |
5489fcc3 | 1123 | |
73fbbeea SC |
1124 | * gmon.h, gprof.h: structs of chars used to hold external |
1125 | representations. | |
1126 | * gprof.c (getpfile, openpfile, readsamples): Swap data in using | |
1127 | new structures. | |
1128 | ||
c2ada801 | 1129 | Tue Jun 15 23:09:17 1993 Ken Raeburn (raeburn@cambridge.cygnus.com) |
f905eff4 KR |
1130 | |
1131 | * Makefile.in (.c.o): Look in ../include, not ../bfd, for bfd.h. | |
1132 | ||
263773ec DZ |
1133 | Mon Jun 14 16:22:59 1993 david d `zoo' zuhn (zoo at rtl.cygnus.com) |
1134 | ||
1135 | * Makefile.in: remove parentdir support | |
1136 | ||
7f2649bb PB |
1137 | Mon Jun 7 12:56:17 1993 Per Bothner (bothner@rtl.cygnus.com) |
1138 | ||
1139 | * Makefile.in (INCLUDES): Add -I../bfd for sysdep.h and bfd.h. | |
1140 | * configure.in: No longer need to configure to get sysdep.h. | |
1141 | ||
aab37f52 DZ |
1142 | Tue May 18 21:44:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) |
1143 | ||
1144 | * Makefile.in (install): should not depend on install-info | |
1145 | ||
8739c727 ILT |
1146 | Mon Apr 26 12:37:46 1993 Ian Lance Taylor (ian@cygnus.com) |
1147 | ||
7508b715 | 1148 | * gprof.h: Include ansidecl.h before sysdep.h. Undefine hz. |
8739c727 | 1149 | |
9d651373 PB |
1150 | Tue Apr 13 16:14:03 1993 Per Bothner (bothner@cygnus.com) |
1151 | ||
1152 | * M Makefile.in: Add -g to CFLAGS. | |
1153 | Ads LDFLAGS and use in place of CFLAGS where appropriate. | |
1154 | * configure.in: Make a sysdep.hlink in the same way other | |
1155 | bfd-based directories do. | |
1156 | * gprof.h (UNIT): Replace non-standard 'u_short' by 'unsigned | |
1157 | short'. | |
1158 | * gprof.h: #include sysdep.h instead of a bunch of stuff. | |
1159 | * gprof.c (main): Fix typo gproff->gprof. | |
1160 | ||
44c8c1d5 DZ |
1161 | Thu Mar 25 19:00:37 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) |
1162 | ||
1163 | * gprof.texi: add INFO-DIR-ENTRY | |
1164 | ||
80c8fd72 DZ |
1165 | Tue Mar 23 00:03:11 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) |
1166 | ||
1167 | * Makefile.in: add installcheck target | |
1168 | ||
33023c9c PB |
1169 | Sat Feb 27 18:17:10 1993 Per Bothner (bothner@rtl.cygnus.com) |
1170 | ||
1171 | * gprof.c (funcsymbol): Invert test for aflag. | |
1172 | ||
8a6e5b69 PB |
1173 | Thu Feb 25 16:01:50 1993 Per Bothner (bothner@rtl.cygnus.com) |
1174 | ||
1175 | * printgprof (xmalloc, xrealloc): Cast results of malloc | |
1176 | and realloc to PTR. | |
1177 | ||
2518bf37 JO |
1178 | Wed Feb 3 13:55:33 1993 Jeffrey Osier (jeffrey@fowanton.cygnus.com) |
1179 | ||
1180 | * Makefile.in: created info, install-info, dvi | |
1181 | ||
dedfbe49 DZ |
1182 | Wed Jan 6 00:58:09 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) |
1183 | ||
1184 | * Makefile.in: fix install rule for $(PROG) | |
1185 | ||
03c08660 ME |
1186 | Fri Oct 9 11:25:41 1992 Mark Eichin (eichin@cygnus.com) |
1187 | ||
5489fcc3 | 1188 | * gprof.1: updated SYNOPSIS to match actual behavior. |
03c08660 | 1189 | |
3d3e494e PB |
1190 | Mon Oct 5 17:50:16 1992 Per Bothner (bothner@cygnus.com) |
1191 | ||
1192 | * gen-c-prog.awk: New awk script, lightly changed from | |
1193 | previously deleted make-c-prog.awk. Converts a text file | |
1194 | to a c function that prints that text. | |
1195 | * flat_bl.m, fsf_callg_bl.m, bsd_callg_bl.m: New files. | |
1196 | Inputs to gen-c-prog.awk, containing text describing | |
1197 | gprof output. | |
1198 | * blurbs.c: Removed. Use *_bl.c instead. | |
1199 | * Makefile.in: Use gen-cprog.awk to generate *_bl.c files | |
1200 | from *_bl.m files. Also, improve *clean rules. | |
1201 | * printgprof.c (printgprof): Usw new function names from *_bl.c. | |
1202 | ||
1203 | ||
dc1d1ca5 PB |
1204 | Sun Aug 30 19:54:53 1992 Per Bothner (bothner@rtl.cygnus.com) |
1205 | ||
1206 | * gprof.h, gprof.c, printfgprof.c: Add support for two | |
1207 | output styles: The default is similar to the old FSF gprof, | |
1208 | while -T sets the variable bsd_style_output, which causes | |
1209 | output matching Berkeley's gprof. The biggest differences | |
1210 | are that with the FSF style output, the flat profile comes | |
1211 | before the call graph; numbers come before explanations; | |
1212 | and there is less gratuitous white space. | |
1213 | * gprof.h, gprof.c, printfgprof.c: New discard_underscores | |
1214 | variable causes discarding of initial underscores when | |
1215 | printing symbol names. It is set unless there is a "main" | |
1216 | symbol (without an underscore). | |
1217 | * printfgprof.c: New function printnameonly(), called | |
1218 | by printname(). It handles stripping of initial '_', | |
1219 | as well as C++ name-demangling. | |
1220 | * gprof.callg, gprof.flat, make-c-prog.awk: Removed. | |
1221 | It is just as convenient to edit blurbs.c directly. | |
1222 | * Makefile.in: Removed rule for making blurbs.c. | |
1223 | * blurbs.c: This is now a true source file (as opposed | |
1224 | to being generated from gprof.callg and gprof.flat). | |
1225 | Change style to use one long string literal, instead of | |
1226 | one literal per output line. Add FSF-style blurb for call graph. | |
1227 | ||
3c9c3ce3 ILT |
1228 | Wed Aug 19 14:36:39 1992 Ian Lance Taylor (ian@cygnus.com) |
1229 | ||
1230 | * Makefile.in: always create installation directories. | |
1231 | ||
4be49df5 ME |
1232 | Wed Aug 12 15:14:14 1992 Mark Eichin (eichin@cygnus.com) |
1233 | ||
c3193400 | 1234 | * Makefile.in: change ${MACHINE} to $(MACHINE). |
4be49df5 | 1235 | |
ea2b679c DZ |
1236 | Sun Jul 19 17:34:01 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) |
1237 | ||
1238 | * Makefile.in: removed installation of the now useless | |
1239 | call.{flag,callg} files. | |
1240 | ||
1241 | * gprof.1: now uses the standard man macros instead of the new BSD | |
1242 | mandoc macros. | |
1243 | ||
a4ea3274 JG |
1244 | Sun Jul 12 19:06:00 1992 John Gilmore (gnu at cygnus.com) |
1245 | ||
5d32c952 JG |
1246 | * configure.in: Remove host section, expand target section. |
1247 | * config/mt-{tahoe,vax}: Add, to match existing support files. | |
1248 | * config/tmake-*: Remove leftover crud. | |
1249 | ||
a4ea3274 JG |
1250 | * blurbs.c: New file, created from gprof.flat and gprof.callg by |
1251 | * make-c-prog.awk: which processes text files into C programs. | |
1252 | * printgprof.c (flatprofheader, gprofheader): Call new functions | |
1253 | to print blurbs. | |
1254 | (printblurb): Remove. | |
1255 | * Makefile.in: Infrastructure to build blurbs. | |
1256 | * pathnames.h: has been removed. Gprof now has no filename | |
1257 | dependencies in it. | |
1258 | * gprof.c: Lint. | |
1259 | ||
1260 | Sat Jul 11 18:07:21 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com) | |
1261 | ||
1262 | * Makefile.in: define man1dir and install the man page | |
1263 | ||
1264 | Fri Jul 10 21:14:08 1992 david d `zoo' zuhn (zoo@cygnus.com) | |
1265 | ||
1266 | * Makefile.in: added dummy info and install-info targets | |
1267 | ||
ba79f5fa ME |
1268 | Thu Jun 4 11:34:02 1992 Mark Eichin (eichin at cygnus.com) |
1269 | ||
1270 | * lookup.c: fixed fencepost in nllookup and added dbg_nllookup for | |
1271 | help in debugging the problem (with -DDEBUG) | |
1272 | * gprof.c: symbol values are now real values, don't add the vma | |
1273 | anymore. (done for solaris; should verify this on other platforms) | |
1274 | * ChangeLog: created. |