From 58f25b7b030291813d6c3880ba6b7e3bbebbc858 Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Fri, 16 Jul 2004 02:31:55 +0000 Subject: [PATCH] Define the backend_cpu regarding the host processor. --- programs/winedbg/winedbg.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index dec27eec161..64ce2873e4b 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -1083,15 +1083,26 @@ static int dbg_winedbg_usage(void) } struct backend_cpu* be_cpu; +#ifdef __i386__ extern struct backend_cpu be_i386; +#elif __powerpc__ +extern struct backend_cpu be_ppc; +#else +# error CPU unknown +#endif int main(int argc, char** argv) { DWORD retv = 0; unsigned gdb_flags = 0; - /* FIXME: correctly setup the CPU backend */ +#ifdef __i386__ be_cpu = &be_i386; +#elif __powerpc__ + be_cpu = &be_ppc; +#else +# error CPU unknown +#endif /* Initialize the output */ dbg_houtput = GetStdHandle(STD_OUTPUT_HANDLE);