Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-21 Thread Nils Jeisecke via Interest
On Wed, Jan 20, 2016 at 10:26 PM, Thiago Macieira
 wrote:
> I think it should show line numbers, but it can't find the source code because
> you don't have the source code at the same place as the debugging information
> expects it to be.
No lines numbers shown here.

However what's the point in building and shipping the debug versions
as part of official releases when they are rather useless?

Nils
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-21 Thread Croitor Alexandr
Isn't the issue that the debug symbols are not shipped in the first place?
They usually reside in the object files, or are extracted into a dsym archive, 
and neither are shipped with the binary installation.

So placing the sources at the original compiled path won't really help.

> On 21 Jan 2016, at 00:39, Mike Jackson  wrote:
> 
>> 
>> On Jan 20, 2016, at 4:26 PM, Thiago Macieira  
>> wrote:
>> 
>> On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote:
>>> On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira
>>> 
>>>  wrote:
 Yes. Debug symbols in the pre-compiled builds do not work.
>>> 
>>> Is this a known issue or shall I create a bug report?
>> 
>> It's a known and, AFAIU, unfixable issue. That's just how the debug format 
>> stores the information.
>> 
>> I think it should show line numbers, but it can't find the source code 
>> because 
>> you don't have the source code at the same place as the debugging 
>> information 
>> expects it to be.
>> -- 
>> Thiago Macieira - thiago.macieira (AT) intel.com
>> Software Architect - Intel Open Source Technology Center
> 
> Not that I have tried this BUT in theory if you knew the exact paths that 
> Digia used to build the Qt distribution and set up your sources in the same 
> paths then the debug symbols might start working. At least that is the first 
> thing I would try.
> 
> —
> Mike Jackson
> ___
> Interest mailing list
> Interest@qt-project.org 
> http://lists.qt-project.org/mailman/listinfo/interest 
> 
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Thiago Macieira
On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote:
> On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira
> 
>  wrote:
> > Yes. Debug symbols in the pre-compiled builds do not work.
> 
> Is this a known issue or shall I create a bug report?

It's a known and, AFAIU, unfixable issue. That's just how the debug format 
stores the information.

I think it should show line numbers, but it can't find the source code because 
you don't have the source code at the same place as the debugging information 
expects it to be.
-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Mike Jackson

> On Jan 20, 2016, at 4:26 PM, Thiago Macieira  
> wrote:
> 
> On Wednesday 20 January 2016 09:50:51 Nils Jeisecke via Interest wrote:
>> On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira
>> 
>>  wrote:
>>> Yes. Debug symbols in the pre-compiled builds do not work.
>> 
>> Is this a known issue or shall I create a bug report?
> 
> It's a known and, AFAIU, unfixable issue. That's just how the debug format 
> stores the information.
> 
> I think it should show line numbers, but it can't find the source code 
> because 
> you don't have the source code at the same place as the debugging information 
> expects it to be.
> -- 
> Thiago Macieira - thiago.macieira (AT) intel.com
>  Software Architect - Intel Open Source Technology Center

Not that I have tried this BUT in theory if you knew the exact paths that Digia 
used to build the Qt distribution and set up your sources in the same paths 
then the debug symbols might start working. At least that is the first thing I 
would try.

—
Mike Jackson
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-20 Thread Nils Jeisecke via Interest
On Tue, Jan 19, 2016 at 5:29 PM, Thiago Macieira
 wrote:
> Yes. Debug symbols in the pre-compiled builds do not work.
Is this a known issue or shall I create a bug report?

Nils
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-19 Thread Nils Jeisecke via Interest
Hi list,

On Thu, Jan 14, 2016 at 1:45 PM, myself wrote:
> However I don't get lldb to display line numbers or show source code for 
> stack frames inside Qt.
Seems that there is no such problem when using the debug version of a
self-compiled Qt library.

Is this an issue with the official release (5.6 beta Mac)?

Nils
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


Re: [Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-19 Thread Thiago Macieira
On Tuesday 19 January 2016 10:34:27 Nils Jeisecke via Interest wrote:
> Hi list,
> 
> On Thu, Jan 14, 2016 at 1:45 PM, myself wrote:
> > However I don't get lldb to display line numbers or show source code for
> > stack frames inside Qt.
> Seems that there is no such problem when using the debug version of a
> self-compiled Qt library.
> 
> Is this an issue with the official release (5.6 beta Mac)?

Yes. Debug symbols in the pre-compiled builds do not work.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center

___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest


[Interest] Qt 5.6.0 beta / Mac / lldb / Debug Symbols

2016-01-14 Thread Nils Jeisecke via Interest
Hi list,

I'm running into trouble trying to step into Qt's sources while debugging.

To select the debug version of Qt I'm using DYLD_IMAGE_SUFFIX=_debug
which according to the image names in the backtrace seems to work.

However I don't get lldb to display line numbers or show source code
for stack frames inside Qt.

I've installed Qt 5.6 for Mac OS X (clang64) beta using the official
installer, including Qt's source code.

This is an example backtrace:

(lldb) bt
* thread #1: tid = 0x5d27d2, 0x7fff93f71386
libsystem_kernel.dylib`mach_msg_trap + 10, queue =
'com.apple.main-thread', stop reason = signal SIGSTOP
...
frame #10: 0x7fff90a54fc8 AppKit`-[NSApplication run] + 682
frame #11: 0x00010d43b0a6
libqcocoa_debug.dylib`QCocoaEventDispatcher::processEvents(QFlags)
+ 1142
frame #12: 0x0001029a3e2a
QtCore_debug`QEventLoop::processEvents(QFlags)
+ 122
frame #13: 0x0001029a4046
QtCore_debug`QEventLoop::exec(QFlags) +
518
frame #14: 0x0001029a96d4 QtCore_debug`QCoreApplication::exec() + 388
frame #15: 0x00010194ef36 QtGui_debug`QGuiApplication::exec() + 22
frame #16: 0x00010331f8f9 QtWidgets_debug`QApplication::exec() + 9
frame #17: 0x00010048d2bd ctimon`main(argc=1,
argv=0x7fff5fbff5d8) + 3085 at main.cpp:160
frame #18: 0x7fff878695ad libdyld.dylib`start + 1
frame #19: 0x7fff878695ad libdyld.dylib`start + 1

Any ideas?

Nils
___
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest