public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Filename with "./" in breakpoint command
@ 2005-12-03 12:58 Vladimir Prus
  2005-12-03 14:17 ` Eli Zaretskii
  2005-12-03 14:19 ` Bob Rossi
  0 siblings, 2 replies; 24+ messages in thread
From: Vladimir Prus @ 2005-12-03 12:58 UTC (permalink / raw)
  To: gdb


Hi,
I just got the following gdb session:

        $ ~/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. I'm about to fix on KDevelop side just to
make sure it works with gdb 6.4, but actually, this seems like a bug in
gdb. Say, I have two files called util.cpp -- one in current dir, and
another in some library. It's reasonable to use "./util.cpp" to refer to a
file in the current dir, no? So, is this a bug, and should I file it in the
tracker?

- Volodya


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

end of thread, other threads:[~2005-12-08 20:53 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-03 12:58 Filename with "./" in breakpoint command Vladimir Prus
2005-12-03 14:17 ` Eli Zaretskii
2005-12-03 14:22   ` Bob Rossi
2005-12-03 14:55     ` Eli Zaretskii
2005-12-03 15:01       ` Bob Rossi
2005-12-05  6:53   ` Vladimir Prus
2005-12-05 18:39     ` Eli Zaretskii
2005-12-05 18:56       ` Daniel Jacobowitz
2005-12-06  4:27         ` Eli Zaretskii
2005-12-06  4:55           ` Daniel Jacobowitz
2005-12-06 11:56             ` Bob Rossi
2005-12-06 14:01               ` Joel Brobecker
2005-12-06 14:26                 ` Andrew STUBBS
2005-12-06 20:13               ` Eli Zaretskii
2005-12-06 20:11             ` Eli Zaretskii
2005-12-06 20:17               ` Daniel Jacobowitz
2005-12-06 21:02                 ` Eli Zaretskii
2005-12-06 21:09                   ` Daniel Jacobowitz
2005-12-06 22:32                     ` Eli Zaretskii
2005-12-07  7:49                     ` Vladimir Prus
2005-12-07 14:51                       ` Daniel Jacobowitz
2005-12-07 16:46                         ` Vladimir Prus
2005-12-08 20:53                           ` Paul Gilliam
2005-12-03 14:19 ` Bob Rossi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).