Make Winedbg run on PowerPC.
Pierre d'Herbemont
stegefin at free.fr
Thu Jul 15 14:32:12 CDT 2004
Hi Alexandre,
This patch is necessary to have Winedbg loading on PowerPC host without
an undef symbol error.
Pierre
ChangeLog:
Define the backend_cpu regarding the host processor.
-------------- next part --------------
Index: programs/winedbg/winedbg.c
===================================================================
RCS file: /home/wine/wine/programs/winedbg/winedbg.c,v
retrieving revision 1.22
diff -u -r1.22 winedbg.c
--- programs/winedbg/winedbg.c 4 Jul 2004 00:25:15 -0000 1.22
+++ programs/winedbg/winedbg.c 15 Jul 2004 19:27:47 -0000
@@ -1083,15 +1083,26 @@
}
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);
More information about the wine-patches
mailing list