[Qt-creator] Antwort: Re: Qt Creator 2.0.1 doesn't show local variables when debugging
Markus Franke
Franke.M at sebakmt.com
Fri Mar 11 09:49:42 CET 2011
Dear Andre',
thanks for your reply. I disabled reverse debugging but this didn't have
any effect for the local variable display.
As soon as I add a local variable from the stack to the "local variable
window" I get the following message:
for Qt Creator 2.0.1: "<invalid> <unknown>"
for Qt Creator 2.1.0: <no such value>
The debugger log says the following when adding a variable "pMainLayout"
to the "local variable window":
---snip---
36bb options:fancy vars: expanded: typeformats: formats:
watchers:73657474696e6723746f6f6c7469702e78232373657474696e672377617463682e302323704d61696e4c61796f75742377617463682e31
<37bb options:fancy vars: expanded: typeformats: formats:
watchers:73657474696e6723746f6f6c7469702e78232373657474696e672377617463682e302323704d61696e4c61796f75742377617463682e31
>&"bb options:fancy vars: expanded: typeformats: formats:
watchers:73657474696e6723746f6f6c7469702e78232373657474696e672377617463682e302323704d61696e4c61796f75742377617463682e31\n"
>~"data=[{iname=\"local.this\",addr=\"0xbfffe500\",name=\"this\",valueencoded=\"7\",value=\"\",numchild=\"4\",type=\"SetDisplayDlg\",value=\"<not
accessible>\",},{iname=\"local.pParent\",addr=\"0xbfffe504\",name=\"pParent\",addr=\"0xbfffe504\",numchild=\"1\",type=\"QWidget
*\",value=\"0x83bc470\",},,{iname=\"tooltip.x\",name=\"setting\",exp=\"setting\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},{iname=\"watch.0\",name=\"setting\",exp=\"setting\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},{iname=\"watch.1\",name=\"pMainLayout\",exp=\"pMainLayout\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},]\n"
>36^done
<<Rebuild Watchmodel 9>
sFinished retrieving data
>&"bb options:fancy vars: expanded: typeformats: formats:
watchers:73657474696e6723746f6f6c7469702e78232373657474696e672377617463682e302323704d61696e4c61796f75742377617463682e31\n"
>~"data=[{iname=\"local.this\",addr=\"0xbfffe500\",name=\"this\",valueencoded=\"7\",value=\"\",numchild=\"4\",type=\"SetDisplayDlg\",value=\"<not
accessible>\",},{iname=\"local.pParent\",addr=\"0xbfffe504\",name=\"pParent\",addr=\"0xbfffe504\",numchild=\"1\",type=\"QWidget
*\",value=\"0x83bc470\",},,{iname=\"tooltip.x\",name=\"setting\",exp=\"setting\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},{iname=\"watch.0\",name=\"setting\",exp=\"setting\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},{iname=\"watch.1\",name=\"pMainLayout\",exp=\"pMainLayout\",value=\"<invalid>\",type=\"<unknown>\",numchild=\"0\",value=\"<not
accessible>\",},]\n"
>37^done
<<Rebuild Watchmodel 10>
sFinished retrieving data
<<Rebuild Watchmodel 11>
sFinished retrieving data
---snap---
I am using gdb 7.2 right now.
As far as I can see this only happens for local variables in constructors
of my classes. In member functions the locals get displayed properly.
Any comments on this?
Best regards,
Markus Franke
qt-creator-bounces+franke.m=sebakmt.com at qt.nokia.com schrieb am 10.03.2011
17:34:10:
> On Thu, Mar 10, 2011 at 09:02:22AM +0100, Markus Franke wrote:
> > qt-creator-bounces+franke.m=sebakmt.com at qt.nokia.com schrieb am
09.03.2011
> > 17:24:53:
> >
> > > I'd need to see the debugger log (Debugger->Views->Debugger).
Perhaps
> > > an too old version of gdb. I'd suggest to upgrade to Creator 2.1 and
> > > gdb 7.2 anyway.
> >
> > The debugger log says the following: (sorry for spamming this list)
> >
> > ---snip---
> > [...]
> > dEnableReverseDebugging: true (default: false)
>
> That's the main problem.
>
> > [...]
> > <369target record
> > >&"warning: Unable to find dynamic linker breakpoint function.\nGDB
will
> > be unable to debug shared library initializers\nand track explicitly
> > loaded dynamic code."
>
> Switch off "Reverse debugging". The feature is broken in gdb, even now
> with 7.2. gdb 6.8 was even worse.
>
> > Same happens with Qt Creator 2.1.0. I am on a Fedora 10 system using
gdb
> > 6.8.
>
> gdb 6.8 is not supported with 2.1.0. Install gdb 7.2 or compile from
source,
> or get a precompiled one from ftp://ftp.qt.nokia.com/misc/gdb/7.2/
>
> Andre'
> _______________________________________________
> Qt-creator mailing list
> Qt-creator at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-creator
"Disclaimer: This message is intended only for the use of the individual
or entity to
which it is addressed and may contain information which is privileged,
confidential, proprietary,
or exempt from disclosure under applicable law. If you are not the
intended recipient or the person
responsible for delivering the message to the intended recipient, you are
strictly prohibited from
disclosing, distributing, copying, or in any way using this message. If
you have received this
communication in error, please notify the sender and destroy and delete
any copies you may have
received."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-creator-old/attachments/20110311/0e98d1c7/attachment.html
More information about the Qt-creator-old
mailing list