This is the mail archive of the
insight@sources.redhat.com
mailing list for the Insight project.
Re: Need to automatically track infinite execution
- From: Keith Seitz <keiths at redhat dot com>
- To: manmeet dot johar at conexant dot com
- Cc: "insight at sources dot redhat dot com" <insight at sources dot redhat dot com>
- Date: Wed, 19 Jan 2005 09:00:48 -0800
- Subject: Re: Need to automatically track infinite execution
- References: <1105655607.2743.5.camel@lindt.uglyboxes.com> <41EE4524.9070608@conexant.com>
On Wed, 2005-01-19 at 03:31, Manmeet Singh Johar wrote:
> During execution, is there any automated way of stopping the execution
> if the execution has taken more than a stipulated amount of time (say
> 10 mins)?
Not with gdb -- unless you have a program which will send an interrupt
to your gdb process after a timeout.
However, this _can_ be done with insight. Basically what you want to do
is have something execute the tcl command "after TIMEOUT gdb_stop"
(TIMEOUT in milliseconds). You can do this multiple ways:
o add it to insight's target selection dialog (in the "execute after
attaching" bit -- you'll need to pass the above tcl command to gdb using
the "tk" command, i.e., "tk after TIMEOUT gdb_stop")
o add it to your gdb startup script which does all the target setup and
the like
o write a plug-in to add a menu option or toolbar button
Keith