Changeset 609 for branches/GNU/src/binutils/gprof/gprof.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/gprof/gprof.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 1 /* 2 * Copyright (c) 1983, 199 8, 2001 Regents of the University of California.3 * All rights reserved.2 * Copyright (c) 1983, 1993, 1998, 2001, 2002 3 * The Regents of the University of California. All rights reserved. 4 4 * 5 * Redistribution and use in source and binary forms are permitted 6 * provided that: (1) source distributions retain this entire copyright 7 * notice and comment, and (2) distributions including binaries display 8 * the following acknowledgement: ``This product includes software 9 * developed by the University of California, Berkeley and its contributors'' 10 * in the documentation or other materials provided with the distribution 11 * and in all advertising materials mentioning features or use of this 12 * software. Neither the name of the University nor the names of its 13 * contributors may be used to endorse or promote products derived 14 * from this software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright 11 * notice, this list of conditions and the following disclaimer in the 12 * documentation and/or other materials provided with the distribution. 13 * 3. Neither the name of the University nor the names of its contributors 14 * may be used to endorse or promote products derived from this software 15 * without specific prior written permission. 16 * 17 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 18 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 19 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 18 28 */ 19 #include "getopt.h" 29 20 30 #include "libiberty.h" 21 31 #include "gprof.h" 32 #include "search_list.h" 33 #include "source.h" 34 #include "symtab.h" 22 35 #include "basic_blocks.h" 23 36 #include "call_graph.h" … … 28 41 #include "hertz.h" 29 42 #include "hist.h" 30 #include "source.h"31 43 #include "sym_ids.h" 32 44 #include "demangle.h" 45 #include "getopt.h" 46 47 static void usage PARAMS ((FILE *, int)) ATTRIBUTE_NORETURN; 48 int main PARAMS ((int, char **)); 33 49 34 50 const char *whoami; … … 43 59 int output_style = 0; 44 60 int output_width = 80; 45 b oolbsd_style_output = FALSE;46 b ooldemangle = TRUE;47 b ooldiscard_underscores = TRUE;48 b oolignore_direct_calls = FALSE;49 b oolignore_static_funcs = FALSE;50 b oolignore_zeros = TRUE;51 b oolline_granularity = FALSE;52 b oolprint_descriptions = TRUE;53 b oolprint_path = FALSE;54 b oolignore_non_functions = FALSE;61 bfd_boolean bsd_style_output = FALSE; 62 bfd_boolean demangle = TRUE; 63 bfd_boolean discard_underscores = TRUE; 64 bfd_boolean ignore_direct_calls = FALSE; 65 bfd_boolean ignore_static_funcs = FALSE; 66 bfd_boolean ignore_zeros = TRUE; 67 bfd_boolean line_granularity = FALSE; 68 bfd_boolean print_descriptions = TRUE; 69 bfd_boolean print_path = FALSE; 70 bfd_boolean ignore_non_functions = FALSE; 55 71 File_Format file_format = FF_AUTO; 56 72 57 b oolfirst_output = TRUE;73 bfd_boolean first_output = TRUE; 58 74 59 75 char copyright[] = … … 141 157 142 158 static void 143 DEFUN (usage, (stream, status), FILE * stream AND int status) 159 usage (stream, status) 160 FILE *stream; 161 int status; 144 162 { 145 163 fprintf (stream, _("\ … … 165 183 166 184 int 167 DEFUN (main, (argc, argv), int argc AND char **argv) 185 main (argc, argv) 186 int argc; 187 char **argv; 168 188 { 169 189 char **sp, *str; … … 173 193 #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) 174 194 setlocale (LC_MESSAGES, ""); 195 #endif 196 #if defined (HAVE_SETLOCALE) 197 setlocale (LC_CTYPE, ""); 175 198 #endif 176 199 bindtextdomain (PACKAGE, LOCALEDIR); … … 490 513 sym_id_add (*sp, EXCL_TIME); 491 514 sym_id_add (*sp, EXCL_GRAPH); 492 #ifdef __alpha__493 515 sym_id_add (*sp, EXCL_FLAT); 494 #endif495 516 } 496 517 -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.