From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7381 invoked by alias); 18 Mar 2005 18:12:25 -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 7267 invoked from network); 18 Mar 2005 18:12:13 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 18 Mar 2005 18:12:13 -0000 Received: from drow by nevyn.them.org with local (Exim 4.44 #1 (Debian)) id 1DCLx6-0008HH-1s; Fri, 18 Mar 2005 13:12:04 -0500 Date: Fri, 18 Mar 2005 18:12:00 -0000 From: Daniel Jacobowitz To: David Steven Trollope Cc: gdb@sources.redhat.com Subject: Re: Linux Realtime Scheduling Option Message-ID: <20050318181204.GA31713@nevyn.them.org> Mail-Followup-To: David Steven Trollope , gdb@sources.redhat.com References: <412F87A4.nail3LU117EOV@mindspring.com> <20050105232657.GB27494@white> <01c4f3aa$Blat.v2.2.2$b4217d20@zahav.net.il> <20050106233136.GA29435@white> <4CE93165-C27F-4CF6-90B8-7632A7BD2672@apple.com> <20050107011211.GB29435@white> <41DDFF0D.5040205@netspace.net.au> <20050111193526.GA5699@white> <41E5E102.2010703@lucent.com> <423B01EC.9060509@lucent.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <423B01EC.9060509@lucent.com> User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00189.txt.bz2 On Fri, Mar 18, 2005 at 10:29:32AM -0600, David Steven Trollope wrote: > Hello! > > I'm working on a project that uses Linux 2.4 on a PowerPC processor with > real time scheduling. > > One of the issues we've encountered is that when the application being > debugged is running real time and gdb/gdbserver is not, scheduling > problems occur. > > I'm wondering if its possible to have an option added to gdb and the > .gdbinit file which specifies the realtime priority which gdb/gdbserver > should run at. > > I searched the mailing list and do not find anything related to this in > the past. > > Has anyone got experience in this area? Do patches already exist? This is not a good idea. There are existing Linux tools to change the realtime priority of a process; why can't you use them to change the priority of the debugger? You can even do this after starting the inferior process if it isn't smart enough to reset its own priority. -- Daniel Jacobowitz CodeSourcery, LLC