Commit graph

44 commits

Author SHA1 Message Date
David D. Zuhn
dedfbe49b9 fix install rule 1993-01-06 09:00:02 +00:00
K. Richard Pixley
017349fbcf recording file death 1992-12-08 05:21:19 +00:00
Mark Eichin
03c0866031 Eckhard Rueggeberg throught gprof didn't work because the man page was wrong.
The SYNOPSIS now matches the rest of the man page.
1992-10-09 18:34:33 +00:00
Per Bothner
3d3e494e4c * gen-c-prog.awk: New awk script, lightly changed from
previously deleted make-c-prog.awk.  Converts a text file
	to a c function that prints that text.
	* flat_bl.m, fsf_callg_bl.m, bsd_callg_bl.m:  New files.
	Inputs to gen-c-prog.awk, containing text describing
	gprof output.
	* blurbs.c:  Removed.  Use *_bl.c instead.
	* Makefile.in: Use gen-cprog.awk to generate *_bl.c files
	from *_bl.m files.  Also, improve *clean rules.
	* printgprof.c (printgprof):  Usw new function names from *_bl.c.
1992-10-06 00:57:18 +00:00
Per Bothner
dc1d1ca5e8 * gprof.h, gprof.c, printfgprof.c: Add support for two
output styles:  The default is similar to the old FSF gprof,
	while -T sets the variable bsd_style_output, which causes
	output matching Berkeley's gprof.  The biggest differences
	are that with the FSF style output, the flat profile comes
	before the call graph; numbers come before explanations;
	and there is less gratuitous white space.
	* gprof.h, gprof.c, printfgprof.c:  New discard_underscores
	variable causes discarding of initial underscores when
	printing symbol names.  It is set unless there is a "main"
	symbol (without an underscore).
	* printfgprof.c:  New function printnameonly(), called
	by printname().  It handles stripping of initial '_',
	as well as C++ name-demangling.
	* gprof.callg, gprof.flat, make-c-prog.awk:  Removed.
	It is just as convenient to edit blurbs.c directly.
	* Makefile.in:  Removed rule for making blurbs.c.
	* blurbs.c:  This is now a true source file (as opposed
	to being generated from gprof.callg and gprof.flat).
	Change style to use one long string literal, instead of
	one literal per output line.  Add FSF-style blurb for call graph.
1992-08-31 03:34:15 +00:00
Mark Eichin
a7a2ea6874 correct use of bfd symbols 1992-08-27 21:19:27 +00:00
Ian Lance Taylor
3c9c3ce339 Brought forward from p3:
Wed Aug 19 14:36:39 1992  Ian Lance Taylor  (ian@cygnus.com)

	* Makefile.in: always create installation directories.
1992-08-19 21:38:00 +00:00
Mark Eichin
c319340056 per explanation from zoo, back out DESTDIR change. 1992-08-12 23:02:31 +00:00
Mark Eichin
4be49df5b7 * Makefile.in: change ${MACHINE} to $(MACHINE), add $(DESTDIR) to
bin install rule.
1992-08-12 22:16:34 +00:00
David D. Zuhn
ea2b679c90 don't install gprof.{callg,flat}, install the man page, get the new
man page from progressive (the one that uses -man macros)
1992-07-20 00:48:14 +00:00
Mark Eichin
f7dfc7e2a6 ... and make it return the *right* value when it goes out of bounds. 1992-07-14 22:47:46 +00:00
Mark Eichin
b974fbff9c leave fencepost condition *completely* open-ended. Closes 1286. 1992-07-14 22:33:02 +00:00
John Gilmore
028fe6367a Lint 1992-07-13 11:59:22 +00:00
John Gilmore
8e2d760b76 * config/mt-{tahoe,vax}: Add, to match existing support files.
* config/tmake-*:  Remove leftover crud.
1992-07-13 02:54:30 +00:00
John Gilmore
5d32c9524e * configure.in: Remove host section, expand target section. 1992-07-13 02:54:10 +00:00
John Gilmore
a4ea327414 Oops 1992-07-13 02:25:32 +00:00
John Gilmore
9388476b43 * blurbs.c: New file, created from gprof.flat and gprof.callg by
* make-c-prog.awk:  which processes text files into C programs.
	* printgprof.c (flatprofheader, gprofheader):  Call new functions
	to print blurbs.
	(printblurb):  Remove.
	* Makefile.in:  Infrastructure to build blurbs.
	* pathnames.h:  has been removed.  Gprof now has no filename
	dependencies in it.
	* gprof.c:  Lint.

Sat Jul 11 18:07:21 1992  david d `zoo' zuhn  (zoo at cirdan.cygnus.com)

	* Makefile.in: define man1dir and install the man page

Fri Jul 10 21:14:08 1992  david d `zoo' zuhn (zoo@cygnus.com)

	* Makefile.in: added dummy info and install-info targets
