diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-07-21 11:42:21 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-07-21 11:42:21 +0100 |
commit | b57e815ca1e75b7897caa99c2d351f11a543c4fe (patch) | |
tree | 714a579df69a54c1dfdcb0522866643ead0aa152 | |
parent | ba8826a82a29a19b78c18ce4f44fe313de279af7 (diff) | |
download | gdb-b57e815ca1e75b7897caa99c2d351f11a543c4fe.zip gdb-b57e815ca1e75b7897caa99c2d351f11a543c4fe.tar.gz gdb-b57e815ca1e75b7897caa99c2d351f11a543c4fe.tar.bz2 |
Remove unused variables in dwarf parser.
* dwarf.c (last_pointer_size, warned_about_missing_comp_units):
Remove.
(load_debug_info): Remove assignments to those two variables.
-rw-r--r-- | binutils/ChangeLog | 6 | ||||
-rw-r--r-- | binutils/dwarf.c | 8 |
2 files changed, 6 insertions, 8 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 4b1b9e0..6df2ac0 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,9 @@ +2017-07-21 Simon Marchi <simon.marchi@ericsson.com> + + * dwarf.c (last_pointer_size, warned_about_missing_comp_units): + Remove. + (load_debug_info): Remove assignments to those two variables. + 2017-07-21 Alexandre Oliva <aoliva@redhat.com> * dwarf.c (struct State_Machine_Registers): Add view field. diff --git a/binutils/dwarf.c b/binutils/dwarf.c index ab6446d..f8e24cb2 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -40,9 +40,6 @@ static const char *regname (unsigned int regno, int row); static int have_frame_base; static int need_base_address; -static unsigned int last_pointer_size = 0; -static int warned_about_missing_comp_units = FALSE; - static unsigned int num_debug_info_entries = 0; static unsigned int alloc_num_debug_info_entries = 0; static debug_info *debug_information = NULL; @@ -2923,11 +2920,6 @@ process_debug_info (struct dwarf_section *section, static unsigned int load_debug_info (void * file) { - /* Reset the last pointer size so that we can issue correct error - messages if we are displaying the contents of more than one section. */ - last_pointer_size = 0; - warned_about_missing_comp_units = FALSE; - /* If we have already tried and failed to load the .debug_info section then do not bother to repeat the task. */ if (num_debug_info_entries == DEBUG_INFO_UNAVAILABLE) |