[patch] fix tkill_failed gcc warning in gdbserver
Mon Dec 21 20:55:00 GMT 2009
On Mon, Dec 21, 2009 at 12:48:51PM -0800, Doug Evans wrote:
> How about this?
> 2009-12-21 Doug Evans <email@example.com>
> * 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.
> * 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.
More information about the Gdb-patches