This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
gdb changes the path
- From: Pawel K <pawlaczus at yahoo dot com>
- To: gdb at sourceware dot org
- Date: Fri, 7 Sep 2007 02:14:45 -0700 (PDT)
- Subject: gdb changes the path
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/