From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20594 invoked by alias); 3 Jan 2012 21:30:45 -0000 Received: (qmail 20585 invoked by uid 22791); 3 Jan 2012 21:30:44 -0000 X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from imr4.ericy.com (HELO imr4.ericy.com) (198.24.6.9) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 03 Jan 2012 21:30:30 +0000 Received: from eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) by imr4.ericy.com (8.14.3/8.14.3/Debian-9.1ubuntu1) with ESMTP id q03LUSxP023159 for ; Tue, 3 Jan 2012 15:30:30 -0600 Received: from EUSAACMS0703.eamcs.ericsson.se ([169.254.1.43]) by eusaamw0711.eamcs.ericsson.se ([147.117.20.178]) with mapi; Tue, 3 Jan 2012 16:30:24 -0500 From: Marc Khouzam To: "'gdb@sourceware.org'" Date: Tue, 03 Jan 2012 21:30:00 -0000 Subject: Pending breakpoints on lines that don't exist Message-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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: 2012-01/txt/msg00000.txt.bz2 Hi, I grabbed the 7.4 branch to make sure Eclipse was ready for it. After no longer using the removed command 'maint set python print-stack on' all our JUnit tests now pass with the new GDB except=20 one, which attempts to set a breakpoint on an invalid line. GDB 7.4 now sets a pending breakpoint on lines that don't exist. Is this a regression or a wanted change? I didn't want to update my tests if this was a regression. The change is illustrated in the two short sessions below. Note that this also happens using line 0 (which is what my JUnit test does). Thanks Marc > gdb.7.3 a.out GNU gdb (GDB) 7.3.1 (gdb) l 1 int main() { return 0; } (gdb) l=20 Line number 2 out of range; a.cc has 1 lines. (gdb) b 2 No line 2 in file "a.cc". (gdb) info b No breakpoints or watchpoints. > gdb.7.4 a.out GNU gdb (GDB) 7.3.91.20120103-cvs (gdb) l 1 int main() { return 0; } (gdb) l=20 Line number 2 out of range; a.cc has 1 lines. (gdb) b 2 No line 2 in the current file. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (2) pending. (gdb) info b Num Type Disp Enb Address What 1 breakpoint keep y 2