[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb
Subject:    relative file paths?
From:       christopher j bottaro <cjb () cs ! utexas ! edu>
Date:       2003-02-26 22:51:04
Message-ID: 200302261651.04300.cjb () cs ! utexas ! edu
[Download RAW message or body]

gdb won't let me set a breakpoint when i use a relative file name.  i have to 
cd into the dir where the file is to make a break point.  its kinda annoying.  
am i doing something wrong or is this how its suppose to be?

ex output:

(gdb) pwd
Working directory /home/cjb/projects/cs378/linux-2.4.19.
(gdb) b arch/um/kernel/hostandtime.c:9
No source file named arch/um/kernel/hostandtime.c.
(gdb) cd arch/um/kernel/             
Working directory /home/cjb/projects/cs378/linux-2.4.19/arch/um/kernel.
(gdb) b hostandtime.c:9
Breakpoint 4 at 0xa0074187: file hostandtime.c, line 9.

thanks for the help,
-- christopher

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic