diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-25 08:35:36 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-02-25 08:35:36 +0000 |
commit | 0502ed8ce1239259887cd612a4f6deaa6ef8c2d2 (patch) | |
tree | fda0d0491c6223fe90ba5f3d42ff136e8ca903c8 /gdb/dwarf2loc.c | |
parent | 1d94651b5c68b31c6ac08bd6580f36aeb89f8e76 (diff) | |
download | gdb-0502ed8ce1239259887cd612a4f6deaa6ef8c2d2.zip gdb-0502ed8ce1239259887cd612a4f6deaa6ef8c2d2.tar.gz gdb-0502ed8ce1239259887cd612a4f6deaa6ef8c2d2.tar.bz2 |
gdb/
* dwarf2loc.c (disassemble_dwarf_expression) <DW_OP_breg[0-9]+>: Use
L and plongest.
(disassemble_dwarf_expression) <DW_OP_bregx>: Drop variable offset,
use L and plongest.
(disassemble_dwarf_expression) <DW_OP_fbreg>: Use L and plongest.
Diffstat (limited to 'gdb/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index a439f72..cac9b55 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -2430,27 +2430,23 @@ disassemble_dwarf_expression (struct ui_file *stream, case DW_OP_breg29: case DW_OP_breg30: case DW_OP_breg31: - data = read_sleb128 (data, end, &ul); - fprintf_filtered (stream, " %s [$%s]", pulongest (ul), + data = read_sleb128 (data, end, &l); + fprintf_filtered (stream, " %s [$%s]", plongest (l), gdbarch_register_name (arch, op - DW_OP_breg0)); break; case DW_OP_bregx: - { - ULONGEST offset; - - data = read_uleb128 (data, end, &ul); - data = read_sleb128 (data, end, &offset); - fprintf_filtered (stream, " register %s [$%s] offset %s", - pulongest (ul), - gdbarch_register_name (arch, (int) ul), - pulongest (offset)); - } + data = read_uleb128 (data, end, &ul); + data = read_sleb128 (data, end, &l); + fprintf_filtered (stream, " register %s [$%s] offset %s", + pulongest (ul), + gdbarch_register_name (arch, (int) ul), + plongest (l)); break; case DW_OP_fbreg: - data = read_sleb128 (data, end, &ul); - fprintf_filtered (stream, " %s", pulongest (ul)); + data = read_sleb128 (data, end, &l); + fprintf_filtered (stream, " %s", plongest (l)); break; case DW_OP_xderef_size: |