gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: No source file named xxxx


From: Charles Manning
Subject: Re: No source file named xxxx
Date: Thu, 14 May 2009 14:00:06 +1200
User-agent: KMail/1.9.10

On Thursday 14 May 2009 13:07:27 explodingbadger wrote:
> 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 containing main and is in the same directory as the
> executable and is the directory where
> I am starting gdb.
>
> My project is compiled with:
>
> g++ -g3 -gdwarf-2
>
> I am fairly sure that debug symbols are present in the file because if I
> use the strip command to remove the symbols
>
> strip -v -o strip.out Test
>
> strip.out is a lot smaller than Test
>
> Any ideas ?
>
> Gareth

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<tab> should also give you completion.







reply via email to

[Prev in Thread] Current Thread [Next in Thread]