qemu-ppc
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-ppc] [Qemu-devel] [PULL 07/32] PPC: Add support for Apple gdb


From: Programmingkid
Subject: Re: [Qemu-ppc] [Qemu-devel] [PULL 07/32] PPC: Add support for Apple gdb in gdbstub
Date: Tue, 1 Jul 2014 23:34:48 -0400

The Apple gdbstub protocol is different from the normal gdbstub protocol
used on PowerPC. Add support for the different variant, so that we can use
Apple's gdb to debug guest code.

Keep in mind that the switch is a compile time option. We can't detect
during runtime whether a gdb connecting to us is an upstream gdb or an
Apple gdb.

Wouldn't it be better to assume we are using Apple's GDB? Building the powerpc-apple-darwin target of gdb is not supported.
 
//#define PPC_DUMP_CPU
//#define PPC_DEBUG_SPR
//#define PPC_DUMP_SPR_ACCESSES
+/* #define USE_APPLE_GDB */

Users are not going to be able to find these options very easily. Using a condition to test for Mac OS X would solve this problem:

#if defined(__APPLE__)
#define PPC_DUMP_CPU
#define PPC_DEBUG_SPR
#define PPC_DUMP_SPR_ACCESSES
#define USE_APPLE_GDB 
#endif

When I uncommented the "#define PPC_DUMP_CPU" code, there were a lot of build errors on Mac OS X. They all had a message like this: 

/target-ppc/translate_init.c:8729: error: ‘opc_handler_t’ has no member named ‘oname’



reply via email to

[Prev in Thread] Current Thread [Next in Thread]