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

Re: [ns] Problem debugging C++ using gdb.



I would suggest to remove all .o files before recompiling.

btw, it is better to set CCOPT = -g than explicitly have gcc -g 


>Date: Mon, 13 Nov 2000 13:20:43 -0800 (PST)
>From: Canhui Ou <[email protected]>
>Subject: [ns] Problem debugging C++ using gdb.
>To: [email protected]
>MIME-Version: 1.0
>
>hi there,
>
>The gdb instruction "step" didn't step into a function
>when I tried to debug ns. It behaves the same as
>"next" even though I recompiled ns using -g (by modify
>CC = gcc -g, CPP = c++ -g in the Makefile). Meanwhile,
>no information about parameter is provided. I don't
>know why. I am using gdb 4.18 under Linux (slackware)
>version 2.2.13 (root@zap) (gcc version egcs-2.91.66
>19990314/Linux (egcs-1.1.2 release)).
>
>Any kind of comments, suggestions, and help are
>appreciated.
>
>Regards,
>Canhui
>
>__________________________________________________
>Do You Yahoo!?
>Yahoo! Calendar - Get organized for the holidays!
>http://calendar.yahoo.com/

Tarik