On x86-linux, send debuglog output to stderr, not stdout.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@10041
This commit is contained in:
Nicholas Nethercote 2009-05-20 06:59:19 +00:00
parent 48431e8fd4
commit 1a110f34eb

View File

@ -71,7 +71,7 @@ static UInt local_sys_write_stderr ( HChar* buf, Int n )
"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 */