From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7369 invoked by alias); 21 Dec 2009 20:55:58 -0000 Received: (qmail 7360 invoked by uid 22791); 21 Dec 2009 20:55:58 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 21 Dec 2009 20:55:55 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id CCBA310A5E; Mon, 21 Dec 2009 20:55:53 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id B746510548; Mon, 21 Dec 2009 20:55:53 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1NMpIH-0007pi-E2; Mon, 21 Dec 2009 15:55:53 -0500 Date: Mon, 21 Dec 2009 20:55:00 -0000 From: Daniel Jacobowitz To: Doug Evans Cc: gdb-patches@sourceware.org Subject: Re: [patch] fix tkill_failed gcc warning in gdbserver Message-ID: <20091221205553.GB29538@caradoc.them.org> Mail-Followup-To: Doug Evans , gdb-patches@sourceware.org References: <20091221201033.2B76C84412@ruffy.mtv.corp.google.com> <20091221201921.GA27626@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-12/txt/msg00325.txt.bz2 On Mon, Dec 21, 2009 at 12:48:51PM -0800, Doug Evans wrote: > How about this? > > 2009-12-21 Doug Evans > > 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