No source file named xxxx

2009-05-13 Thread explodingbadger
Hi I have a project and although I am able to set break points on functions Ok I am unable to set break points using filename:line. For example: (gdb) break Test.cpp:10 No source file named Test.cpp. Make breakpoint pending on future shared library load? (y or [n]) Test.cpp is the file containi

Re: No source file named xxxx

2009-05-13 Thread explodingbadger
> I would not rely on strip to tell you this. Try objdump. > In gdb you should be able to hit tab after entering break and gdb should > show > you symbols. You should be able to see file names in the symbols. > (gdb) break Tes should also give you completion. Hi thanks very much for your reply

Re: No source file named xxxx

2009-05-13 Thread explodingbadger
main > Breakpoint 1 at 0x8048385: file xx.c, line 3. > > The default -g level is 2, I wonder whether -g3 is causing some confusion. > Try > just -g > > > > On Thursday 14 May 2009 14:19:31 explodingbadger wrote: >> > I would not rely on strip to tell you thi