Debugger in 3.5.0 ...

Andras Mantia amantia at kde.org
Sat Oct 13 21:22:45 UTC 2007


On Saturday 13 October 2007, Vladimir Prus wrote:
> On Saturday 13 October 2007 23:59:41 Andras Mantia wrote:
> > Hi,
> >
> >  again, I complain about the debugger in 3.5.0. It lost an
> > important functionality (or at least it seems to not work
> > correctly): setting breakpoints on shared library load.
>
> What is setting breakpoints on shared library load. You mean "catch
> load" (which never was exposed via UI), or setting breakpoints *in*
> shared library?

Set a breakpoint inside a source file which belongs to a shared library 
that will be dlopened. Like in KParts for example.

> Well, there's a testcase for breakpoints in shared libraries,
> in languages/cpp/debugger/tests/dll/ and it works just fine for me.
> So, apparently you should be either using different gdb from me, or
> doing something differently. Do you have an exact reproduction
> recipe?

As you may see from the other mail, I fixed it. The problem was that 
when the KDevelop debugger set a breakpoint, it didn't tell that the 
break-insert command can handle the errors itself. As the breakpoint 
setting failed (because the library is not loaded at the start of the 
application), the command was deleted and thus the breakpoint was 
deleted as well (actually it was never inserted). The code to put the 
breakpoint in pending state if insertion was unsuccessful existed, just 
it was never called. Probably this call got lost during the transition 
to MI.

> Well, in fact at this point of gdb development, I think adding
> pending breakpoints for MI should be like 10-line change, which I can
> do and I'm almost sure I'll get that in. But, it would mean you have
> to use CVS HEAD of gdb. Not that gdb CVS HEAD is usually unstable,
> but still.

I don't know now if this is really required (as I don't really 
understand the comment I quoted, nor do I know the gdb internals), but 
I think KDevelop shouldn't depend on unreleased gdb versions. For 
example the just released openSUSE 10.3 has gdb 6.6 (this is what I 
have now).

Andras
-- 
Quanta Plus developer - http://quanta.kdewebdev.org
K Desktop Environment - http://www.kde.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 194 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20071014/5879e518/attachment.sig>


More information about the KDevelop-devel mailing list