summaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-06 19:39:08 +0000
committerTom Tromey <tromey@redhat.com>2013-05-06 19:39:08 +0000
commita9fce1bc95601cd0521adb498a5c3d00a2f41aed (patch)
treeb10b9510dd2f4b781e1fe233dee9b8a3795a2515 /gdb/dwarf2read.c
parentf38f5ec74d176ff96ee2a3e642a2920d0e130d20 (diff)
downloadgdb-a9fce1bc95601cd0521adb498a5c3d00a2f41aed.tar.gz
* dwarf2read.c (dwarf2_const_value_data): Remove unused
parameters. (dwarf2_const_value_attr): Update.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 0ba0c24f949..1154b115eee 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -16361,8 +16361,7 @@ new_symbol (struct die_info *die, struct type *type, struct dwarf2_cu *cu)
because that is the interpretation long in use by GCC. */
static gdb_byte *
-dwarf2_const_value_data (struct attribute *attr, struct type *type,
- const char *name, struct obstack *obstack,
+dwarf2_const_value_data (struct attribute *attr, struct obstack *obstack,
struct dwarf2_cu *cu, LONGEST *value, int bits)
{
struct objfile *objfile = cu->objfile;
@@ -16464,20 +16463,16 @@ dwarf2_const_value_attr (struct attribute *attr, struct type *type,
converted to host endianness, so we just need to sign- or
zero-extend it as appropriate. */
case DW_FORM_data1:
- *bytes = dwarf2_const_value_data (attr, type, name,
- obstack, cu, value, 8);
+ *bytes = dwarf2_const_value_data (attr, obstack, cu, value, 8);
break;
case DW_FORM_data2:
- *bytes = dwarf2_const_value_data (attr, type, name,
- obstack, cu, value, 16);
+ *bytes = dwarf2_const_value_data (attr, obstack, cu, value, 16);
break;
case DW_FORM_data4:
- *bytes = dwarf2_const_value_data (attr, type, name,
- obstack, cu, value, 32);
+ *bytes = dwarf2_const_value_data (attr, obstack, cu, value, 32);
break;
case DW_FORM_data8:
- *bytes = dwarf2_const_value_data (attr, type, name,
- obstack, cu, value, 64);
+ *bytes = dwarf2_const_value_data (attr, obstack, cu, value, 64);
break;
case DW_FORM_sdata: