diff options
author | Doug Evans <dje@google.com> | 2012-07-09 18:21:31 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2012-07-09 18:21:31 +0000 |
commit | 45e58e77b783c6fcabd8797ece76f370dc3a8dd3 (patch) | |
tree | 1c73b9744d0be1f96338dec5ce95f71ee6583351 | |
parent | e314d62968dfb4ae82c70dbe68d9d4ec929deb7e (diff) | |
download | gdb-45e58e77b783c6fcabd8797ece76f370dc3a8dd3.zip gdb-45e58e77b783c6fcabd8797ece76f370dc3a8dd3.tar.gz gdb-45e58e77b783c6fcabd8797ece76f370dc3a8dd3.tar.bz2 |
* dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
All callers updated.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2read.c | 10 |
2 files changed, 9 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0d1c151..a044b5a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-07-09 Doug Evans <dje@google.com> + + * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu". + All callers updated. + 2012-07-09 Tom Tromey <tromey@redhat.com> * c-exp.y (check_parameter_typelist): New function. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index c15926b..a5f1f36 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1179,8 +1179,7 @@ static struct attribute *dwarf2_attr (struct die_info *, unsigned int, struct dwarf2_cu *); static struct attribute *dwarf2_attr_no_follow (struct die_info *, - unsigned int, - struct dwarf2_cu *); + unsigned int); static int dwarf2_flag_true_p (struct die_info *die, unsigned name, struct dwarf2_cu *cu); @@ -9401,7 +9400,7 @@ read_structure_type (struct die_info *die, struct dwarf2_cu *cu) /* If the definition of this type lives in .debug_types, read that type. Don't follow DW_AT_specification though, that will take us back up the chain and we want to go down. */ - attr = dwarf2_attr_no_follow (die, DW_AT_signature, cu); + attr = dwarf2_attr_no_follow (die, DW_AT_signature); if (attr) { struct dwarf2_cu *type_cu = cu; @@ -9728,7 +9727,7 @@ read_enumeration_type (struct die_info *die, struct dwarf2_cu *cu) /* If the definition of this type lives in .debug_types, read that type. Don't follow DW_AT_specification though, that will take us back up the chain and we want to go down. */ - attr = dwarf2_attr_no_follow (die, DW_AT_signature, cu); + attr = dwarf2_attr_no_follow (die, DW_AT_signature); if (attr) { struct dwarf2_cu *type_cu = cu; @@ -12807,8 +12806,7 @@ dwarf2_attr (struct die_info *die, unsigned int name, struct dwarf2_cu *cu) back up the chain, and we want to go down. */ static struct attribute * -dwarf2_attr_no_follow (struct die_info *die, unsigned int name, - struct dwarf2_cu *cu) +dwarf2_attr_no_follow (struct die_info *die, unsigned int name) { unsigned int i; |