From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32104 invoked by alias); 7 Sep 2007 12:32:15 -0000 Received: (qmail 32095 invoked by uid 22791); 7 Sep 2007 12:32:14 -0000 X-Spam-Check-By: sourceware.org Received: from web33804.mail.mud.yahoo.com (HELO web33804.mail.mud.yahoo.com) (209.191.69.167) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 07 Sep 2007 12:32:03 +0000 Received: (qmail 71646 invoked by uid 60001); 7 Sep 2007 12:32:01 -0000 X-YMail-OSG: drEcSsgVM1l54nHoUgZ2CQeZDOJ7ikfGgWzUus85822DIGXEjdbEMqhbau9_5iT4hgxLipSn7gwliv.vXv4DslPfpLWyQ0VjYlKic5BITB8A.vjfGI3OW3QSGrRlew-- Received: from [83.14.252.50] by web33804.mail.mud.yahoo.com via HTTP; Fri, 07 Sep 2007 05:32:01 PDT Date: Fri, 07 Sep 2007 12:35:00 -0000 From: Pawel K Subject: Re: gdb changes the path To: gdb@sourceware.org In-Reply-To: <20070907114628.GA18775@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <227141.71071.qm@web33804.mail.mud.yahoo.com> 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/msg00078.txt.bz2 --- Daniel Jacobowitz wrote: > On Fri, Sep 07, 2007 at 02:14:45AM -0700, Pawel K > wrote: > > 2. How to force gdb to use the relative path as in > > breakpoint nr 3 above ? > > Why? It's a different name for the same file, and > GDB knows its full > name. Since when I specify the breakpoint like: (gdb) bre functions.h:100 I cannot "list" the source lines. I can "list" the source line when I specify the breakpoint like in step 3 or like as follows: (gdb) bre include/functions.h:100 I also found that when I specify the breakpoint like in step 3 or like (gdb) include/functions.h:100 the gdb breaks execution in the next function. Both functions are defined inside the the same class. So now I have 2 problems: 1. I cannot list the source code in case of absolute path. 2. Gdb stops execution in the next function. As I wrote in my previous e-mail. I compile it as follows: g++ -O0 -g ... Do You have any idea what can be wrong ? thank You for help ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/