Visual History Report - Week 1,2

Thiago Macieira thiago at kde.org
Tue Jul 19 20:30:17 CEST 2005


David Faure wrote:
>You can't set a breakpoint on a dynamically opened module before that
> module is loaded. So you can't just "gdb konqueror ; break <whatever>".

With recent gdbs you can: it'll ask you if you want to create a breakpoint 
for a module yet to be loaded.

Generally that's a bad idea because you'll very likely mistype the 
function signature (namespace, arguments, constness, etc.)

>But if you start konqueror in gdb, run it, and once the sidebar is
> there, use Ctrl-C to get control in gdb again, and then set a
> breakpoint, then it should work. Subdirs are certainly no problem. I
> assume you compiled kdebase with --enable-debug=full, this gives you
> coherent behavior in gdb; otherwise with the optimization you see very
> strange line jumping in gdb.

Also don't compile the code with optimisation (-O2 or -O1), or you'll see 
the line-jumping David is talking about.

-- 
  Thiago Macieira  -  thiago (AT) macieira.info - thiago (AT) kde.org
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

4. And æfter se scieppend ingelogode, he wrát "cenn", ac eala! se 
rihtendgesamnung andswarode "cenn: ne wát hú cennan 'eall'. Ástynt."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-soc/attachments/20050719/fb72efac/attachment.pgp


More information about the Kde-soc mailing list