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]

Re: [patch] fix tkill_failed gcc warning in gdbserver


On Mon, Dec 21, 2009 at 12:48:51PM -0800, Doug Evans wrote:
> How about this?
> 
> 2009-12-21  Doug Evans  <dje@google.com>
> 
>         gdb/
>         * linux-nat.c (kill_lwp): Minor cleanup, move definition of
>         tkill_failed into ifdef HAVE_TKILL_SYSCALL.  Move setting of errno
>         there too.  Delete unnecessary resetting of errno after syscall.
> 	Minor comment changes to match gdbserver/linux-low.c:kill_lwp.
> 
>         gdbserver/
>         * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill.
>         Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc
>         warning ifndef __NR_tkill.  Move setting of errno there too.
>         Delete unnecessary resetting of errno after syscall.
>         Minor comment changes to match gdb/linux-nat.c:kill_lwp.

Fine with me.

-- 
Daniel Jacobowitz
CodeSourcery


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