public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/13870] New: gdb doesn't find source file with absolute path after the first try (second try succeeds)
@ 2012-03-19 22:01 andreas at pietzowski dot de
  2012-03-19 22:04 ` [Bug breakpoints/13870] " andreas at pietzowski dot de
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: andreas at pietzowski dot de @ 2012-03-19 22:01 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13870

             Bug #: 13870
           Summary: gdb doesn't find source file with absolute path after
                    the first try (second try succeeds)
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: breakpoints
        AssignedTo: unassigned@sourceware.org
        ReportedBy: andreas@pietzowski.de
    Classification: Unclassified


I have a problem with my KDevelop/qmake project debugging with absolute files
(KDevelop uses absolute paths for debugging). When I start gdb from command
line I can reproduce why KDevelop ist breaking at the breakpoints I set in the
IDE.

To explain it better, here is exactly what I did:

$ gdb ./myapplication

(gdb) break /absolute/file/path/to/main.cpp:34
No source file named /absolute/file/path/to/main.cpp.
Make breakpoint pending on future shared library load? (y or [n]) n

(gdb) list
31      #include "blabla.h"
32
33      int main(int argc, char *argv[]) {
34          QApplication a( argc, argv );

(gdb) break /absolute/file/path/to/main.cpp:34
Breakpoint 1 at 0xC0FFEE: file relative/path/to/main.cpp, line 34.

(gdb) run
Breakpoint 1, main (argc=1, argv=0x7fffffffe108) at application/main.cpp:34
34          QApplication a( argc, argv );

Isn't that strange? Two times the same break command to gdb with different
results? Do you have any ideas why gdb first need the "list" command to detect
the correct file?

By the way: My project has about 1500 source files...

Thanks
Andreas

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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

end of thread, other threads:[~2014-05-28 19:46 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-19 22:01 [Bug breakpoints/13870] New: gdb doesn't find source file with absolute path after the first try (second try succeeds) andreas at pietzowski dot de
2012-03-19 22:04 ` [Bug breakpoints/13870] " andreas at pietzowski dot de
2012-04-04 16:44 ` niko.sams at gmail dot com
2014-02-16 18:28 ` jackie.rosen at hushmail dot com
2014-05-28 19:46 ` schwab at sourceware dot org

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).