[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Fix typo in dwarf2.c and remove some dead code
From: |
Fred Fish |
Subject: |
Fix typo in dwarf2.c and remove some dead code |
Date: |
Thu, 24 Mar 2005 14:36:32 -0600 |
User-agent: |
KMail/1.7.1 |
While working on another issue I noticed a typo and some dead code.
This patch fixes those issues.
-Fred
2005-03-24 Fred Fish <address@hidden>
* dwarf2.c (struct comp_unit): Fix typo.
(scan_unit_for_functions): Remove unused local variable "name"
and dead code that set it.
Index: dwarf2.c
===================================================================
RCS file: /cvs/src/src/bfd/dwarf2.c,v
retrieving revision 1.63
diff -c -p -r1.63 dwarf2.c
*** dwarf2.c 17 Mar 2005 08:24:28 -0000 1.63
--- dwarf2.c 24 Mar 2005 20:32:54 -0000
*************** struct comp_unit
*** 132,138 ****
/* Keep the bdf convenient (for memory allocation). */
bfd *abfd;
! /* The lowest and higest addresses contained in this compilation
unit as specified in the compilation unit header. */
struct arange arange;
--- 132,138 ----
/* Keep the bdf convenient (for memory allocation). */
bfd *abfd;
! /* The lowest and highest addresses contained in this compilation
unit as specified in the compilation unit header. */
struct arange arange;
*************** scan_unit_for_functions (struct comp_uni
*** 1326,1332 ****
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;
--- 1326,1331 ----
*************** scan_unit_for_functions (struct comp_uni
*** 1370,1378 ****
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;
--- 1369,1374 ----
*************** scan_unit_for_functions (struct comp_uni
*** 1394,1411 ****
break;
}
}
- else
- {
- switch (attr.name)
- {
- case DW_AT_name:
- name = attr.u.str;
- break;
-
- default:
- break;
- }
- }
}
if (abbrev->has_children)
--- 1390,1395 ----
- Fix typo in dwarf2.c and remove some dead code,
Fred Fish <=