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

Re: C++: a gdb problem when debugging multiple files source program.



Shaul Karl <shaulka@bezeqint.net> writes:

> For some reason the behavior of gdb when I split a C++ program into 
> multiple files is not the same as when there is only one source file. 

> gdb version is 5.1.

Can you provide more details on your platform, such as glibc version,
architecture, kernel? Not sure it is relevant, but still, let's have
all the info...

> [02:50:20 tmp]$ g++-3.0 -v

I have not been as adventurous as to use g++-3.0 yet. Does it happen
with g++-2.95? Can you check with RH g++-2.96? [If you can't, I will
be able to.] Before anyone plunges into it, maybe we can determine
the scope of the problem...

> CXXFLAGS = -Wall -ggdb
> LDFLAGS  = -ggdb

Try just -g rather than -ggdb. Again, this is for sanity check.

-- 
Oleg Goldshmidt | ogoldshmidt@NOSPAM.computer.org 
If it aint't broken it hasn't got enough features yet.

=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il