From ae7979a42d418908f1f37d689a2274a71d82b215 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Tue, 9 Nov 2021 16:05:46 +0200 Subject: [PATCH] winedump: Fix printing of the prologue version of the "ldr lr, [sp], #offset" opcode. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This isn't mentioned in the documentation (which only writes out the instruction that is executed while unwinding, i.e. the mirror form of it), but a prologue version of this instruction would look like this. Signed-off-by: Martin Storsjö Signed-off-by: Alexandre Julliard --- tools/winedump/pe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index 5d325fba3da..43ba0618615 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -1113,7 +1113,7 @@ static void dump_armnt_unwind_info( const struct runtime_function_armnt *fnc ) if (inepilogue) printf( "ldr lr, [sp], #%u\n", (excode & 0x0f) * 4 ); else - printf( "unknown 32\n" ); + printf( "str lr, [sp, #-%u]!\n", (excode & 0x0f) * 4 ); } else printf( "unknown 32\n" );