This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Filename with "./" in breakpoint command
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: gdb at sources dot redhat dot com
- Date: Sat, 03 Dec 2005 16:17:45 +0200
- Subject: Re: Filename with "./" in breakpoint command
- References: <dms4je$qit$1@sea.gmane.org>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Vladimir Prus <ghost@cs.msu.su>
> Date: Sat, 03 Dec 2005 15:55:10 +0300
>
> $ ~/build/gdb-cvs/gdb/gdb tracepoints
> GNU gdb 6.4.50.20051121-cvs
> (gdb) b ./tracepoints.cpp:12
> No source file named ./tracepoints.cpp.
> Breakpoint 1 (./tracepoints.cpp:12) pending.
> (gdb) b tracepoints.cpp:12
> Breakpoint 2 at 0x80483c4: file tracepoints.cpp, line 12.
> (gdb) quit
> $ ls tracepoints.cpp
> tracepoints.cpp
>
> It looks like leading "./" in file name confuses gdb. This "./" thing is
> send by KDevelop in some cases.
What are the actual source file names recorded in the debug info?
Please show us that, and we will be able to reason whether this is a
feature, a bug, or a missing feature.