Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-06-08 Thread Eike Ziller
Hi,

On Jun 2, 2010, at 4:23 PM, ext Stephen Chu wrote:

> Now I can't debug 64-bit code with the last few snapshots, even without 
> debugger helper.
> 
> It looks like gdb is not set to x86_64 when debugging. I got this error:
> 
> A handler for the OS ABI "Darwin" is not built into this configuration
> of GDB.  Attempting to continue with the default i386:x86-64 settings.

I had this problem before as well, but was never able to reproduce it again, in 
the end:
http://bugreports.qt.nokia.com/browse/QTCREATORBUG-430

++ Eike

> 
> I attached the debugger log. I use this project setting to force Creator 
> to build x86_64 on OS X 10.5:
> 
>   CONFIG(debug, debug|release) {
>   CONFIG += x86_64
>   CONFIG -= x86
>   }
> 
> It does build a 64-bit binary. I just can not debug it. And I was able 
> to a week or 2 ago.
> 
> Is 64-bit development only supported in OS X 10.6 now?
> 
> -- 
> Stephen Chu
> 
> 
> <64bitdebuglog.txt>

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-06-02 Thread Stephen Chu
Now I can't debug 64-bit code with the last few snapshots, even without 
debugger helper.


It looks like gdb is not set to x86_64 when debugging. I got this error:

A handler for the OS ABI "Darwin" is not built into this configuration
of GDB.  Attempting to continue with the default i386:x86-64 settings.

I attached the debugger log. I use this project setting to force Creator 
to build x86_64 on OS X 10.5:


CONFIG(debug, debug|release) {
CONFIG += x86_64
CONFIG -= x86
}

It does build a 64-bit binary. I just can not debug it. And I was able 
to a week or 2 ago.


Is 64-bit development only supported in OS X 10.6 now?

--
Stephen Chu


dState changed from (-1) to DebuggerNotReady(0).
d0x118ff0b500x00x118ff13500x118ff14301
sStarting debugger for tool chain 'GCC'...
dDebugger settings: 
dUseAlternatingRowColours: false  (default: false)
dUseMessageBoxForSignals: true  (default: true)
dAutoQuit: true  (default: false)
dLogTimeStamps: false  (default: false)
dVerboseLog: false  (default: false)
dUseDebuggingHelper: true  (default: true)
dUseCustomDebuggingHelperLocation: false  (default: false)
dCustomDebuggingHelperLocation:   (default: )
dDebugDebuggingHelpers: false  (default: false)
dUseCodeModel: true  (default: true)
dUseToolTips: false  (default: false)
dUseToolTipsInLocalsView: false  (default: false)
dUseToolTipsInBreakpointsView: false  (default: false)
dUseAddressInBreakpointsView: false  (default: false)
dUseAddressInStackView: false  (default: false)
dEnvironment:   (default: )
dScriptFile:   (default: )
dWatchdogTimeout: 20  (default: 20)
dMaximalStackDepth: 20  (default: 20)
dShowStandardNamespace: true  (default: true)
dShowQtNamespace: true  (default: true)
dListSourceFiles: false  (default: false)
dSkipKnownFrames: false  (default: false)
dEnableReverseDebugging: false  (default: false)
dAllPluginBreakpoints: true  (default: true)
dSelectedPluginBreakpoints: false  (default: false)
dNoPluginBreakpoints: false  (default: false)
dSelectedPluginBreakpointsPattern:   (default: .*)
dUsePreciseBreakpoints: true  (default: false)
dBreakOnThrow: false  (default: false)
dBreakOnCatch: false  (default: false)
dChangeLanguageAutomatically: true  (default: true)
d/Users/stephenchu/OUTTest-build/Debug/OUTTest.app/Contents/MacOS/OUTTest0x118ff0b50
dState changed from DebuggerNotReady(0) to EngineStarting(1).
dState changed from EngineStarting(1) to AdapterStarting(2).
dTRYING TO START ADAPTER
dSTARTING GDB gdb
dGDB STARTED, INITIALIZING IT
<1show version
<2set print static-members off
<3set breakpoint pending on
<4set print elements 1
<5set overload-resolution off
<6handle SIGSEGV nopass stop print
<7set unwindonsignal on
<8set width 0
<9set height 0
<10-interpreter-exec console "python execfile('/Applications/Qt 
Creator.app/Contents/Resources/gdbmacros/dumper.py')"
<11-interpreter-exec console "python execfile('/Applications/Qt 
Creator.app/Contents/Resources/gdbmacros/gdbmacros.py')"
<12-interpreter-exec console "help bb"
dState changed from AdapterStarting(2) to AdapterStarted(3).
dADAPTER SUCCESSFULLY STARTED
sStarting inferior...
dState changed from AdapterStarted(3) to InferiorStarting(6).
<13-file-exec-and-symbols 
"/Users/stephenchu/OUTTest-build/Debug/OUTTest.app/Contents/MacOS/OUTTest"
>~"GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC 
>2009)\n"
>~"Copyright 2004 Free Software Foundation, Inc.\n"
>~"GDB is free software, covered by the GNU General Public License, and you 
>are\nwelcome to change it and/or distribute copies of it under certain 
>conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely 
>no warranty for GDB.  Type \"show warranty\" for details.\n"
>~"This GDB was configured as \"i386-apple-darwin\"."
>~"\n"
>&"show version\n"
>~"GNU gdb 6.3.50-20050815 (Apple version gdb-967) (Tue Jul 14 02:11:58 UTC 
>2009)\n"
>~"Copyright 2004 Free Software Foundation, Inc.\n"
>~"GDB is free software, covered by the GNU General Public License, and you 
>are\nwelcome to change it and/or distribute copies of it under certain 
>conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely 
>no warranty for GDB.  Type \"show warranty\" for details.\n"
>~"This GDB was configured as \"i386-apple-darwin\".\n"
>1^done
dPARSING VERSION: 1^done,{logstreamoutput="show 
version\n",consolestreamoutput="GNU gdb 6.3.50-20050815 (Apple version gdb-967) 
(Tue Jul 14 02:11:58 UTC 2009)\nCopyright 2004 Free Software Foundation, 
Inc.\nGDB is free software, covered by the GNU General Public License, and you 
are\nwelcome to change it and/or distribute copies of it under certain 
conditions.\nType \"show copying\" to see the conditions.\nThere is absolutely 
no warranty for GDB.  Type \"show warranty\" for details.\nThis GDB was 
configured as \"i386-apple-darwin\".\nGNU gdb 6.3.50-20050815 (Apple version 
gdb-967) (Tue Jul 14 02:11:58 UTC 2009)\nCopy

Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-05-21 Thread Stephen Chu
In article ,
 Eike Ziller  wrote:

