Add debug trace in amd64-windows-tdep.c::amd64_windows_frame_decode_insns
authorJoel Brobecker <brobecker@adacore.com>
Wed, 11 Jun 2014 12:31:20 +0000 (14:31 +0200)
committerJoel Brobecker <brobecker@adacore.com>
Fri, 1 Aug 2014 13:56:25 +0000 (06:56 -0700)
This is a trace which would have been useful when trying to understand
why the debugger was not decoding the stream of unwind codes I was
expecting.  This patch adds a trace first informing us that we are
following the unwind info to the next unwind record in that chain.

gdb/ChangeLog:

        * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
        Add debug trace.

gdb/ChangeLog
gdb/amd64-windows-tdep.c

index 939fd20a7ab549d4ce13c8d0ea56bc47fb939a5f..2d50d35029149b47035ab447c2d21201176259e5 100644 (file)
@@ -1,3 +1,8 @@
+2014-08-01  Joel Brobecker  <brobecker@adacore.com>
+
+       * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
+       Add debug trace.
+
 2014-08-01  Joel Brobecker  <brobecker@adacore.com>
 
        * amd64-windows-tdep.c (amd64_windows_frame_decode_insns):
index cb1bac78612dacb754525b95f40bc7e9a8a5fb51..f90bd5bb794c8555f763cefce7a12cb70b55b37d 100644 (file)
@@ -837,6 +837,15 @@ amd64_windows_frame_decode_insns (struct frame_info *this_frame,
            extract_unsigned_integer (d.rva_EndAddress, 4, byte_order);
          unwind_info =
            extract_unsigned_integer (d.rva_UnwindData, 4, byte_order);
+
+         if (frame_debug)
+           fprintf_unfiltered
+             (gdb_stdlog,
+              "amd64_windows_frame_decodes_insn (next in chain):"
+              " unwind_data=%s, start_rva=%s, end_rva=%s\n",
+              paddress (gdbarch, unwind_info),
+              paddress (gdbarch, cache->start_rva),
+              paddress (gdbarch, cache->end_rva));
        }
 
       /* Allow the user to break this loop.  */