PR 10656
authorNick Clifton <nickc@redhat.com>
Fri, 25 Sep 2009 09:57:50 +0000 (09:57 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 25 Sep 2009 09:57:50 +0000 (09:57 +0000)
        * 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.

binutils/ChangeLog
binutils/dwarf.h
binutils/readelf.c
gprof/ChangeLog
gprof/hist.c
gprof/hist.h

index 71df175bba855fcc740884819c2e829d3530fdea..04e553f296ed344c3c50dcdfaee227e9c8409859 100644 (file)
@@ -1,3 +1,9 @@
+2009-09-25  Dimitry Gorbachev  <d.g.gorbachev@gmail.com>
+
+       PR 10656
+       * readelf.c: Remove duplicate declaration of variable do_wide.
+       * dwarf.h: Add export of do_wide.
+
 2009-09-24  Cary Coutant  <ccoutant@google.com>
 
        * dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
index 5d793edff6af53f8cbc28f1fec2fe9d2e04c82d3..b39aba1ee534ef3a992cfad0c7136f8e9972e518 100644 (file)
@@ -32,9 +32,9 @@ typedef unsigned long dwarf_size_type;
 struct dwarf_section
 {
   /* A debug section has a different name when it's stored compressed
-   * or not.  COMPRESSED_NAME and UNCOMPRESSED_NAME are the two
-   * possibilities.  NAME is set to whichever one is used for this
-   * input file, as determined by load_debug_section().  */
+     or not.  COMPRESSED_NAME and UNCOMPRESSED_NAME are the two
+     possibilities.  NAME is set to whichever one is used for this
+     input file, as determined by load_debug_section().  */
   const char *uncompressed_name;
   const char *compressed_name;
   const char *name;
@@ -53,7 +53,8 @@ struct dwarf_section_display
   unsigned int relocate : 1;
 };
 
-enum dwarf_section_display_enum {
+enum dwarf_section_display_enum
+{
   abbrev = 0,
   aranges,
   frame,
@@ -111,6 +112,7 @@ extern int do_debug_frames_interp;
 extern int do_debug_macinfo;
 extern int do_debug_str;
 extern int do_debug_loc;
+extern int do_wide;
 
 extern void init_dwarf_regnames (unsigned int);
 
@@ -120,8 +122,8 @@ extern void free_debug_section (enum dwarf_section_display_enum);
 
 extern void free_debug_memory (void);
 
-extern void dwarf_select_sections_by_names (const char *names);
-extern void dwarf_select_sections_by_letters (const char *letters);
+extern void dwarf_select_sections_by_names (const char *);
+extern void dwarf_select_sections_by_letters (const char *);
 extern void dwarf_select_sections_all (void);
 
 void *cmalloc (size_t, size_t);
index 425161c61ae03c3b977219e5bcaceadaa1186688..9c0982307d8604c4b123acbcc16c1d90210c37a9 100644 (file)
 #include "filenames.h"
 
 char * program_name = "readelf";
-int do_wide;
 static long archive_file_offset;
 static unsigned long archive_file_size;
 static unsigned long dynamic_addr;
index 8908440ca06d143d401acf0f19b38f7366cf8d59..1f0b8cb71cd595fd49733cb738b1963e57952dca 100644 (file)
@@ -1,3 +1,10 @@
+2009-09-25  Dimitry Gorbachev  <d.g.gorbachev@gmail.com>
+
+       PR 10656
+       * hist.h: Move declaration of histograms and num_histograms
+       variables from here to...
+       * hist.c: ...here.
+
 2009-09-23  Nick Clifton  <nickc@redhat.com>
 
        * po/vi.po: Updated Vietnamese translation.
index a790fd48ccedaceddc8d25f36c8898031c9b6d0c..6f4ead83a63ed57cf408fbe23314fb1848791d2f 100644 (file)
@@ -1,6 +1,6 @@
 /* hist.c  -  Histogram related operations.
 
-   Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007
+   Copyright 1999, 2000, 2001, 2002, 2004, 2005, 2007, 2009
    Free Software Foundation, Inc.
 
    This file is part of GNU Binutils.
@@ -48,6 +48,8 @@ extern void flat_blurb (FILE * fp);
 static histogram *find_histogram (bfd_vma lowpc, bfd_vma highpc);
 static histogram *find_histogram_for_pc (bfd_vma pc);
 
+histogram * histograms;
+unsigned num_histograms;
 double hist_scale;
 static char hist_dimension[16] = "seconds";
 static char hist_dimension_abbrev = 's';
index 3facb5ad2269dfc9a4a411a1cdf024c6cca58c4f..0bd5320c67ab14d9db7fa3a2e57a068d031223ee 100644 (file)
@@ -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.  */
This page took 0.033702 seconds and 4 git commands to generate.