2012-09-06 Cary Coutant <ccoutant@google.com>
authorCary Coutant <ccoutant@google.com>
Fri, 7 Sep 2012 01:22:21 +0000 (01:22 +0000)
committerCary Coutant <ccoutant@google.com>
Fri, 7 Sep 2012 01:22:21 +0000 (01:22 +0000)
binutils/
* dwarf.c (decode_location_expression): Add
DW_OP_GNU_const_index.

binutils/ChangeLog
binutils/dwarf.c

index 049c535851b5936baa71f6246f8a8761849edb1a..7bc8a09359cf5b8256b7b237e828cd892968b750 100644 (file)
@@ -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.
index d8050faf98d1e359f684a6e2288f680e039fd75d..86d42a380edc3ffefd477c3accd08d1a22b47a70 100644 (file)
@@ -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: