This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] linux-nat.c, linux_thread_alive, user errno instead of err
- From: Michael Snyder <msnyder at vmware dot com>
- To: "gdb-patches at sourceware dot org" <gdb-patches at sourceware dot org>, Pedro Alves <pedro at codesourcery dot com>
- Date: Tue, 01 Mar 2011 15:55:32 -0800
- Subject: [RFA] linux-nat.c, linux_thread_alive, user errno instead of err
kill_lwp doesn't return errno.
2011-03-01 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
* linux-nat.c (linux_thread_alive): kill_lwp does not return
an errno.
Index: linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/linux-nat.c,v
retrieving revision 1.197
diff -u -p -u -p -r1.197 linux-nat.c
--- linux-nat.c 1 Mar 2011 00:40:22 -0000 1.197
+++ linux-nat.c 1 Mar 2011 23:50:34 -0000
@@ -4045,7 +4045,7 @@ linux_thread_alive (ptid_t ptid)
fprintf_unfiltered (gdb_stdlog,
"LLTA: KILL(SIG0) %s (%s)\n",
target_pid_to_str (ptid),
- err ? safe_strerror (err) : "OK");
+ err ? safe_strerror (errno) : "OK");
if (err != 0)
return 0;