From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24692 invoked by alias); 21 Jan 2008 07:28:07 -0000 Received: (qmail 24684 invoked by uid 22791); 21 Jan 2008 07:28:07 -0000 X-Spam-Check-By: sourceware.org Received: from py-out-1112.google.com (HELO py-out-1112.google.com) (64.233.166.182) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 21 Jan 2008 07:27:47 +0000 Received: by py-out-1112.google.com with SMTP id v53so2316086pyh.33 for ; Sun, 20 Jan 2008 23:27:45 -0800 (PST) Received: by 10.142.246.8 with SMTP id t8mr2940514wfh.199.1200900464592; Sun, 20 Jan 2008 23:27:44 -0800 (PST) Received: by 10.142.82.4 with HTTP; Sun, 20 Jan 2008 23:27:44 -0800 (PST) Message-ID: <9406d1ca0801202327p4d0ba61ftb836e90aba36d5ba@mail.gmail.com> Date: Mon, 21 Jan 2008 07:28:00 -0000 From: scl To: gdb@sourceware.org Subject: How can I delete breakpoint automatically? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2008-01/txt/msg00205.txt.bz2 I write one hook command as below, when program stop at some breakpoint, I want to delete the current breakpoint automatically. define hookpost-continue # check something intersting delete current breakpoint # because huge calls, I must delete it! end Can I do that? i know continue command will print one line such as Breakpoint 5, dpb_split_field (fs=0x0) at mbuffer.c:2862 How can I use this information in hookpost-continue? thanks a lot!