From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25682 invoked by alias); 2 Jan 2002 23:00:54 -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 25568 invoked from network); 2 Jan 2002 23:00:49 -0000 Received: from unknown (HELO nevyn.them.org) (128.2.145.6) by sources.redhat.com with SMTP; 2 Jan 2002 23:00:49 -0000 Received: from drow by nevyn.them.org with local (Exim 3.33 #1 (Debian)) id 16LuNr-0004pV-00; Wed, 02 Jan 2002 18:01:19 -0500 Date: Wed, 02 Jan 2002 15:00:00 -0000 From: Daniel Jacobowitz To: "Oldham, Adam" Cc: "'gdb@sourceware.cygnus.com'" Subject: Re: GDB & SCHED_RR Message-ID: <20020102180119.A18480@nevyn.them.org> Mail-Followup-To: "Oldham, Adam" , "'gdb@sourceware.cygnus.com'" References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.23i X-SW-Source: 2002-01/txt/msg00001.txt.bz2 On Wed, Jan 02, 2002 at 07:54:11AM -0500, Oldham, Adam wrote: > Hey people.... > > I have a Linux 2.4.8 system runnign GDB 5.0. I am trying to debug a program > that starts all its threads using SCHED_RR and running the threads a > different priorities. > > I wanted to ask this to see if I could get a good answer before writing up > any kind of bug. So, is GDB supposed to be able to debug executables that > have Real Time threads? Debug is a vague word, but my problem is that, when > GDB is started and my executable is run through GDB, it appears as though > the thread priorities are not being set up correctly. The threads do not > seem to execute in the same order as when the executable is run standalone. I'd certainly not expect them to be. Thread debugging is intrusive. We can (perhaps) make it a little less obtrusive than it is currently; but the presence of a debugger is noticeable even to basic multithreaded applications. -- Daniel Jacobowitz Carnegie Mellon University MontaVista Software Debian GNU/Linux Developer