mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-02 06:54:54 +00:00
add -v flag to gprof (print version number)
This commit is contained in:
parent
7387c35523
commit
b4f476e939
@ -1,3 +1,8 @@
|
||||
Wed Dec 8 16:55:06 1993 david d `zoo' zuhn (zoo@andros.cygnus.com)
|
||||
|
||||
* gprof.c (VERSION): defined a version macro, print the value
|
||||
when the -v option is used
|
||||
|
||||
Tue Jul 6 10:11:56 1993 Steve Chamberlain (sac@phydeaux.cygnus.com)
|
||||
|
||||
* Makefile.in: Install correctly.
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user