From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9740 invoked by alias); 21 Sep 2007 22:39:24 -0000 Received: (qmail 9728 invoked by uid 22791); 21 Sep 2007 22:39:23 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 21 Sep 2007 22:39:21 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 9E373982AD; Fri, 21 Sep 2007 22:39:19 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 8043398100; Fri, 21 Sep 2007 22:39:19 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1IYr9a-0007G2-93; Fri, 21 Sep 2007 18:39:18 -0400 Date: Sat, 22 Sep 2007 01:10:00 -0000 From: Daniel Jacobowitz To: costin_c Cc: gdb@sourceware.org Subject: Re: break on a external source file Message-ID: <20070921223918.GA27875@caradoc.them.org> Mail-Followup-To: costin_c , gdb@sourceware.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.15 (2007-04-09) 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/msg00176.txt.bz2 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. -- Daniel Jacobowitz CodeSourcery