[PATCH 12/22] [DbgHelp]: dwarf & op piece

Eric Pouech eric.pouech at wanadoo.fr
Fri Nov 24 15:18:08 CST 2006


- register numbers in OP_piece don't need to be next to
  each others

A+
---

 dlls/dbghelp/dwarf.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/dwarf.c b/dlls/dbghelp/dwarf.c
index 73fd7f5..facc5fe 100644
--- a/dlls/dbghelp/dwarf.c
+++ b/dlls/dbghelp/dwarf.c
@@ -674,7 +674,7 @@ compute_location(dwarf2_traverse_context
              * (for example 'long long' stored in two registers)
              * FIXME: We should tell winedbg how to deal with it (sigh)
              */
-            if (!piece_found || (op - DW_OP_reg0 != loc->reg + 1))
+            if (!piece_found)
             {
                 if (loc->reg != Wine_DW_no_register)
                     FIXME("Only supporting one reg (%d -> %d)\n", 
@@ -716,7 +716,7 @@ compute_location(dwarf2_traverse_context
         case DW_OP_piece:
             {
                 unsigned sz = dwarf2_leb128_as_unsigned(ctx);
-                WARN("Not handling OP_piece directly (size=%d)\n", sz);
+                WARN("Not handling OP_piece (size=%d)\n", sz);
                 piece_found = TRUE;
             }
             break;



More information about the wine-patches mailing list