KDE/kdevelop/languages/cpp/debugger

Hamish Rodda rodda at kde.org
Fri Dec 14 01:01:31 UTC 2007


On Fri, 14 Dec 2007 09:51:20 am Andreas Pakulat wrote:
> On 13.12.07 22:26:14, Hamish Rodda wrote:
> > Start on new way of providing specialised debugging views for certain
> > objects - first example is parsing of QString (not yet working). One
> > day soon you should be able to write customised views using
> > plugins, that's going to be awesome :)
>
> Didn't look at the code yet, but IMHO it makes more sense to implement
> this inside the gdb plugin as a simple mapping of type-names to gdb
> commands (or list of commands). That way its _very_ easy to register
> your own type for printing, without the need to do any coding at all.
> And KDevelop doesn't have to re-invent the wheel and can just depend on
> the existing gdb macros from kdesdk to print Qt4 and Qt3 structures.

This is not just about returning a smart value, it's also about showing 
different children (ie. making list/set/map etc members accessible).  Also, 
not everything can be accomplished with a single gdb command, and you 
couldn't provide any processing for multiple commands with the system you're 
suggesting.  Also, you couldn't specify how to format the output from gdb 
(QString char data has to be processed first).  Eventually I also want to 
implement casting features so when you're shown a base class, you can easily 
get to the subclass features.

I think it's better to do it in code.  A plugin could be developed for cases 
where it truly is trivial to write the appropriate gdb statement.

Cheers,
Hamish.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20071214/2153fa9a/attachment.sig>


More information about the KDevelop-devel mailing list