2010-11-24 Edjunior Machado <emachado@br.ibm.com>
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 24 Nov 2010 18:06:18 +0000 (18:06 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Wed, 24 Nov 2010 18:06:18 +0000 (18:06 +0000)
* gdb.asm/powerpc.inc: Use 'sys_exit' on gdbasm_exit0 macro.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.asm/powerpc.inc

index 3418f76263cd782c5b7c128234b25137e28ae6ec..ab3c3a7a57290b5cc0bb5cc919b70de3b290a2ff 100644 (file)
@@ -1,3 +1,7 @@
+2010-11-24  Edjunior Machado  <emachado@br.ibm.com>
+
+       * gdb.asm/powerpc.inc: Use 'sys_exit' on gdbasm_exit0 macro.
+
 2010-11-24  Edjunior Machado  <emachado@br.ibm.com>
 
        * gdb.asm/asm-source.exp: Add new target "powerpc64"; expect leading `.'
index a0797bf826b8fa57b95e8010d267f939cf5f55df..ab700c27682013c0b97c2d8fd5d0aa66597ebfe4 100644 (file)
@@ -29,9 +29,9 @@
 
        comment "exit (0)"
        .macro gdbasm_exit0
-       comment "Don't know how to exit, but this will certainly halt..."
-       li      0, 0
-       lwz     0, 0(0)
+       comment "sys_exit"
+       li      0, 1
+       sc
        .endm
 
        comment "crt0 startup"