From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 302 invoked by alias); 24 Oct 2009 14:13:31 -0000 Received: (qmail 32759 invoked by uid 22791); 24 Oct 2009 14:13:30 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_00,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Oct 2009 14:13:24 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0KS000H00V91W500@a-mtaout22.012.net.il> for gdb@sourceware.org; Sat, 24 Oct 2009 16:12:41 +0200 (IST) Received: from HOME-C4E4A596F7 ([87.70.77.20]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KS000E02VH4RY90@a-mtaout22.012.net.il> for gdb@sourceware.org; Sat, 24 Oct 2009 16:12:41 +0200 (IST) Date: Sat, 24 Oct 2009 15:03:00 -0000 From: Eli Zaretskii Subject: Breakpoint commands To: gdb@sourceware.org Reply-to: Eli Zaretskii Message-id: <83iqe4g9t2.fsf@gnu.org> 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: 2009-10/txt/msg00350.txt.bz2 Some commands seem to be not working inside breakpoint commands, in the sense that breakpoint commands after them are not executed. Two examples that I tried were `finish' and `until'. What I wanted was to stop at function entry, print some variable, then let the function run to completion, and print some other (global) variable that gets modified by this function. The breakpoint commands therefore were something like break FOO commands >print BAR >finish >print BAZ >end and similarly with `until' instead of `finish'; I used the last line of the function's body for its argument. What I see is that the second `print' is never executed. Sounds like a bug to me. Or did I miss something?