diff options
author | Nick Clifton <nickc@redhat.com> | 2009-09-25 09:57:50 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2009-09-25 09:57:50 +0000 |
commit | c34f4fc672e56b1bcd89a108e2b799437ce2241a (patch) | |
tree | 0a1bce7cfcd6d7a2b380743fa26f263271848364 /binutils | |
parent | b7c313290aec759532d0f6f93b594b79c9059fea (diff) | |
download | gdb-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 'binutils')
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/dwarf.h | 14 | ||||
-rw-r--r-- | binutils/readelf.c | 1 |
3 files changed, 14 insertions, 7 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 71df175..04e553f 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -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. diff --git a/binutils/dwarf.h b/binutils/dwarf.h index 5d793ed..b39aba1 100644 --- a/binutils/dwarf.h +++ b/binutils/dwarf.h @@ -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); diff --git a/binutils/readelf.c b/binutils/readelf.c index 425161c..9c09823 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -149,7 +149,6 @@ #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; |