This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
relative file paths?
- From: christopher j bottaro <cjb at cs dot utexas dot edu>
- To: gdb at sources dot redhat dot com
- Date: Wed, 26 Feb 2003 16:51:04 -0600
- Subject: relative file paths?
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