aboutsummaryrefslogtreecommitdiff
path: root/gprof/hist.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2009-09-25 09:57:50 +0000
committerNick Clifton <nickc@redhat.com>2009-09-25 09:57:50 +0000
commitc34f4fc672e56b1bcd89a108e2b799437ce2241a (patch)
tree0a1bce7cfcd6d7a2b380743fa26f263271848364 /gprof/hist.h
parentb7c313290aec759532d0f6f93b594b79c9059fea (diff)
downloadgdb-c34f4fc672e56b1bcd89a108e2b799437ce2241a.zip
gdb-c34f4fc672e56b1bcd89a108e2b799437ce2241a.tar.gz
gdb-c34f4fc672e56b1bcd89a108e2b799437ce2241a.tar.bz2
PR 10656
* readelf.c: Remove duplicate declaration of variable do_wide. * dwarf.h: Add export of do_wide. * hist.h: Move declaration of histograms and num_histograms variables from here to... * hist.c: ...here.
Diffstat (limited to 'gprof/hist.h')
-rw-r--r--gprof/hist.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gprof/hist.h b/gprof/hist.h
index 3facb5a..0bd5320 100644
--- a/gprof/hist.h
+++ b/gprof/hist.h
@@ -1,6 +1,7 @@
/* hist.h
- Copyright 2000, 2001, 2002, 2004, 2005, 2007 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2004, 2005, 2007, 2009
+ Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -30,8 +31,8 @@ typedef struct histogram
int *sample; /* Histogram samples (shorts in the file!). */
} histogram;
-histogram *histograms;
-unsigned num_histograms;
+extern histogram * histograms;
+extern unsigned num_histograms;
/* Scale factor converting samples to pc values:
each sample covers HIST_SCALE bytes. */