gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 13 Jul 2012 20:15:50 +0000 (20:15 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 13 Jul 2012 20:15:50 +0000 (20:15 +0000)
* dwarf2loc.c (disassemble_dwarf_expression): Handle
DW_OP_GNU_parameter_ref.

gdb/ChangeLog
gdb/dwarf2loc.c

index 48ace52e766588738d52ee2dfa91181540e591db..dec252b855783c3e354dc3b4d5b0d0b0d704fac7 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * dwarf2loc.c (disassemble_dwarf_expression): Handle
+       DW_OP_GNU_parameter_ref.
+
 2012-07-13  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
index 6feeab607c8762a99831d07619557f28d91382a5..38e4814be8ca8862e6478c53e875c1fc124382da 100644 (file)
@@ -3797,6 +3797,12 @@ disassemble_dwarf_expression (struct ui_file *stream,
          data += ul;
          continue;
 
+       case DW_OP_GNU_parameter_ref:
+         ul = extract_unsigned_integer (data, 4, gdbarch_byte_order (arch));
+         data += 4;
+         fprintf_filtered (stream, " offset %s", phex_nz (ul, 4));
+         break;
+
        case DW_OP_GNU_addr_index:
          data = safe_read_uleb128 (data, end, &ul);
          ul = dwarf2_read_addr_index (per_cu, ul);