gdb usage hint
Falk Brettschneider
gigafalk at yahoo.com
Sat Mar 2 23:09:05 UTC 2002
Hi,
Jens Zurheide wrote:
>Finally I can try to track
>down the reason why kdevelop sometimes gets slower and slower and finally
>nearly stops responding. The problem is that this bug has to occur once
>again.
>
The problem is the clipboard. For its own impossible reasons it grows
bigger and bigger but only sometimes. The processing of the huge
clipboard contents in every update of KWriteView slows down KDevelop
very much. The time as I stopped KDevelop in such case, the clipboard
contents was several Megabytes.
I don't know why the clipboard contents grows to that huge size
sometimes. :-(
If you can find this reason and maybe fix it, you will be very cool. ;-)
Ciao,F at lk
>
>
>Ok, for those that experience the problem and have kdelibs, qt, and
>kdevelop compiled with debug symbols, the trick is the following:
>
>do a
>
>>ps aux | grep kdevelop
>>
>to get the process id of kdevelop that is not responding any more. Other
>preparation step might include
>
>>export LD_BIND_NOW=1
>>export LD_LIBRARY_PATH=[path to your shared debug libs]:$LD_LIBRARY_PATH
>>
>Then start gdb and enter
>(gdb) file kdevelop
>If necessary use the correct path to the executable (which might be in the
>directory .libs if kdevelop is directly started from the build dir without
>installing it first). Then set a breakpoint at the main function and start
>the execution.
>(gdb)b main
>(gdb)r
>Now, all symbols are loaded and you can attach to the stopped kdevelop
>(gdb)attach <whatever_your_pid_is>. Answer 'y' to the question about
>killing the already running program
>
>If you prefer kdbg the above steps need some modifications but it should
>work rather similar.
>
>I hope this might help someone some day to get some nasty and hard to
>reproduce bugs squashed.
>
>Have fun,
>Jens
>
>
>_______________________________________________
>Kdevelop-devel mailing list
>Kdevelop-devel at barney.cs.uni-potsdam.de
>http://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-devel
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
More information about the KDevelop-devel
mailing list