diff options
author | David D. Zuhn <zoo@cygnus> | 1993-12-16 04:14:45 +0000 |
---|---|---|
committer | David D. Zuhn <zoo@cygnus> | 1993-12-16 04:14:45 +0000 |
commit | b4f476e939ee3cdb85fbc05b531f11049baaa6d8 (patch) | |
tree | 1381b513190cf7281aa443bd14113543b7b60486 /gprof/gprof.c | |
parent | 7387c3552331e04e4e806b71275b7c1663b9a7cf (diff) | |
download | gdb-b4f476e939ee3cdb85fbc05b531f11049baaa6d8.zip gdb-b4f476e939ee3cdb85fbc05b531f11049baaa6d8.tar.gz gdb-b4f476e939ee3cdb85fbc05b531f11049baaa6d8.tar.bz2 |
add -v flag to gprof (print version number)
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r-- | gprof/gprof.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c index 063fc80..e1c653c 100644 --- a/gprof/gprof.c +++ b/gprof/gprof.c @@ -17,6 +17,8 @@ * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ +#define VERSION "0.0" + #ifndef lint char copyright[] = "@(#) Copyright (c) 1983 Regents of the University of California.\n\ @@ -109,6 +111,10 @@ main(argc, argv) case 'T': /* "Traditional" output format */ bsd_style_output = 1; break; + case 'v': + printf ("gprof version %s\n", VERSION); + exit(0); + break; case 'z': zflag = TRUE; break; |