From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9949 invoked by alias); 8 Dec 2005 20:43:05 -0000 Received: (qmail 9941 invoked by uid 22791); 8 Dec 2005 20:43:05 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 08 Dec 2005 20:43:03 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1EkSbV-0007gk-7V; Thu, 08 Dec 2005 15:43:01 -0500 Date: Fri, 09 Dec 2005 11:26:00 -0000 From: Daniel Jacobowitz To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [linux] Always ignore restart/cancellation signals Message-ID: <20051208204301.GA29490@nevyn.them.org> Mail-Followup-To: Kevin Buettner , gdb-patches@sources.redhat.com References: <20051208142420.GA21882@nevyn.them.org> <200512081950.jB8Jo9im029464@elgar.sibelius.xs4all.nl> <20051208133824.24b4c680@ironwood.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20051208133824.24b4c680@ironwood.lan> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2005-12/txt/msg00159.txt.bz2 On Thu, Dec 08, 2005 at 01:38:24PM -0700, Kevin Buettner wrote: > > Hmm, I thought symbols starting with __ were "reserved by the > > implemntation" and should not be used by user space programs. We're a program tightly tied to the implementation, and they're symbols provided by the implementation. gdbserver already uses them; rda was recently changed to use them; gdb/signals/signals.c already uses them. > > For the symbols in question, the header file, , says: > > /* These are the hard limits of the kernel. These values should not be > used directly at user level. */ > #define __SIGRTMIN 32 > #define __SIGRTMAX (_NSIG - 1) > > So the comment supports your claim. > > The only alternative that I can think of is to hardcode the constant > (32, in this case) into the GDB sources. Of these two approaches, I'd > prefer to use __ symbol from the system headers. I do think that we > ought to check for its existence first though. I'll do it if you like. They will exist in all LinuxThreads and NPTL headers, to the best of my knowledge, and if you don't have either of those than linux-thread-db.c won't do you any good anyway... -- Daniel Jacobowitz CodeSourcery, LLC