gdb/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 25 Feb 2011 08:35:36 +0000 (08:35 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 25 Feb 2011 08:35:36 +0000 (08:35 +0000)
* 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.

gdb/ChangeLog
gdb/dwarf2loc.c

index 16304ba5d0f3feb315144612c3e95b03b8feb042..93a2c332d3b21a684a23d25a00a8a1070e453815 100644 (file)
@@ -1,3 +1,11 @@
+2011-02-25  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * 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.
+
 2011-02-24  Michael Snyder  <msnyder@vmware.com>
 
        * Makefile.in (clean): Make clean should remove generated files
index a439f727475bd35b15c148b99b598fdd0eb8a766..cac9b557883a2950b0aa55085673e4a21444a911 100644 (file)
@@ -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: