From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13849 invoked by alias); 8 Sep 2011 12:29:27 -0000 Received: (qmail 13840 invoked by uid 22791); 8 Sep 2011 12:29:26 -0000 X-SWARE-Spam-Status: No, hits=-2.7 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-wy0-f169.google.com (HELO mail-wy0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 08 Sep 2011 12:28:52 +0000 Received: by wyi11 with SMTP id 11so614002wyi.0 for ; Thu, 08 Sep 2011 05:28:50 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.169.74 with SMTP id m52mr760981wel.33.1315484930703; Thu, 08 Sep 2011 05:28:50 -0700 (PDT) Received: by 10.216.159.205 with HTTP; Thu, 8 Sep 2011 05:28:50 -0700 (PDT) In-Reply-To: <32418104.post@talk.nabble.com> References: <32418104.post@talk.nabble.com> Date: Thu, 08 Sep 2011 12:57:00 -0000 Message-ID: Subject: Re: Integration of timed breakpoints into GDB From: Abhijit Halder To: logitech Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 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/msg00130.txt.bz2 On Wed, Sep 7, 2011 at 11:12 PM, logitech wrote: > > Hello, > 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. > To continuously break the program after a specific time interval a separate > script can be written as shown : > > break 0s 500us > run > while(1) > p $pc > c > end > quit > > Further details about the implementation can be found here > http://www.youtube.com/watch?v=PAFQlxqI7qs&feature=player_embedded#! GDB > Timed breakpoint > > I would highly appreciate comments and feedback from your side regarding the > same. > Thank you. > > -- > View this message in context: http://old.nabble.com/Integration-of-timed-breakpoints-into-GDB-tp32418104p32418104.html > Sent from the Sourceware - gdb-patches mailing list archive at Nabble.com. > > I have not yet seen the patch, but before that I would like to get answer of few questions: 1. What happen if your program execution is stuck inside a blocking syscall when it should break? I believe the time you are talking about is not a hard bound limit. 2. What is the usecase of this feature? -Abhijit