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

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



Try this:

$make clean
$rm config.cache
$./configure --enable-debug
$make

This should enable debugging in the Makefile and also get rid of all of
the .o files. You can also look at other configuration options by doing
./configure --help

- John Mehringer


Canhui Ou wrote:

> 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/