From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31819 invoked by alias); 27 Mar 2002 01:04:55 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 31672 invoked from network); 27 Mar 2002 01:04:52 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 27 Mar 2002 01:04:52 -0000 Received: from redhat.com (notinuse.cygnus.com [205.180.231.12]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id RAA06930; Tue, 26 Mar 2002 17:04:39 -0800 (PST) Message-ID: <3CA11821.413AA6CA@redhat.com> Date: Tue, 26 Mar 2002 17:04:00 -0000 From: Michael Snyder Organization: Red Hat, Inc. X-Accept-Language: en MIME-Version: 1.0 To: Kees.Everaars@cwi.nl CC: gdb@sources.redhat.com Subject: Re: gdb References: <200203221518.g2MFI8X07562@bumpa.sen.cwi.nl> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-03/txt/msg00265.txt.bz2 Kees Everaars wrote: > > Hi Eveybody > I have been trying to debug a C program that is running multiple threads. > This has given me a lot of headache. > What I want is that I want to step through a single thread while the other > threads do not get a chance to run while I am stepping in that single thread > (i.e. I want "locked stepping"). Sorry -- you can't really do that. > In the gdb manual I read that it is possible for some Operating systems > to set the so called "scheduler-locking mode". No, that doesn't work for linux. Hmm, maybe somebody has some spare time to make it work? > I have set it on. The answer of my machine (linux version 2.4.3-12 of Redhat). > "Target 'None' cannot support this command". > Now my questions. > 1) Can I configure the installation of Linux in such a way that my machine > support the above command? No. > 2) If not, is there in a near future a new version of Redhat Linux > distribution that supports "locked stepping"? It has not been planned. > 3) Is there a other debugger under Linux that offers "locked stepping"? I don't know, but I don't think so. > 4) Does the Debian linux distribution offers the "locked stepping". > 5) On which Operating systems does "locked stepping" work? The only one that I know of is eCos.