This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Add DW_OP_GNU_const_index to readelf/objdump


We added this new DW_OP_ code to dwarf2.def for Fission, but I never
updated readelf/objdump.

OK to commit?

-cary


2012-09-06  Cary Coutant  <ccoutant@google.com>

binutils/
	* dwarf.c (decode_location_expression): Add
	DW_OP_GNU_const_index.


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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]