This is the mail archive of the gdb-patches@sourceware.cygnus.com 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]

Re: Make threads architecture-independent on Linux


> 
> > I will advise against it. You can take a look at gdb 4.17.0.14 to
> > see how it is handled there.
> 
> Uh, OK, I've just looked at it.  The bits to make threads
> arch-independent look pretty similar to my patch to me.

But you don't have config/tm-linux.h.

> 
> Perhaps you (or someone) could offer a more specific critique?

You should have config/tm-linux.h enclosed here and modify all the
Linux tm files to include it. Otherwise, linuxthreads won't work
right if REALTIME_HI and REALTIME_LO are not correct.

> Failing more specifics, I'd advocate checking my patch in.  That's
> http://sourceware.cygnus.com/ml/gdb-patches/1999-q4/msg00207.html
> for those who might have lost track.
> 
> > I will make a patch for gdb 4.18 when the backlog improves.
> 
> I don't think that waiting for future patches is a good plan.  This
> isn't just directed at you, HJ, it applies equally to all the Cygnus
> threads changes which are in progress and/or planned.  Especially
> since just about everything being discussed (backlog, floating point,
> libthread_db analogue, &c) is orthogonal to making the config
> arch-independent.
> 

My gdb tree is a mess. I don't have the time to clean it up. I don't
want to spend time on it before gdb in CVS is in reasonable shape.



-- 
H.J. Lu (hjl@gnu.org)
--
/* Macro definitions for Linux targets.
   Copyright 1999 Free Software Foundation, Inc.

This file is part of GDB.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */

/* Some versions of Linux have real-time signal support in the C library, and
   some don't.  We have to include this file to find out.  */
#include <signal.h>

#ifdef __SIGRTMIN
#define REALTIME_LO __SIGRTMIN
#define REALTIME_HI (__SIGRTMAX + 1)
#else
#define REALTIME_LO 32
#define REALTIME_HI 64
#endif


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