aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-05-06 19:39:09 +0000
committerTom Tromey <tromey@redhat.com>2013-05-06 19:39:09 +0000
commit3aef2284c6976e2b497d5e712cf0cedcc14bed58 (patch)
treefdbe75d7771650a5ed4d0d1db41b469389b08481
parent66f65e2b480682001987f8cf58b78577c3e85491 (diff)
downloadgdb-3aef2284c6976e2b497d5e712cf0cedcc14bed58.zip
gdb-3aef2284c6976e2b497d5e712cf0cedcc14bed58.tar.gz
gdb-3aef2284c6976e2b497d5e712cf0cedcc14bed58.tar.bz2
* dwarf2read.c (dwarf2_const_value_data): Remove unused
parameters. (dwarf2_const_value_attr): Update.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/dwarf2read.c15
2 files changed, 11 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 2579f7d..e350609 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2013-05-06 Tom Tromey <tromey@redhat.com>
+ * dwarf2read.c (dwarf2_const_value_data): Remove unused
+ parameters.
+ (dwarf2_const_value_attr): Update.
+
+2013-05-06 Tom Tromey <tromey@redhat.com>
+
* somread.c (som_symfile_offsets): Add 'const' to addrs.
* machoread.c (macho_symfile_offsets): Add 'const' to addrs.
* xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 0ba0c24..1154b11 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: