This is the mail archive of the insight@sources.redhat.com mailing list for the Insight project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need to automatically track infinite execution


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]