Define the backend_cpu regarding the host processor.

This commit is contained in:
Pierre d'Herbemont 2004-07-16 02:31:55 +00:00 committed by Alexandre Julliard
parent 3f7749a6dd
commit 58f25b7b03
1 changed files with 12 additions and 1 deletions

View File

@ -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);