* dwarf2loc.c (disassemble_dwarf_expression): Fix instruction

offset display.
This commit is contained in:
Tom Tromey
2011-05-13 18:42:48 +00:00
parent 05272e115a
commit 06826322cb
2 changed files with 7 additions and 2 deletions

View File

@@ -2364,8 +2364,8 @@ disassemble_dwarf_expression (struct ui_file *stream,
if (!name)
error (_("Unrecognized DWARF opcode 0x%02x at %ld"),
op, (long) (data - start));
fprintf_filtered (stream, " % 4ld: %s", (long) (data - start), name);
op, (long) (data - 1 - start));
fprintf_filtered (stream, " % 4ld: %s", (long) (data - 1 - start), name);
switch (op)
{