[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: How do I debug kdelibs?
From:       Lubos Lunak <l.lunak () sh ! cvut ! cz>
Date:       2002-04-29 12:41:59
[Download RAW message or body]

On Monday 29 April 2002 14:32, Dave Corrie wrote:
> Hi,
>
> Instead of grepping through lots of code, I thought I'd try to find out
> who calls the KMenuBar destructor by debugging an application (I just
> happened to choose knode) and setting a breakpoint in gdb on
> KMenuBar::~KMenuBar. I've tried a couple ways of setting the
> breakpoint, but gdb doesn't seem to be aware of the kmenubar.cpp source
> code:
>
> (gdb) break KMenuBar::~KMenuBar()
> Function "KMenuBar::~KMenuBar()" not defined.
> (gdb) break kmenubar.cpp:74
> No source file named kmenubar.cpp.
> (gdb) break /home/dave/dev/kde/kdelibs/kdeui/kmenubar.cpp:74
> No source file named /home/dave/dev/kde/kdelibs/kdeui/kmenubar.cpp.
>
> Can I instruct gdb where to look for source code, or is the approach
> flawed?
>
> Thanks in advance,

 I don't know if it's possible to specify the files/libraries, but doing 
'break main', 'run' and then setting the breakpoint works.

-- 
 Lubos Lunak
 llunak@suse.cz ; l.lunak@kde.org
 http://dforce.sh.cvut.cz/~seli

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic