This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Linux Realtime Scheduling Option
- From: Daniel Jacobowitz <drow at false dot org>
- To: David Steven Trollope <trollope at lucent dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 18 Mar 2005 13:12:04 -0500
- Subject: Re: Linux Realtime Scheduling Option
- 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>
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