> So, you used the Qt 4.7.0 beta1 binary package? (Or did you build from 
> source)
> Do explicitly pass an architecture to your project's CONFIG ?
> Because if you don't, your application and the debugging helpers should be 
> built with the same architecture(s) (for me it is 64bit for both).
> 

I have installs from both beta 1 binary and git source. Beta 1 package 
come in both x86 and x86_64 and I configured source build to create x86, 
x86_64, and PPC. And I verified the frameworks all have expected 
architectures in them.

I tried rebuilding debugging helper libs for both installs. Both of them 
resulted in x86-only dylibs.

Also, I don't think how debugging helper is build is related to the 
current project.

> I wonder though, why the Qt binary package doesn't build the user's apps as 
> universal binaries, it does so when building Qt from source and configuring 
> it as universal.

I wonder that too. I need to add these lines in my pro file to force 
Creator to build and run x86_64 when debugging:

CONFIG(debug, debug|release) {
CONFIG += x86_64
CONFIG -= x86
}

And these to have a tri-arch universal release:

CONFIG(release, debug|release) {
   CONFIG += x86
   CONFIG += ppc
   CONFIG += x86_64
}

[rant]
A bit OT but I really don't like the choice Nokia made on including only 
x86 amd x86_64 in the binary package and Creator download. The 2 target 
the same CPUs, leaving the whole PPC user completely out in cold. The 
choice would have made more sense on Windows release, which oddly 
enough, doesn't have 64-bit binary available.
[/rant]

-- 
Stephen Chu
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-05-21 Thread Eike Ziller

On May 20, 2010, at 10:24 PM, ext Stephen Chu wrote:

> I just started to experiment with 64-bit build with Creator 2.0 and Qt 
> 4.7 snapshots. It works pretty well with one exception: Creator only 
> build the debugging helper in 32-bit. So I lost all the smart formatting 
> of the variables.
> 
> Does Creator build helper in 64-bit when running in 10.6? And how do I 
> make it to build both 32 and 64-bit helper?

So, you used the Qt 4.7.0 beta1 binary package? (Or did you build from source)
Do explicitly pass an architecture to your project's CONFIG ?
Because if you don't, your application and the debugging helpers should be 
built with the same architecture(s) (for me it is 64bit for both).

I wonder though, why the Qt binary package doesn't build the user's apps as 
universal binaries, it does so when building Qt from source and configuring it 
as universal.

-- 
Eike Ziller
Software Engineer
Nokia, Qt Development Frameworks

Nokia gate5 GmbH
Firmensitz: Invalidenstr. 117, 10115 Berlin, Germany
Registergericht: Amtsgericht Charlottenburg, Berlin: HRB 106443 B
Umsatzsteueridentifikationsnummer: DE 812 845 193
Geschäftsführer: Dr. Michael Halbherr, Karim Tähtivuori




___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


Re: [Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-05-21 Thread Daniel Teske
On Thursday 20 May 2010 22:24:58 ext Stephen Chu wrote:
> I just started to experiment with 64-bit build with Creator 2.0 and Qt
> 4.7 snapshots. It works pretty well with one exception: Creator only
> build the debugging helper in 32-bit. So I lost all the smart formatting
> of the variables.
> 
> Does Creator build helper in 64-bit when running in 10.6? And how do I
> make it to build both 32 and 64-bit helper?
> 
> Thanks.
> 
The debugging helpers are build via the qmake of the qt for which they are 
build. That's because the debugging helpers should match the bitness of the to 
be debugged application. So I'd guess your qt is not 64bit.

daniel
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator


[Qt-creator] 64-bit debugging helper on OS X 10.5?

2010-05-20 Thread Stephen Chu
I just started to experiment with 64-bit build with Creator 2.0 and Qt 
4.7 snapshots. It works pretty well with one exception: Creator only 
build the debugging helper in 32-bit. So I lost all the smart formatting 
of the variables.

Does Creator build helper in 64-bit when running in 10.6? And how do I 
make it to build both 32 and 64-bit helper?

Thanks.

-- 
Stephen Chu
___
Qt-creator mailing list
Qt-creator@trolltech.com
http://lists.trolltech.com/mailman/listinfo/qt-creator