This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[RFA] Fix i386-sse.exp regression on Darwin


Hi,

xmm0 is a scratch register for the Darwin/i386 ABI and therefore may be destroyed by calling a function.
This patch fix a regression on Darwin by replacing a function call by a asm nop. The only purpose of the
function call was to be able to put a breakpoint.


Tristan.

testsuite:
2009-02-05  Tristan Gingold  <gingold@adacore.com>

* gdb.arch/i386-sse.c (main): Replace call to puts by an nop asm.

diff -u -r1.5 i386-sse.c
--- testsuite/gdb.arch/i386-sse.c 3 Jan 2009 05:58:03 -0000 1.5
+++ testsuite/gdb.arch/i386-sse.c 5 Feb 2009 16:02:36 -0000
@@ -66,7 +66,7 @@
: "r" (data)
: "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7");


-      puts ("Hi!"); /* first breakpoint here */
+      asm ("nop"); /* first breakpoint here */

       asm (
            "movaps %%xmm0, 0(%0)\n\t"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]