Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* gdb changes the path
@ 2007-09-07  9:21 Pawel K
  2007-09-07 11:49 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Pawel K @ 2007-09-07  9:21 UTC (permalink / raw)
  To: gdb

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/


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-09-07 12:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-07  9:21 gdb changes the path Pawel K
2007-09-07 11:49 ` Daniel Jacobowitz
2007-09-07 12:35   ` Pawel K
2007-09-07 13:37     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox