* 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.
+
+ PR 10656
+ * readelf.c: Remove duplicate declaration of variable do_wide.
+ * dwarf.h: Add export of do_wide.
+
* dwarf.c (get_TAG_name): Add missing DWARF-3 and new DWARF-4 tags.
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;
unsigned int relocate : 1;
};
-enum dwarf_section_display_enum {
+enum dwarf_section_display_enum
+{
abbrev = 0,
aranges,
frame,
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);
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);
#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;
+
+ PR 10656
+ * hist.h: Move declaration of histograms and num_histograms
+ variables from here to...
+ * hist.c: ...here.
+
* po/vi.po: Updated Vietnamese translation.
/* 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.
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';
/* 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.
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. */