From 5a1276bf39f1e35a1fd94cae4fa7f90e80252f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Fri, 6 Apr 2012 18:22:19 +0200 Subject: [PATCH] winedbg: Implement be_arm_store_integer on ARM. --- programs/winedbg/be_arm.c | 6 +++--- programs/winedbg/winedbg.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c index 9db785f4f1f..e36c969aef7 100644 --- a/programs/winedbg/be_arm.c +++ b/programs/winedbg/be_arm.c @@ -22,7 +22,7 @@ #include "debugger.h" -#if defined(__arm__) +#if defined(__arm__) && !defined(__ARMEB__) static unsigned be_arm_get_addr(HANDLE hThread, const CONTEXT* ctx, enum be_cpu_addr bca, ADDRESS64* addr) @@ -258,8 +258,8 @@ static int be_arm_fetch_float(const struct dbg_lvalue* lvalue, unsigned size, static int be_arm_store_integer(const struct dbg_lvalue* lvalue, unsigned size, unsigned is_signed, LONGLONG val) { - dbg_printf("be_arm_store_integer: not done\n"); - return FALSE; + /* this is simple if we're on a little endian CPU */ + return memory_write_value(lvalue, size, &val); } struct backend_cpu be_arm = diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index c5f44485243..7e637279282 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -618,7 +618,7 @@ extern struct backend_cpu be_ppc; extern struct backend_cpu be_x86_64; #elif defined(__sparc__) extern struct backend_cpu be_sparc; -#elif defined(__arm__) +#elif defined(__arm__) && !defined(__ARMEB__) extern struct backend_cpu be_arm; #else # error CPU unknown @@ -638,7 +638,7 @@ int main(int argc, char** argv) be_cpu = &be_x86_64; #elif defined(__sparc__) be_cpu = &be_sparc; -#elif defined(__arm__) +#elif defined(__arm__) && !defined(__ARMEB__) be_cpu = &be_arm; #else # error CPU unknown