aboutsummaryrefslogtreecommitdiff
path: root/gprof/gprof.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-03-14 03:14:56 +0000
committerAlan Modra <amodra@gmail.com>2001-03-14 03:14:56 +0000
commit0eee5820aa0f68b2283b40f5a3fb09aefcfb1575 (patch)
tree849fb8ae327bfed38a9afe6c45bed35e4a96703a /gprof/gprof.c
parent04847a4d3e1cf5c5c811f8fbbdeeca498de51dc4 (diff)
downloadgdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.zip
gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.tar.gz
gdb-0eee5820aa0f68b2283b40f5a3fb09aefcfb1575.tar.bz2
David Mosberger's fixes for cross compiling gprof.
Diffstat (limited to 'gprof/gprof.c')
-rw-r--r--gprof/gprof.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gprof/gprof.c b/gprof/gprof.c
index 2ceafd5..2ed37a3 100644
--- a/gprof/gprof.c
+++ b/gprof/gprof.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 1983, 1998 Regents of the University of California.
+ * Copyright (c) 1983, 1998, 2001 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms are permitted
@@ -429,18 +429,18 @@ This program is free software. This program has absolutely no warranty.\n"));
if (optarg != NULL)
{
enum demangling_styles style;
-
+
style = cplus_demangle_name_to_style (optarg);
- if (style == unknown_demangling)
+ if (style == unknown_demangling)
{
fprintf (stderr,
_("%s: unknown demangling style `%s'\n"),
whoami, optarg);
xexit (1);
}
-
+
cplus_demangle_set_style (style);
- }
+ }
break;
case OPTION_NO_DEMANGLE:
demangle = FALSE;