From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15771 invoked by alias); 28 Jun 2010 15:21:34 -0000 Received: (qmail 15761 invoked by uid 22791); 28 Jun 2010 15:21:33 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Jun 2010 15:21:28 +0000 Received: (qmail 12156 invoked from network); 28 Jun 2010 15:21:26 -0000 Received: from unknown (HELO orlando.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 28 Jun 2010 15:21:26 -0000 From: Pedro Alves To: gdb@sourceware.org Subject: Re: gdb "automation" question Date: Mon, 28 Jun 2010 15:21:00 -0000 User-Agent: KMail/1.13.2 (Linux/2.6.31-10-rt; KDE/4.4.2; x86_64; ; ) Cc: Steffen Dettmer References: In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201006281621.23546.pedro@codesourcery.com> X-IsSubscribed: yes 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: 2010-06/txt/msg00137.txt.bz2 I'll answer this one: On Monday 28 June 2010 16:11:44, Steffen Dettmer wrote: > #3 my connect command has to disable breakpoints. > I cannot re-enable them, because it does not know which > breakpoints were enabled and which not. > I've read about `save breakpoints' and tried it: > > (gdb) i b > Num Type Disp Enb Address What > 1 breakpoint keep y 0x000d2b44 in logTrace > at xxx.c:123 > stop only if $show_log_py() > > (gdb) save breakpoints tmpfile > warning: save-tracepoints: no tracepoints to save. > > (gdb) source tmpfile > tmpfile: No such file or directory. > > Would `save breakpoints' help to re-enable my breakpoints? > How do I use it correctly? "save breakpoints" is new, starting with gdb 7.2. 7.1 only had "save-tracepoints". So in < 7.2, "save breakpoints tmpfile" is the same as "save-tracepoints breakpoints tmpfile", that is, you're attempting to save tracepoints to a file named "breakpoints tmpfile". This is why you see the warning above. -- Pedro Alves