relative file paths?

christopher j bottaro
2003-02-26T22:50:59Z

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