public inbox for insight@sourceware.org
 help / color / mirror / Atom feed
From: Keith Seitz <keiths@redhat.com>
To: manmeet.johar@conexant.com
Cc: "insight@sources.redhat.com" <insight@sources.redhat.com>
Subject: Re: Need to automatically track infinite execution
Date: Wed, 19 Jan 2005 17:01:00 -0000	[thread overview]
Message-ID: <1106154048.3649.5.camel@lindt.uglyboxes.com> (raw)
In-Reply-To: <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

      parent reply	other threads:[~2005-01-19 17:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-13 22:33 [PATCH] "Upgrade" to autoconf 2.59 Keith Seitz
     [not found] ` <41EE4524.9070608@conexant.com>
2005-01-19 17:01   ` Keith Seitz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1106154048.3649.5.camel@lindt.uglyboxes.com \
    --to=keiths@redhat.com \
    --cc=insight@sources.redhat.com \
    --cc=manmeet.johar@conexant.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).