[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu
From: |
David Chisnall |
Subject: |
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10 |
Date: |
Mon, 7 Oct 2013 08:41:15 +0100 |
On 7 Oct 2013, at 02:30, Eric Wasylishen <address@hidden> wrote:
> Thanks for the pointers…
>
> I reconfigured make without enabling the nonfragile ABI (just used "CC=clang
> ./configure --enable-debug-by-default"), rebuilt everything, and now stepping
> into Objective-C methods works with gdb, as does ivar printing.
>
> So do gdb and lldb need some changes to support the nonfragile ABI? If that's
> the case, maybe we should display a warning when configuring make with
> --enable-nonfragile-abi, so people know that debugging will be broken.
Yes, the debugger needs to know how to look up the ivar offsets and currently
gdb doesn't know how to do that. I'll hopefully add support for our ABI to
LLDB soon, now that the Linux / FreeBSD ports are in an approximately useable
state.
If you want to inspect ivars in the debugger currently, you should use the
runtime's introspection functions rather than ->.
David
- problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10, Eric Wasylishen, 2013/10/04
- Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10, Ivan Vučica, 2013/10/04
- Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10, Matt Rice, 2013/10/04
- Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10, Eric Wasylishen, 2013/10/06
- Prev by Date:
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10
- Next by Date:
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10
- Previous by thread:
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10
- Next by thread:
Re: problems debugging with clang 3.2, gdb 7.6, libobjc2 SVN, and Ubuntu 13.10
- Index(es):