From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23377 invoked by alias); 7 Sep 2007 09:15:02 -0000 Received: (qmail 23338 invoked by uid 22791); 7 Sep 2007 09:14:59 -0000 X-Spam-Check-By: sourceware.org Received: from web33808.mail.mud.yahoo.com (HELO web33808.mail.mud.yahoo.com) (209.191.69.171) by sourceware.org (qpsmtpd/0.31) with SMTP; Fri, 07 Sep 2007 09:14:47 +0000 Received: (qmail 58269 invoked by uid 60001); 7 Sep 2007 09:14:45 -0000 X-YMail-OSG: hmrgEAsVM1n5NV0hwm9eCM6dZvaUp4BcoUhXNGtqqp4BSS6LbQ5gQbb7aLZB_Wfrxb0wAH5iDkpPZn6Z6G99L9YIvUu8EO7oqSM2HF9pLHHCLLTAnqt3qWOLHNZucg-- Received: from [83.14.252.50] by web33808.mail.mud.yahoo.com via HTTP; Fri, 07 Sep 2007 02:14:45 PDT Date: Fri, 07 Sep 2007 09:21:00 -0000 From: Pawel K Subject: gdb changes the path To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <879142.58013.qm@web33808.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/msg00071.txt.bz2 Hello Why gdb changes path while it works ? My small project consists of 2 files: /project/main.cpp /project/include/functions.h main.cpp includes functions.h main.cpp has been compiled as follows: g++ -O0 -g ... Now is the case: (gdb) bre functions.h:100 Breakpoint ... file /projekt/include/functions.h:100 (gdb) bre main.cpp:200 Breakpoint ... file main.cpp (gdb) bre functions.h:100 Breakpoint ... file include/functions.h:100 1. Why gdb changes the internal path after setting up the breakpoint at main.cpp ? 2. How to force gdb to use the relative path as in breakpoint nr 3 above ? I use: gdb 6.6 g++ 4.1.2 Thank You for help ____________________________________________________________________________________ Need a vacation? Get great deals to amazing places on Yahoo! Travel. http://travel.yahoo.com/