Code completion

kitts kitts.mailinglists at gmail.com
Fri Dec 8 17:25:46 UTC 2006


On Friday 08 December 2006 21:40 IST, Andreas Pakulat wrote:
> Hmm, no code-completion only runs on the files that the project manager
> returns. Try running kdevelop through gdb when you import the kernel
> source and interrupt it when it starts to massively consume memory,
> create a backtrace and post that here.

OK. RC1 seems to be much more well behaved than the beta. Atleast, kdevelop 
is showing progress and seemed to be working fine except for the memory 
issue.

Loading process had progressed to about 33% in the status bar. 2% remaining 
RAM space and 23% remaining swap space (on this machine i have 1GB swap). I 
interrupted the process and the backtrace gives

(gdb) bt
#0  0x00002ad4bcc078f2 in select () from /lib/libc.so.6
#1  0x00002ad4ba711fe9 in QEventLoop::processEvents () 
from /usr/lib/libqt-mt.so.3
#2  0x00002ad4ba78480b in QEventLoop::enterLoop () 
from /usr/lib/libqt-mt.so.3
#3  0x00002ad4ba784613 in QEventLoop::exec () from /usr/lib/libqt-mt.so.3
#4  0x00002ad4ba76cd9c in QApplication::exec () from /usr/lib/libqt-mt.so.3
#5  0x0000000000408969 in main (argc=1, argv=0x7ffff3fc2688) at main.cpp:149
(gdb)

Console output shows it processing a long list of files as below

<snip>
kdevelop (cpp support): files in code-model after parseEmit: 10439 before: 
10438
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/ncp_no.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/ncp_no.h
kdevelop (cpp support): files in code-model after parseEmit: 10440 before: 
10439
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/net.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/net.h
kdevelop (cpp support): files in code-model after parseEmit: 10441 before: 
10440
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netdevice.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netdevice.h
kdevelop (cpp support): files in code-model after parseEmit: 10442 before: 
10441
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter.h
kdevelop (cpp support): files in code-model after parseEmit: 10443 before: 
10442
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_arp.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_arp.h
kdevelop (cpp support): files in code-model after parseEmit: 10444 before: 
10443
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_bridge.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_bridge.h
kdevelop (cpp support): files in code-model after parseEmit: 10445 before: 
10444
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_decnet.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_decnet.h
kdevelop (cpp support): files in code-model after parseEmit: 10446 before: 
10445
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_ipv4.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_ipv4.h
kdevelop (cpp support): files in code-model after parseEmit: 10447 before: 
10446
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_ipv6.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_ipv6.h
kdevelop (cpp support): files in code-model after parseEmit: 10448 before: 
10447
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_logging.h
kdevelop (class view): [void Navigator::addFile(const QString&)] 
file: /media/devel/devel/Installs/linux-2.6.18.1/debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netfilter_logging.h
kdevelop (cpp support): files in code-model after parseEmit: 10449 before: 
10448
kdevelop (cpp support): CppSupportPart::customEvent(2000)
kdevelop (cpp support): 
ProblemReporter::removeAllProblems()debian/linux-headers-2.6.18.1-custom/usr/src/linux-headers-2.6.18.1-custom/include/linux/netlink.h

-- 
Cheers!
kitts




More information about the KDevelop mailing list