Define the backend_cpu regarding the host processor.
This commit is contained in:
parent
3f7749a6dd
commit
58f25b7b03
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue