=?UTF-8?Q?J=C3=B3zef=20Kucia=20?=: winedbg: Get rid of ifdefs.

Alexandre Julliard julliard at winehq.org
Tue Jun 19 14:52:02 CDT 2018


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

Author: Józef Kucia <jkucia at codeweavers.com>
Date:   Tue Jun 19 14:31:29 2018 +0200

winedbg: Get rid of ifdefs.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 programs/winedbg/be_arm.c    | 4 ----
 programs/winedbg/be_arm64.c  | 4 ----
 programs/winedbg/be_ppc.c    | 4 ----
 programs/winedbg/be_x86_64.c | 4 ----
 4 files changed, 16 deletions(-)

diff --git a/programs/winedbg/be_arm.c b/programs/winedbg/be_arm.c
index e3c8f72..ad0e285 100644
--- a/programs/winedbg/be_arm.c
+++ b/programs/winedbg/be_arm.c
@@ -1891,12 +1891,8 @@ static BOOL be_arm_store_integer(const struct dbg_lvalue* lvalue, unsigned size,
 
 static BOOL be_arm_get_context(HANDLE thread, dbg_ctx_t *ctx)
 {
-#ifdef __arm__
     ctx->ctx.ContextFlags = CONTEXT_ALL;
     return GetThreadContext(thread, &ctx->ctx);
-#else
-    WINE_FIXME("Cannot debug an ARM process on this architecture.\n");
-#endif
 }
 
 static BOOL be_arm_set_context(HANDLE thread, const dbg_ctx_t *ctx)
diff --git a/programs/winedbg/be_arm64.c b/programs/winedbg/be_arm64.c
index a87921f..bca86b8 100644
--- a/programs/winedbg/be_arm64.c
+++ b/programs/winedbg/be_arm64.c
@@ -280,12 +280,8 @@ void be_arm64_disasm_one_insn(ADDRESS64 *addr, int display)
 
 static BOOL be_arm64_get_context(HANDLE thread, dbg_ctx_t *ctx)
 {
-#ifdef __aarch64__
     ctx->ctx.ContextFlags = CONTEXT_ALL;
     return GetThreadContext(thread, &ctx->ctx);
-#else
-    WINE_FIXME("Cannot debug an ARM64 process on this architecture.\n");
-#endif
 }
 
 static BOOL be_arm64_set_context(HANDLE thread, const dbg_ctx_t *ctx)
diff --git a/programs/winedbg/be_ppc.c b/programs/winedbg/be_ppc.c
index 54bcb59..ff6ece6 100644
--- a/programs/winedbg/be_ppc.c
+++ b/programs/winedbg/be_ppc.c
@@ -182,12 +182,8 @@ static BOOL be_ppc_store_integer(const struct dbg_lvalue* lvalue, unsigned size,
 
 static BOOL be_ppc_get_context(HANDLE thread, dbg_ctx_t *ctx)
 {
-#ifdef __powerpc__
     ctx->ctx.ContextFlags = CONTEXT_ALL;
     return GetThreadContext(thread, &ctx->ctx);
-#else
-    WINE_FIXME("Cannot debug a PowerPC process on this architecture.\n");
-#endif
 }
 
 static BOOL be_ppc_set_context(HANDLE thread, const dbg_ctx_t *ctx)
diff --git a/programs/winedbg/be_x86_64.c b/programs/winedbg/be_x86_64.c
index b7f75c6..136229f 100644
--- a/programs/winedbg/be_x86_64.c
+++ b/programs/winedbg/be_x86_64.c
@@ -676,12 +676,8 @@ static BOOL be_x86_64_store_integer(const struct dbg_lvalue* lvalue, unsigned si
 
 static BOOL be_x86_64_get_context(HANDLE thread, dbg_ctx_t *ctx)
 {
-#ifdef __x86_64__
     ctx->ctx.ContextFlags = CONTEXT_ALL;
     return GetThreadContext(thread, &ctx->ctx);
-#else
-    WINE_FIXME("Cannot debug an x86-64 process on this architecture.\n");
-#endif
 }
 
 static BOOL be_x86_64_set_context(HANDLE thread, const dbg_ctx_t *ctx)




More information about the wine-cvs mailing list