From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9226 invoked by alias); 7 Sep 2011 17:42:53 -0000 Received: (qmail 9216 invoked by uid 22791); 7 Sep 2011 17:42:50 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED,RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from sam.nabble.com (HELO sam.nabble.com) (216.139.236.26) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 07 Sep 2011 17:42:37 +0000 Received: from isper.nabble.com ([192.168.236.156]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1R1M8y-00026M-Iq for gdb-patches@sourceware.org; Wed, 07 Sep 2011 10:42:36 -0700 Message-ID: <32418104.post@talk.nabble.com> Date: Wed, 07 Sep 2011 23:11:00 -0000 From: logitech To: gdb-patches@sourceware.org Subject: Integration of timed breakpoints into GDB MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/msg00127.txt.bz2 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.