From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9362 invoked by alias); 22 Sep 2007 10:51:49 -0000 Received: (qmail 9352 invoked by uid 22791); 22 Sep 2007 10:51:48 -0000 X-Spam-Check-By: sourceware.org Received: from wx-out-0506.google.com (HELO wx-out-0506.google.com) (66.249.82.231) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 22 Sep 2007 10:51:44 +0000 Received: by wx-out-0506.google.com with SMTP id s7so815731wxc for ; Sat, 22 Sep 2007 03:51:40 -0700 (PDT) Received: by 10.90.96.7 with SMTP id t7mr3527426agb.1190458300469; Sat, 22 Sep 2007 03:51:40 -0700 (PDT) Received: by 10.90.69.9 with HTTP; Sat, 22 Sep 2007 03:51:40 -0700 (PDT) Message-ID: Date: Sat, 22 Sep 2007 13:52:00 -0000 From: costin_c To: costin_c , gdb@sourceware.org Subject: Re: break on a external source file In-Reply-To: <20070921223918.GA27875@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070921223918.GA27875@caradoc.them.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: 2007-09/txt/msg00178.txt.bz2 On 9/22/07, Daniel Jacobowitz wrote: > On Sat, Sep 22, 2007 at 01:21:31AM +0300, costin_c wrote: > > How can I tell to gdb to put a breakpoint on a given line in C++ > > source file, located in directory situated other than current one ? > > You're doing it right. The problem doesn't have to do with that, but > with this: > > 4 Print::Print(int v) > > 5 { > > 6 val=v+v; > > 7 }; > > That's a constructor. This is a known bug in GDB, for which Vladimir > Prus has recently posted patches. > For line 11 form Print::print() in works fine 9 void Print::print() 10 { 11 std::cout<