summaryrefslogtreecommitdiff
path: root/gprof
Commit message (Collapse)AuthorAgeFilesLines
* * gprof.texi (Symspecs): Mention that you have to add anyIan Lance Taylor1998-12-072-17/+27
| | | | underscore yourself when naming a symbol.
* Mon Nov 2 15:05:33 1998 Geoffrey Noer <noer@cygnus.com>Geoffrey Noer1998-11-023-162/+611
| | | | | * configure.in: detect cygwin* instead of cygwin32* * configure: regenerate
* Avoid some overflow cases:Ian Lance Taylor1998-08-1219-86/+110
| | | | | | | | | | | | * basic_blocks.h (bb_min_calls): Change to unsigned long. * call_graph.h (cg_tally): Change count parameter to unsigned long. * cg_arcs.h (Arc): Change count field to unsigned long. (arc_add): Change count parameter to unsigned long. * source.h (Source_File): Change ncalls field to unsigned long. * symtab.h (Sym): Change fields ncalls, bb_calls, and cg.self_calls to unsigned long. * Many files: Update accordingly.
* * configure, Makefile.in, aclocal.m4: Rebuild with current tools.Ian Lance Taylor1998-08-123-229/+340
|
* (BSD44_FORMAT): Define for cygwin32, win32, mingw32Stan Cox1998-07-163-2/+9
|
* rebuildIan Lance Taylor1998-06-121-13/+12
|
* * po/Make-in (all-yes): If maintainer mode, depend on .pot file.Tom Tromey1998-06-122-2/+7
| | | | ($(PACKAGE).pot): Unconditionally depend on POTFILES.
* * po/Make-in (install-info): New target.Jeff Law1998-05-112-0/+5
|
* remove \f from internationalized stringIan Lance Taylor1998-05-071-1/+2
|
* fix xgettext invocationIan Lance Taylor1998-05-061-1/+1
|
* * gprof.h (_): Undefine BFD's version.Tom Tromey1998-05-062-0/+6
|
* * gprof.c (main): Conditionally call setlocale.Tom Tromey1998-04-293-17/+30
| | | | | * gprof.h: Include <locale.h> if HAVE_LOCALE_H. (LC_MESSAGES): Now can be defined even when ENABLE_NLS.
* Fixed xgettext invocation in .Sanitize filesTom Tromey1998-04-291-2/+1
|
* change core.c to corefile.cIan Lance Taylor1998-04-281-9/+9
|
* * corefile.c: Rename from core.c.Ian Lance Taylor1998-04-2818-28/+39
| | | | | | | | | | * corefile.h: Rename from core.h. * Many .c files: Include corefile.h rather than core.h. * Makefile.am (sources): Change core.c to corefile.c. (noinst_HEADERS): Change core.h to corefile.h. ($(OBJECTS)): Depend upon corefile.h rather than core.h. (corefile.o): Rename target from core.o, depend upon corefile.c. * Makefile.in, po/POTFILES.in: Rebuild.
* * configure.in: Change version number to 2.9.4Ian Lance Taylor1998-04-273-2/+7
| | | | * configure: Rebuild.
* If xgettext fails, make Sanitize failTom Tromey1998-04-231-1/+2
|
* .Sanitize now re-computes gettext-related filesTom Tromey1998-04-221-0/+23
|
* * po/Make-in (MKINSTALLDIRS): Don't look in $(top_srcdir).Tom Tromey1998-04-222-1/+5
|
* tipoIan Lance Taylor1998-04-222-3/+3
|
* fix sanitization for gettext changesIan Lance Taylor1998-04-222-7/+53
|
* * gprof.h: Added includes and defines for gettext.Tom Tromey1998-04-2222-242/+3523
| | | | | | | | | | | | | | | * configure.in (ALL_LINGUAS): New macro. Call CY_GNU_GETTEXT. Create po/Makefile.in and po/Makefile. * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT, HAVE_STPCPY, HAVE_LC_MESSAGES): Define. * gprof.c (main): Call setlocale, bindtextdomain, textdomain. * Makefile.am (SUBDIRS): New macro. (INCLUDES): Look in intl dirs for headers. Define LOCALEDIR. (gprof_DEPENDENCIES): Added INTLDEPS. (gprof_LDADD): Added INTLLLIBS. (POTFILES): New macro. (po/POTFILES.in): New target. * Many files: Wrap user-visible strings with gettext invocation.
* From hjl@lucon.org <H.J. Lu>:Ian Lance Taylor1998-04-073-0/+10
| | | | | * Makefile.am (diststuff): New target. * Makefile.in: Rebuild.
* * configure.in: Set version to 2.9.1.Ian Lance Taylor1998-03-303-2/+9
| | | | * configure: Rebuild.
* Fix some gcc -Wall warnings:Ian Lance Taylor1998-03-2910-24/+55
| | | | | | | | | | | | | | | | | | | | | | | | * cg_arcs.c (num_cycles): Change to unsigned int. (numarcs): Likewise. (arc_add): Change maxarcs to unsigned int. (cg_assemble): Change index to unsigned int. * cg_arcs.h (num_cycles, numarcs): Update declarations. * cg_print.c (cg_print): Change index to unsigned int. (cg_print_index): Change index, nnames, todo, i, and j to unsigned int. (cg_print_file_ordering): Change symbol_count and index2 to unsigned int. * core.c (symbol_map_count): Change to unsigned int. (core_create_function_syms): Change j to unsigned int. (core_create_line_syms): Add cast to avoid warning. * hist.c (hist_assign_samples): Change j to unsigned int. (hist_print): Change index to unsigned i nt. Add cast to avoid warning. * sym_ids.c (parse_spec): Add casts to avoid warning. * symtab.c (symtab_finalize): Change j to unsigned int. (sym_lookup): Update printf format strings. * symtab.h (Sym_Table): Change len to unsigned int. * tahoe.c (tahoe_reladdr): Add casts to avoid warnings.
* Add --demangle and --no-demangle options:Ian Lance Taylor1998-03-255-3/+42
| | | | | | | | | | | | * gprof.h (demangle): Declare. * gprof.c (demangle): New global variable. (OPTION_DEMANGLE, OPTION_NO_DEMANGLE): Define. (long_options): Add "demangle" and "no-demangle". (usage): Mention --demangle and --no-demangle. (main): Handle OPTION_DEMANGLE and OPTION_NO_DEMANGLE. * utils.c (print_name_only): Only demangle symbol name if demangle is true. * gprof.texi (Output Options): Document new options.
* * Makefile.in: Rebuild with automake 1.2e.Ian Lance Taylor1998-03-214-243/+361
| | | | * aclocal.m4, configure: Rebuild with libtool 1.2.
* * gprof.c (usage): Update bug-gnu-utils address.Ian Lance Taylor1998-02-122-1/+5
|
* * configure, aclocal.m4: Rebuild with new libtool.Ian Lance Taylor1998-02-073-67/+53
|
* * alpha.c (alpha_Instruction): Use int, not signed.Ian Lance Taylor1998-02-062-2/+6
|
* * core.c (core_init): Adding missing "break".Jeff Law1998-02-062-0/+5
|
* * configure, Makefile.in, aclocal.m4: Rebuild with new libtool.Ian Lance Taylor1998-02-054-115/+266
|
* Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>Ian Lance Taylor1998-02-045-2/+43
| | | | | | * bbconv.pl: New file. * Makefile.am (EXTRA_DIST): Add bbconv.pl. * Makefile.in: Rebuild.
* Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>Ian Lance Taylor1998-02-042-201/+1119
| | | | | * gprof.texi: Extensive additions to document all arguments and output formats.
* Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>Ian Lance Taylor1998-02-047-76/+248
| | | | | | | | | | | | | | | | | | | | | | | | | | * symtab.c (symtab_finalize): Prefer function symbols over line symbols. (dbg_sym_lookup): Correct debugging messages. * gprof.c (main): --sum implies --line. * cg_print.c (cg_print): When doing line by line profiling, don't use a non-function as a main listing item. * call_graph.c (cg_tally): When using line by line profiling, use the function symbol as the child. * symtab.h (NBBS): Define. (Sym): Add bb_addr and bb_calls fields. * basic_blocks.c (bb_read_rec): Save multiple basic blocks per symbol. (bb_write_blocks): Adjust for multiple basic blocks per symbol. (print_exec_counts): Don't check whether a symbol is the start of a basic block. Print all basic blocks for a symbol. (annotate_with_count): Rewrite to print all basic block counts and to pay attention to width argument. (print_annotated_source): Don't check whether symbol is the start of a basic block.
* Tue Feb 3 14:25:25 1998 Brent Baccala <baccala@freesoft.org>Ian Lance Taylor1998-02-0329-639/+522
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make it possible to build a cross gprof, although a few cases are still not handled: * configure.in: Don't set MY_TARGET. * gprof.h: Don't include MACHINE_H. Don't define FOPEN_RB or FOPEN_WB; just get them from sysdep.h. * core.h (min_insn_size, offset_to_code): Declare. * core.c (MIN_INSN_SIZE): Don't define. (min_insn_size, offset_to_code): New variables. (core_init): Initialize min_insn_size and offset_to_code. (find_call): New function. (core_create_line_syms): Don't use min_dist. Set is_static in pass 2. * hist.c (UNITS_TO_CODE): Define. * gprof.c (default_excluded_list): Add "__mcount_internal". * gmon.h: Change TARGET_alpha to __alpha__. * hertz.h: Ifdef MACH, define hertz as HZ. * alpha.c (alpha_Instruction): Rename from Instruction. Change all references. (alpha_find_call): Rename from find_call. * alpha.h: Remove. * dummy.c, dummy.h: Remove. * i386.c (i386_iscall): Rename from iscall. Change all references. Check for call instruction, not jump or lcall. (i386_find_call): Rename from find_call. Correct for VMA. Correct call destination computation. Don't dereference symbol if it is NULL. * i386.h: Remove. * ns532.c, ns532.h: Remove. * sparc.c (CALL): Define. (sparc_find_call): Rename from find_call. * sparc.h: Remove. * tahoe.c: Include cg_arcs.h, core.h, hist.h, and symtab.h. Don't include time_host.h. (CALLF, PC): Define. (enum tahoe_opermodes, tahoe_operandenum): Define. Rename all references to opermodes or operandenum to these. (tahoe_operandmode): Rename from operandmode. Call abort if switch does not return. (tahoe_operandname): Rename from operandname. Call abort if switch does not return. (tahoe_operandlength): Rename from operandlength. Call abort if switch does not return. (tahoe_reladdr): Rename from reladdr. (tahoe_find_call): Rename from find_call. Use core_text_space rather than textspace. * tahoe.h: Remove. * vax.c (CALLS, PC): Define. (enum opermodes, operandenum, struct modebyte): Define. (vax_operandmode): Rename from operandmode. Call abort if switch does not return. (vax_operandname): Rename from operandname. Call abort if switch does not return. (vax_operandlength): Rename from operandlength. Call abort if switch does not return. (vax_reladdr): Rename from reladdr. (vax_find_call): Rename from find_call. * vax.h: Remove. * Makefile.am (AUTOMAKE_OPTIONS): Set to cygnus. (MY_TARGET): Remove. (INCLUDES): Remove -DTARGET_$(MY_TARGET) and -DMACHINE_H= \"$(MY_TARGET).h\". (gprof_SOURCES): Add i386.c, alpha.c, vax.c, tahoe.c, sparc.c. (gprof_DEPENDENCIES): Remove $(MY_TARGET).o. (gprof_LDADD): Likewise. (noinst_HEADERS): Remove alpha.h, i386.h, ns532.h, sparc.h, tahoe.h, vax.h, dummy.h. (EXTRA_DIST): Remove alpha.c, i386.c, ns532.c, sparc.c, tahoe.c, vax.c, dummy.c. ($(OBJECTS)): Don't depend upon $(MY_TARGET).h. ($(MY_TARGET).o): Remove target. (i386.o, alpha.o, vax.o, tahoe.o, sparc.o): New targets. * configure, Makefile.in, aclocal.m4: Rebuild.
* tipoesIan Lance Taylor1998-01-221-5/+5
|
* * core.c (core_sym_class): Treat weak symbols as text symbols.Ian Lance Taylor1997-12-292-0/+12
| | | | From Dean Gaudet <dgaudet@arctic.org>.
* * aclocal.m4: Rebuild with new libtool.Ian Lance Taylor1997-09-244-9/+15
| | | | | * Makefile.in: Rebuild with current automake. * configure: Rebuild.
* sanitization fixes. typoes, missing fences, "start" instead of "end", etc.Felix Lee1997-09-181-1/+1
|
* Add missing end itemize.Jeff Law1997-09-041-0/+1
|
* * configure.in: Change version number to 2.8.2. CallIan Lance Taylor1997-08-0912-339/+867
| | | | | | | | | | | | | | | | | | AM_PROG_LIBTOOL. Remove shared library handling; now handled by libtool. Add AM_CONFIG_HEADER. Change AC_PROG_INSTALL to AM_PROG_INSTALL. Add AM_EXEEXT. * Makefile.am (LINK): Remove. (gprof_LDFLAGS): Remove (gprof_DEPENDENCIES): Change libbfd.a to libbfd.la. (gprof_LDADD): Likewise. ($(OBJECTS)): Depend upon gconfig.h and ../bfd/config.h. * gprof.h: Undefine PACKAGE and VERSION after including BFD sysdep.h file, then include new gconfig.h file. * gprof.c (VERSION): Don't define. * acconfig.h: New file. * stamp-h.in: New file. * gconfig.in: New file, created by autoheader. * Makefile.in, configure, aclocal.m4: Rebuild.
* finish upgrade to automake 1.2Ian Lance Taylor1997-06-301-7/+3
|
* * aclocal.m4, configure, Makefile.in: Rebuild with automake 1.2.Ian Lance Taylor1997-06-294-110/+74
|
* * Makefile.am (INCLUDES): Add -DDEBUG.Ian Lance Taylor1997-06-163-31/+44
| | | | * Makefile.in: Rebuild.
* Change to use automake:Ian Lance Taylor1997-04-157-241/+1076
| | | | | | | | | * Makefile.am: New file. * configure.in: Run AM_INIT_AUTOMAKE, AM_MAINTAINER_MODE, and AM_CYGWIN32. * aclocal.m4: New file, created by aclocal. * Makefile.in: Replace with file created by automake --cygnus. * configure: Rebuild.
* * gprof.c (VERSION): Define as "2.8.1".Ian Lance Taylor1997-04-032-1/+7
|
* * gprof.c (main): Correct copyright message.Ian Lance Taylor1997-03-272-3/+6
|
* * Makefile.in (.c.o): Define TARGET_$(MY_TARGET) when compiling.Ian Lance Taylor1997-03-243-8/+23
| | | | | * gmon.h: Use bytes counts rather than sizeof in struct raw_phdr and struct raw_arc.
* Mon Mar 17 10:54:47 1997 David Mosberger-Tang <davidm@azstarnet.com>Ian Lance Taylor1997-03-172-0/+6
| | | | | * cg_arcs.c (arc_add): memset() newly alloced arc to ensure all fields are initialized with 0.