Skip to contentSkip to conversation

Handle debug signals on PowerPC

PATCH Applied Andrew Stubbs 2 participants 5 messages Oct 13, 2008 – Nov 17, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Handle debug signals on PowerPC

Hi,

The attached patch allows PowerPC QEMU to be used with the debugger.

Currently, any attempt to debug causes an unknown exception error. Note that there are also a few other issues that prevent QEMU from working at all (for me, at any rate, and not just with debugging), but those fixes are not yet ready.

Andrew

main.c +1 -0
Index: linux-user/main.c
===================================================================
@@ -1286,6 +1286,7 @@
                       "Aborting\n");
             break;
         case POWERPC_EXCP_DEBUG:    /* Debug interrupt                       */
+	case EXCP_DEBUG:
             /* XXX: check this */
             {
                 int sig;
#1 lore raw

Ping.

Quoted 8 lines · Andrew Stubbs

Hi,

The attached patch allows PowerPC QEMU to be used with the debugger.

Currently, any attempt to debug causes an unknown exception error. Note that there are also a few other issues that prevent QEMU from working at all (for me, at any rate, and not just with debugging), but those fixes are not yet ready.

Andrew

#2 lore raw

Ping.

Quoted 14 lines · Andrew Stubbs

Ping.

Quoted 8 lines · Andrew Stubbs

Hi,

The attached patch allows PowerPC QEMU to be used with the debugger.

Currently, any attempt to debug causes an unknown exception error. Note that there are also a few other issues that prevent QEMU from working at all (for me, at any rate, and not just with debugging), but those fixes are not yet ready.

Andrew

#3 lore raw
In reply to Andrew Stubbs
Quoted 8 lines · Andrew Stubbs

Hi,

The attached patch allows PowerPC QEMU to be used with the debugger.

Currently, any attempt to debug causes an unknown exception error. Note that there are also a few other issues that prevent QEMU from working at all (for me, at any rate, and not just with debugging), but those fixes are not yet ready.

Actually POWERPC_EXCP_DEBUG can not happen in user mode, while EXCP_DEBUG should be handled. The mistake come from a renaming of all PowerPC EXCP_* defines into POWERPC_EXCP_*.

I have applied a patch to fix that.

Quoted 14 lines

Andrew

Index: linux-user/main.c
===================================================================

main.c +1 -0
@@ -1286,6 +1286,7 @@
                       "Aborting\n");
             break;
         case POWERPC_EXCP_DEBUG:    /* Debug interrupt                       */
+	case EXCP_DEBUG:
             /* XXX: check this */
             {
                 int sig;
Signature · 4 lines
  .''`.  Aurelien Jarno	            | GPG: 1024D/F1BCDB73
 : :' :  Debian developer           | Electrical Engineer
 `. `'   [email protected]         | [email protected]
   `-    people.debian.org/~aurel32 | www.aurel32.net
#4 lore raw
Quoted 1 line · Aurelien Jarno

I have applied a patch to fix that.

Thank you very much.

Andrew