diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-13 20:15:50 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-07-13 20:15:50 +0000 |
commit | a24f71abb4b5c2785619a809d6dfbe0ba42ef769 (patch) | |
tree | 3acb4d9cfa1075045dbc3bc44de42f767ab4f611 | |
parent | d76b7dbc5f5faacd9804b8aa387858a41eb20488 (diff) | |
download | gdb-a24f71abb4b5c2785619a809d6dfbe0ba42ef769.zip gdb-a24f71abb4b5c2785619a809d6dfbe0ba42ef769.tar.gz gdb-a24f71abb4b5c2785619a809d6dfbe0ba42ef769.tar.bz2 |
gdb/
* dwarf2loc.c (disassemble_dwarf_expression): Handle
DW_OP_GNU_parameter_ref.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/dwarf2loc.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 48ace52..dec252b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 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 read-in CALL_SITE_PARAMETER_PARAM_OFFSET. diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index 6feeab6..38e4814 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -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); |