Commit 58f25b7b authored by Pierre d'Herbemont's avatar Pierre d'Herbemont Committed by Alexandre Julliard

Define the backend_cpu regarding the host processor.

parent 3f7749a6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment