diff options
author | Fred Fish <fnf@specifix.com> | 2005-03-29 20:10:42 +0000 |
---|---|---|
committer | Fred Fish <fnf@specifix.com> | 2005-03-29 20:10:42 +0000 |
commit | 09a9d560e1c6c3a11de68101cb17f9e2ec98b3e1 (patch) | |
tree | d73084b4dd5d4808ab30017f13ae4b0a3281d579 | |
parent | 7e10245c4e51c031270878e8937f6e030aef14e0 (diff) | |
download | gdb-09a9d560e1c6c3a11de68101cb17f9e2ec98b3e1.zip gdb-09a9d560e1c6c3a11de68101cb17f9e2ec98b3e1.tar.gz gdb-09a9d560e1c6c3a11de68101cb17f9e2ec98b3e1.tar.bz2 |
Approved by nickc@redhat.com
2005-03-29 Fred Fish <fnf@specifixinc.com>
* dwarf2.c (struct comp_unit): Fix typo.
(scan_unit_for_functions): Remove unused local variable "name"
and dead code that set it.
-rw-r--r-- | bfd/ChangeLog | 6 | ||||
-rw-r--r-- | bfd/dwarf2.c | 18 |
2 files changed, 7 insertions, 17 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c4b62dd..0b64c62 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2005-03-29 Fred Fish <fnf@specifixinc.com> + + * dwarf2.c (struct comp_unit): Fix typo. + (scan_unit_for_functions): Remove unused local variable "name" + and dead code that set it. + 2005-03-29 Daniel Jacobowitz <dan@codesourcery.com> Phil Blundell <philb@gnu.org> diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 2bd232d..9c29453 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -132,7 +132,7 @@ struct comp_unit /* Keep the bdf convenient (for memory allocation). */ bfd *abfd; - /* The lowest and higest addresses contained in this compilation + /* The lowest and highest addresses contained in this compilation unit as specified in the compilation unit header. */ struct arange arange; @@ -1326,7 +1326,6 @@ scan_unit_for_functions (struct comp_unit *unit) struct abbrev_info *abbrev; struct attribute attr; struct funcinfo *func; - char *name = 0; abbrev_number = read_unsigned_leb128 (abfd, info_ptr, &bytes_read); info_ptr += bytes_read; @@ -1370,9 +1369,6 @@ scan_unit_for_functions (struct comp_unit *unit) break; case DW_AT_name: - - name = attr.u.str; - /* Prefer DW_AT_MIPS_linkage_name over DW_AT_name. */ if (func->name == NULL) func->name = attr.u.str; @@ -1394,18 +1390,6 @@ scan_unit_for_functions (struct comp_unit *unit) break; } } - else - { - switch (attr.name) - { - case DW_AT_name: - name = attr.u.str; - break; - - default: - break; - } - } } if (abbrev->has_children) |