[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: C++: a gdb problem when debugging multiple files source program.
- To: Shaul Karl <shaulka(at-nospam)bezeqint.net>
- Subject: Re: C++: a gdb problem when debugging multiple files source program.
- From: Oleg Goldshmidt <ogoldshmidt(at-nospam)computer.org>
- Date: 22 Dec 2001 14:34:51 -0500
- Cc: linux-il(at-nospam)linux.org.il
- Delivered-To: linux.org.il-linux-il@linux.org.il
- In-Reply-To: <E16HMwn-0002w1-00@rakefet>
- Organization: Speaking for myself only.
- Original-Sender: ogoldshmidt@computer.org
- References: <E16HMwn-0002w1-00@rakefet>
- Reply-To: linux-il(at-nospam)linux.org.il
- Sender: ogoldshmidt(at-nospam)computer.org
- Sender: linux-il-bounce(at-nospam)cs.huji.ac.il
- User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Cuyahoga Valley)
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