winedbg: Get rid of ifdefs.
Signed-off-by: Józef Kucia <jkucia@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
297570894b
commit
ff84b2f202
|
@ -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)
|
static BOOL be_arm_get_context(HANDLE thread, dbg_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
#ifdef __arm__
|
|
||||||
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
||||||
return GetThreadContext(thread, &ctx->ctx);
|
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)
|
static BOOL be_arm_set_context(HANDLE thread, const dbg_ctx_t *ctx)
|
||||||
|
|
|
@ -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)
|
static BOOL be_arm64_get_context(HANDLE thread, dbg_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
#ifdef __aarch64__
|
|
||||||
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
||||||
return GetThreadContext(thread, &ctx->ctx);
|
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)
|
static BOOL be_arm64_set_context(HANDLE thread, const dbg_ctx_t *ctx)
|
||||||
|
|
|
@ -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)
|
static BOOL be_ppc_get_context(HANDLE thread, dbg_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
#ifdef __powerpc__
|
|
||||||
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
||||||
return GetThreadContext(thread, &ctx->ctx);
|
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)
|
static BOOL be_ppc_set_context(HANDLE thread, const dbg_ctx_t *ctx)
|
||||||
|
|
|
@ -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)
|
static BOOL be_x86_64_get_context(HANDLE thread, dbg_ctx_t *ctx)
|
||||||
{
|
{
|
||||||
#ifdef __x86_64__
|
|
||||||
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
ctx->ctx.ContextFlags = CONTEXT_ALL;
|
||||||
return GetThreadContext(thread, &ctx->ctx);
|
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)
|
static BOOL be_x86_64_set_context(HANDLE thread, const dbg_ctx_t *ctx)
|
||||||
|
|
Loading…
Reference in New Issue