aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@google.com>2012-09-07 01:22:21 +0000
committerCary Coutant <ccoutant@google.com>2012-09-07 01:22:21 +0000
commitaae628c13199b40d2e5f18a597e5b8cb38d91849 (patch)
treeb3cb7d77bc21b27bc7bbd4581c587278521fadac /binutils
parent610b99881ae33aa12fad9c1f2637dc521d47e5cf (diff)
downloadgdb-aae628c13199b40d2e5f18a597e5b8cb38d91849.zip
gdb-aae628c13199b40d2e5f18a597e5b8cb38d91849.tar.gz
gdb-aae628c13199b40d2e5f18a597e5b8cb38d91849.tar.bz2
2012-09-06 Cary Coutant <ccoutant@google.com>
binutils/ * dwarf.c (decode_location_expression): Add DW_OP_GNU_const_index.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 049c535..7bc8a09 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-06 Cary Coutant <ccoutant@google.com>
+
+ * dwarf.c (decode_location_expression): Add
+ DW_OP_GNU_const_index.
+
2012-09-06 Nick Clifton <nickc@redhat.com>
* doc/binutils.texi (nm): Alpha-sort the option descriptions.
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index d8050fa..86d42a3 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -1192,6 +1192,11 @@ decode_location_expression (unsigned char * data,
data += bytes_read;
printf ("DW_OP_GNU_addr_index <0x%s>", dwarf_vmatoa ("x", uvalue));
break;
+ case DW_OP_GNU_const_index:
+ uvalue = read_leb128 (data, &bytes_read, 0);
+ data += bytes_read;
+ printf ("DW_OP_GNU_const_index <0x%s>", dwarf_vmatoa ("x", uvalue));
+ break;
/* HP extensions. */
case DW_OP_HP_is_value: