From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6418 invoked by alias); 15 Mar 2006 12:25:50 -0000 Received: (qmail 6408 invoked by uid 22791); 15 Mar 2006 12:25:49 -0000 X-Spam-Check-By: sourceware.org Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 15 Mar 2006 12:25:47 +0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FJV4B-0006tm-8r for gdb@sources.redhat.com; Wed, 15 Mar 2006 13:25:27 +0100 Received: from zigzag.lvk.cs.msu.su ([158.250.17.23]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Mar 2006 13:25:27 +0100 Received: from ghost by zigzag.lvk.cs.msu.su with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Mar 2006 13:25:27 +0100 To: gdb@sources.redhat.com From: Vladimir Prus Subject: MI and pending breakpoints Date: Wed, 15 Mar 2006 14:22:00 -0000 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.8.2 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00074.txt.bz2 Hello! I've got some problems with "pending breakpoints" functionality, using MI interface. Here's example session: (gdb) break helper.cpp:4 break helper.cpp:4 No source file named helper.cpp. Breakpoint 2 (helper.cpp:4) pending. ^done (gdb) -break-insert helper.cpp:5 No source file named helper.cpp. ^done The CLI command correctly adds pending breakpoint. The helper.cpp file is in dlopen-ed shared library, and the breakpoint will be resolved when the library is loaded. The MI command neither errors out (the reply is "^done", not "^error"), nor it does anything. It does not report breakpoint number, it does not add any breakpoint at all. What is the reason for this? Is this a bug? How do other frontend authors deal with breakpoints in shared libraries, then? Thanks in advance, Volodya