Martin Storsjo : winedump: Fix dumping of rare arm64 unwind opcodes.

Alexandre Julliard julliard at winehq.org
Fri Aug 21 16:43:25 CDT 2020


Module: wine
Branch: master
Commit: af6853278f74b1e5ea4db93fc433448a49eca047
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=af6853278f74b1e5ea4db93fc433448a49eca047

Author: Martin Storsjo <martin at martin.st>
Date:   Fri Aug 21 14:57:20 2020 +0300

winedump: Fix dumping of rare arm64 unwind opcodes.

Signed-off-by: Martin Storsjo <martin at martin.st>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winedump/pe.c | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c
index 7252a6a61f..f03c523be0 100644
--- a/tools/winedump/pe.c
+++ b/tools/winedump/pe.c
@@ -1345,18 +1345,22 @@ static void dump_arm64_codes( const BYTE *ptr, unsigned int count )
             default:printf( "unknown op\n" ); break;
             }
         }
-        else if (ptr[i] == 0xe9)  /* MSFT_OP_TRAP_FRAME */
+        else if (ptr[i] == 0xe8)  /* MSFT_OP_TRAP_FRAME */
         {
             printf( "MSFT_OP_TRAP_FRAME\n" );
         }
-        else if (ptr[i] == 0xea)  /* MSFT_OP_MACHINE_FRAME */
+        else if (ptr[i] == 0xe9)  /* MSFT_OP_MACHINE_FRAME */
         {
             printf( "MSFT_OP_MACHINE_FRAME\n" );
         }
-        else if (ptr[i] == 0xeb)  /* MSFT_OP_CONTEXT */
+        else if (ptr[i] == 0xea)  /* MSFT_OP_CONTEXT */
         {
             printf( "MSFT_OP_CONTEXT\n" );
         }
+        else if (ptr[i] == 0xec)  /* MSFT_OP_CLEAR_UNWOUND_TO_CALL */
+        {
+            printf( "MSFT_OP_CLEAR_UNWOUND_TO_CALL\n" );
+        }
         else printf( "??\n");
     }
 }




More information about the wine-cvs mailing list