1992-07-13 02:24:24 +00:00
Mark Eichin
a0d48c83a3 restore some old code to punt symbols which are BSF_LOCAL (needed for Solaris,
should be correct for anything else.)
1992-07-01 22:52:47 +00:00
Mark Eichin
6442bb7727 change pathnames from /usr/share/misc to /usr/local/lib. They should *really*
get built by configure, someday.
1992-06-04 19:36:37 +00:00
Mark Eichin
f4a0f42d8a add real install, and some more normal paths. 1992-06-04 19:10:49 +00:00
Mark Eichin
ba79f5fa08 Thu Jun 4 11:34:02 1992 Mark Eichin (eichin at cygnus.com)
* lookup.c: fixed fencepost in nllookup and added dbg_nllookup for
	help in debugging the problem (with -DDEBUG)
	* gprof.c: symbol values are now real values, don't add the vma
	anymore. (done for solaris; should verify this on other platforms)
	* ChangeLog: created.
1992-06-04 18:36:56 +00:00
Mark Eichin
1221d638c1 added srcdir=. so that configure puts in a value
added explicit foo.o:foo.c lines since Solaris has the same VPATH bug that
	SunOs 4.1.1 does...
1992-06-04 07:34:23 +00:00
Mark Eichin
9138a2e2f6 Makefile.in: .c.o rule needed, default one (under solaris) ignores CFLAGS
Makefile: it shouldn't be under cvs; given that it is, fix it too
arcs.c: fprintf used where printf should have been.
lookup.c: misdeclared calloc; use a cast instead.
1992-06-02 17:22:47 +00:00
Sean Eric Fagan
92f73b4228 Added the file. 1992-04-07 10:04:26 +00:00
Sean Eric Fagan
46f88c1138 More cleanups for gprof, especially with the '386 target. 1992-03-27 22:11:14 +00:00
K. Richard Pixley
a215e6f930 This is the third and final batch of makefile changes this round.
These are Makefiles that do not participate in progressive yet have
still been brought current.


* added exec_prefix
* default bindir now exec_prefix/bin
* default libdir now exec_prefix/lib
* default mandir now prefix/man
* default infodir now prefix/info
* added oldincludedir, default NULL
* remove all traces of the old -subdirs and -namesubdir support,
  including code, for loops, and all subdir/unsubdir stuff.
* remove old style staging targets {de-}stage[1234], comparison,
  bootstrapN, from all but the bootstrappable tools.
* added check targets.
* removed any "Last Mod" lines.
* forced copyrights to '92 and shifted some from Cygnus to FSF.
* added tooldir and program_prefix where needed.
* updated texinfo and man pages, removed all references to multiple
  hosts or targets.
1992-03-08 09:11:19 +00:00
Sean Eric Fagan
921bc43581 Routines for currently-unsupported architectures. findcall() just returns
in dummy.c, and dummy.h mostly contains copyright.  (These were originally
the hp300 files from the UCBerkeley net2 tape.)
1992-03-06 12:01:13 +00:00
Sean Eric Fagan
09ff0e74d9 For currently-unsupported machines. Causes a null-routine to be called
for some of the subroutine tracing stuff.
1992-03-06 11:59:10 +00:00
Sean Eric Fagan
2c89ba265c Fixed a typo in an if statement -- gcc caught it ('=' vs. '=='). 1992-03-06 11:57:22 +00:00
Sean Eric Fagan
77c9b2c3e2 Fixed bugs (both typos and algorithmic) bugs. It now matches native gprof's
on both the sparc (SunOS) and Mach386 systems, more or less.  (The differences
are at least partially due to what I think might be bugs in the native
gprof.)
1992-03-06 11:56:31 +00:00
Sean Eric Fagan
89a471fe57 Fixed some serious bugs in the configuration of gprof. It now works with
the latest bfd and company.
1992-03-06 11:54:37 +00:00
Sean Eric Fagan
a11d7ba33e Updating gprof for latest bfd stuff, and making configure work. 1992-02-11 23:15:03 +00:00
Sean Eric Fagan
5b15f3ad7a Initial revision 1991-11-08 01:17:18 +00:00
K. Richard Pixley
f1eb48b62e no more configure on which to depend 1991-10-02 07:24:45 +00:00
Sean Eric Fagan
d5db699e71 Initial revision 1991-07-24 19:40:36 +00:00
Sean Eric Fagan
797ecb38c2 Initial revision 1991-07-23 22:14:05 +00:00
Sean Eric Fagan
c98f0ae5a8 Initial revision 1991-07-23 19:09:22 +00:00
Sean Eric Fagan
5f630bb0e2 Put in a check to make sure symbols have names; if there is no name, then
the symbol is not a function (I assume).
1991-07-22 20:35:30 +00:00
Sean Eric Fagan
811e3c6a86 Made gprof use bfd instead. This is the first step in allowing cross-hosted
gprof use.
1991-07-22 19:33:46 +00:00
Sean Eric Fagan
39ada6fced Added bfd support to the makefile. 1991-07-22 19:15:06 +00:00
Sean Eric Fagan
2aed990cf0 Fixed a typo (no '/' before a '*' in a comment) 1991-07-22 18:21:14 +00:00
Sean Eric Fagan
dfedb39a5c Fixed a stupid error (used '+=' instead of '='). 1991-07-19 22:01:37 +00:00
Sean Eric Fagan
cc5697d7a4 Initial revision 1991-07-19 22:00:45 +00:00
Sean Eric Fagan
3d6c650189 Initial revision 1991-07-18 20:19:17 +00:00