From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28538 invoked by alias); 4 Jan 2012 20:49:51 -0000 Received: (qmail 28530 invoked by uid 22791); 4 Jan 2012 20:49:50 -0000 X-SWARE-Spam-Status: No, hits=-7.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 04 Jan 2012 20:49:38 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q04Kna3s010818 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 4 Jan 2012 15:49:36 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q04KnZG2012627; Wed, 4 Jan 2012 15:49:35 -0500 Received: from barimba (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id q04KnYnO025729; Wed, 4 Jan 2012 15:49:34 -0500 From: Tom Tromey To: Marc Khouzam Cc: "'gdb\@sourceware.org'" Subject: Re: Pending breakpoints on lines that don't exist References: Date: Wed, 04 Jan 2012 20:49:00 -0000 In-Reply-To: (Marc Khouzam's message of "Tue, 3 Jan 2012 16:30:21 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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/msg00011.txt.bz2 >>>>> "Marc" == Marc Khouzam writes: Marc> (gdb) b 2 Marc> No line 2 in the current file. Marc> Make breakpoint pending on future shared library load? (y or [n]) y Marc> Breakpoint 1 (2) pending. This is intended, but I wonder whether it would make sense to have different behavior in the case where the file is implicit. That is, "b 2" would just give the old error, but "b currentfile.c:2" would prompt for a pending breakpoint. The rationale for this would be that, in the implicit filename case, the user is presumably asking for exactly the current file. Tom