From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4395 invoked by alias); 9 Sep 2011 21:33:32 -0000 Received: (qmail 4385 invoked by uid 22791); 9 Sep 2011 21:33:32 -0000 X-SWARE-Spam-Status: No, hits=-6.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 09 Sep 2011 21:33:13 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p89LXDTR017598 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 9 Sep 2011 17:33:13 -0400 Received: from host1.jankratochvil.net (ovpn-116-38.ams2.redhat.com [10.36.116.38]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p89LXB5R011325 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 9 Sep 2011 17:33:12 -0400 Received: from host1.jankratochvil.net (localhost [127.0.0.1]) by host1.jankratochvil.net (8.14.4/8.14.4) with ESMTP id p89LXAjS007601; Fri, 9 Sep 2011 23:33:10 +0200 Received: (from jkratoch@localhost) by host1.jankratochvil.net (8.14.4/8.14.4/Submit) id p89LX9Jr007598; Fri, 9 Sep 2011 23:33:09 +0200 Date: Sat, 10 Sep 2011 12:46:00 -0000 From: Jan Kratochvil To: logitech Cc: gdb-patches@sourceware.org Subject: Re: Integration of timed breakpoints into GDB Message-ID: <20110909213309.GA7300@host1.jankratochvil.net> References: <32418104.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <32418104.post@talk.nabble.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-09/txt/msg00174.txt.bz2 On Wed, 07 Sep 2011 19:42:36 +0200, logitech wrote: > I have attached a patch file which integrates timed breakpoints into gdb. > http://old.nabble.com/file/p32418104/patchfile.patch patchfile.patch > The format of the command is "break 'x's 'y'us" where 's' and 'us' stand for > seconds and microseconds respectively. Eg. break 1s 0us > When the program execution begins, it breaks after 1sec. On continuing, the > program resumes again and breaks after 1 sec. You can do: (gdb) set target-async on (gdb) continue & (gdb) shell sleep 1 (gdb) interrupt You could also rather code it by the Python scripting. Isn't this a feature you can implement on top of GDB instead of inside GDB? Thanks, Jan