This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: break on a external source file
On Sat, Sep 22, 2007 at 01:21:31AM +0300, costin_c wrote:
> How can I tell to gdb to put a breakpoint on a given line in C++
> source file, located in directory situated other than current one ?
You're doing it right. The problem doesn't have to do with that, but
with this:
> 4 Print::Print(int v)
> 5 {
> 6 val=v+v;
> 7 };
That's a constructor. This is a known bug in GDB, for which Vladimir
Prus has recently posted patches.
--
Daniel Jacobowitz
CodeSourcery