Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [cdt-debug-dev] Debugging Qt types in Eclipse


> -----Original Message-----
> From: cdt-debug-dev-bounces@xxxxxxxxxxx
> [mailto:cdt-debug-dev-bounces@xxxxxxxxxxx]On Behalf Of Alain Magloire
> Sent: Thursday, 28 September 2006 6:07 AM
> To: CDT Debug developers list
> Subject: RE: [cdt-debug-dev] Debugging Qt types in Eclipse
> 
> > Okay, I've submitted an enhancement request against 
> cdt-devel.  You can
> > view it here:
> > 
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=158678
> >
> 
> Excellent!
> 
> There are two things here:
> - implementing a way to override the details pane with custom 
> code (macros)
> - Logical structure type extension point.

Not sure if it will help, but you may wish to have a look at kdevelop.  I believe they're close to having a debugger interface that can display some Qt4 types in a useful way.

> 
> If you have more of those useful macros please add them to 
> the PR so we can
> provide a good set.
>  
> 

I've experimented a little with these macros (seems they're called sequences (of user-defined commands) in gdb parlance).  I've attached a few to the bugzilla issue, along with a simple program for testing these macros.  You will need Qt4 installed in order to test.  You can grab the open-source edition of Qt4 from www.trolltech.com (as long as you're developing for open-source).  I used ddd as a front-end to gdb for testing the sequences.  ddd allows me direct access to the (gdb) prompt, which is handy for this task.

Anyone feel like having a stab at some STL sequences?  I ran into a problem with QList and QVector types, which are template classes.  Not sure how to tell what the template type is in gdb.  Same problem goes for STL.

Regards,
Pat


Back to the top