Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Possible to use the qtc-debugging-helper (Either DSF/CDI)

I forgot to mention that I am on "that troublesome platform, OS X" where the only GDB that seems to work is the one from Apple which is like version 6.3 or something like that so using the Python Pretty Printers will not work for this particular platform.

Now obviously since QtCreator does this sort of thing DSF GDB should be able to be made to do it also. I just have absolutely NO idea where I would start looking. Even a hacked together proof of concept would motivate me to spend some late nights getting something together.

--
Mike Jackson <www.bluequartz.net>

On Apr 9, 2010, at 10:13 AM, Elmenthaler, Jens wrote:

If you use gdb, you might want to check the python pretty printers being supported by gdb 7.0 and later.

It effectively means to translate your qtc-debugging-helper library to python pretty printers, but this might be valuable anyway.

Both gdb integrations (DSF GDB would require the upcoming CDT 7.0) have basic support for the pretty printers. Basic support means the info provided by the pretty printers appears in the details pane of variables and expressions view. But the children and variables are not the ones provided by the pretty printers.

I'm working on fully enabling them in the variables and expressions view (bug302121). That, however, will only work in DSF GDB.

Jens.

-----Original Message-----
From: cdt-dev-bounces@xxxxxxxxxxx [mailto:cdt-dev- bounces@xxxxxxxxxxx] On
Behalf Of Michael Jackson
Sent: Freitag, 9. April 2010 16:04
To: CDT General developers list.
Subject: [cdt-dev] Possible to use the qtc-debugging-helper (Either
DSF/CDI)


  I do a bunch of Qt programming and I prefer to use Eclipse CDT to
do my programming. The major hurdle that I have currently is trying to
debug Qt based code. Due to the design of the Qt classes when trying
to get the "value" of things like a QString gdb will just send back a
pointer address that isn't really helpful. With Qt-Creator the
engineers at Nokia have implemented the qtc-debugging-helper library
which your project can link against.

  What I was wondering would be what type of code updates to CDT
(Either in CDI or DSF) would have to go into place in oder to
effectively use the code contained in the qtc-debugging-helper
library? Looking through the qtc-debugging-helper library it seems
there are "pretty-printers" for the Qt Classes which can then be piped back to the IDE making the request to display more helpful values of a
class rather then the internal pointer.

  I am motivated enough to start hacking in CDT to at least figure
out if this type of thing is even possible. Even better would be some
help from Nokia to point me in the right direction ;-) ***

Thanks
___________________________________________________________
Mike Jackson                      www.bluequartz.net
Principal Software Engineer       mike.jackson@xxxxxxxxxxxxxx
BlueQuartz Software               Dayton, Ohio

*** I know this is basically helping out a rival product (QtCreator vs
Eclipse CDT) but I think would still be seen as a Win-Win for all
parties.
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev
_______________________________________________
cdt-dev mailing list
cdt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/cdt-dev



Back to the top