|
From: <sv...@va...> - 2009-05-20 07:01:13
|
Author: njn
Date: 2009-05-20 08:01:07 +0100 (Wed, 20 May 2009)
New Revision: 10042
Log:
Merge 10041 (send debuglog output to stdout) and do likewise for Darwin.
Modified:
branches/DARWIN/coregrind/m_debuglog.c
Modified: branches/DARWIN/coregrind/m_debuglog.c
===================================================================
--- branches/DARWIN/coregrind/m_debuglog.c 2009-05-20 06:59:19 UTC (rev 10041)
+++ branches/DARWIN/coregrind/m_debuglog.c 2009-05-20 07:01:07 UTC (rev 10042)
@@ -76,7 +76,7 @@
"movl 0(%%ebx), %%ecx\n" /* %ecx = buf */
"movl 4(%%ebx), %%edx\n" /* %edx = n */
"movl $"VG_STRINGIFY(__NR_write)", %%eax\n" /* %eax = __NR_write */
- "movl $1, %%ebx\n" /* %ebx = stderr */
+ "movl $2, %%ebx\n" /* %ebx = stderr */
"int $0x80\n" /* write(stderr, buf, n) */
"popl %%ebx\n" /* reestablish &block */
"movl %%eax, 0(%%ebx)\n" /* block[0] = result */
@@ -413,7 +413,7 @@
"pushl %%eax\n"
"movl %1, %%eax\n" /* push buf */
"pushl %%eax\n"
- "movl $1, %%eax\n" /* push stderr */
+ "movl $2, %%eax\n" /* push stderr */
"pushl %%eax\n"
"movl $"VG_STRINGIFY(VG_DARWIN_SYSNO_INDEX(__NR_write_nocancel))
", %%eax\n"
@@ -451,7 +451,7 @@
{
UInt __res;
__asm__ volatile (
- "movq $1, %%rdi\n" /* push stderr */
+ "movq $2, %%rdi\n" /* push stderr */
"movq %1, %%rsi\n" /* push buf */
"movl %2, %%edx\n" /* push n */
"movl $"VG_STRINGIFY(VG_DARWIN_SYSNO_NUM(__NR_write_nocancel))
|