From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 866 invoked by alias); 26 Feb 2008 20:15:00 -0000 Received: (qmail 858 invoked by uid 22791); 26 Feb 2008 20:14:59 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 26 Feb 2008 20:14:32 +0000 Received: from kahikatea.snap.net.nz (198.31.255.123.static.snap.net.nz [123.255.31.198]) by viper.snap.net.nz (Postfix) with ESMTP id 0D3913DA279 for ; Wed, 27 Feb 2008 09:14:25 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 402F68FC6D; Wed, 27 Feb 2008 09:14:24 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18372.29471.522929.827100@kahikatea.snap.net.nz> Date: Tue, 26 Feb 2008 20:24:00 -0000 To: gdb-patches@sources.redhat.com Subject: Pending breakpoints X-Mailer: VM 7.19 under Emacs 22.1.91.1 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: 2008-02/txt/msg00405.txt.bz2 I still think "info break" isn't quite right for pending breakpoints. This isn't about previous behaviour, just missing infoemation. Currently: (gdb) b sqrt Function "sqrt" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (sqrt) pending. (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y sqrt (gdb) start Breakpoint 2 at 0x804862c: file myprog.c, line 95. Starting program: /home/nickrob/myprog main (argc=1, argv=0xbff1d1e4) at myprog.c:95 95 main (int argc, char **argv) { (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y 0xb7f52114 (gdb) nosharedlibrary (gdb) info break Num Type Disp Enb Address What 1 breakpoint keep y and the last "info break" no longer says what the breakpoint is for. I don't really know when you would unload the shared library, in practice, but I think this line should look like the first output from "info break", i.e., include sqrt. The patch below does that. It's a bit of a guess, though, and I've not run the testuite. -- Nick http://www.inet.net.nz/~nickrob *** breakpoint.c 26 Feb 2008 21:24:24 +1300 1.303 --- breakpoint.c 26 Feb 2008 22:42:54 +1300 *************** static void print_breakpoint_location (s *** 3311,3317 **** ui_out_field_int (uiout, "line", b->line_number); } ! else if (!b->loc) { ui_out_field_string (uiout, "pending", b->addr_string); } --- 3311,3317 ---- ui_out_field_int (uiout, "line", b->line_number); } ! else if (!b->loc || loc->shlib_disabled) { ui_out_field_string (uiout, "pending", b->addr_string); }