Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: msnyder@vmware.com
Cc: gdb-patches@sourceware.org, pedro@codesourcery.com
Subject: Re: [RFA] linux-nat.c, linux_thread_alive, user errno instead of err
Date: Wed, 02 Mar 2011 00:09:00 -0000	[thread overview]
Message-ID: <201103020008.p2208ODO018859@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <4D6D8774.3090506@vmware.com> (message from Michael Snyder on	Tue, 01 Mar 2011 15:55:32 -0800)

> Date: Tue, 01 Mar 2011 15:55:32 -0800
> From: Michael Snyder <msnyder@vmware.com>
> 
> kill_lwp doesn't return errno.

Makes sense to me.

> 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;


  reply	other threads:[~2011-03-02  0:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-01 23:55 Michael Snyder
2011-03-02  0:09 ` Mark Kettenis [this message]
2011-03-02  1:18   ` Pedro Alves
2011-03-02 18:01     ` Michael Snyder
2011-03-02 18:04       ` Pedro Alves
2011-03-02 18:28         ` Michael Snyder

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201103020008.p2208ODO018859@glazunov.sibelius.xs4all.nl \
    --to=mark.kettenis@xs4all.nl \
    --cc=gdb-patches@sourceware.org \
    --cc=msnyder@vmware.com \
    --cc=pedro@codesourcery.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox