You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mynewt.apache.org by Sterling Hughes <st...@apache.org> on 2016/12/10 18:59:15 UTC
GDB + SIM broken with macOS sierra
I\u2019m wondering if anyone else has seen this / worked around it?
I can run SIM directly from command line, or under LLDB, but GBD seems
to be broken?
Sterling
Re: GDB + SIM broken with macOS sierra
Posted by marko kiiskila <ma...@runtime.io>.
I also tried to use lldb for a few days, and decided that gdb setup is still worth the
trouble.
> On Dec 10, 2016, at 10:12 PM, Sterling Hughes <st...@apache.org> wrote:
>
> Ugh.
>
> I’ve been using lldb for most of the day, and it’s… fine. Certainly it has improved over the years. We might consider switching to it on mac os x for the simulated environment. I hate having to make users learn yet another debugger, but people are moving away from GCC / GDB and to LLVM / LLDB, and I don’t know how well GDB is going to work on new versions of Mac.
>
> Sterling
>
> On 10 Dec 2016, at 12:11, marko kiiskila wrote:
>
>> I have this running. But it’s not great.
>>
>> You need gdb 7.12.1 (you can get that with brew).
>> Codesign your gdb; https://sourceware.org/gdb/wiki/BuildingOnDarwin <https://sourceware.org/gdb/wiki/BuildingOnDarwin>
>> And then I also had to make gdb owned by root with SUID bit set (Peter didn’t
>> need to, so your YMMV).
>> Add the following to your .gdbinit:
>> set startup-with-shell off
>>
>> And that should do it. It is not without it’s it’s woes. Every process I run
>> under gdb ends up being a zombie. It’s like the walking dead season 1
>> on my laptop. However, I can do ‘newt run’ with my targets.
>>
>> Hope this helps,
>> M
>>
>>> On Dec 10, 2016, at 10:59 AM, Sterling Hughes <st...@apache.org> wrote:
>>>
>>> I’m wondering if anyone else has seen this / worked around it?
>>>
>>> I can run SIM directly from command line, or under LLDB, but GBD seems to be broken?
>>>
>>> Sterling
Re: GDB + SIM broken with macOS sierra
Posted by Sterling Hughes <st...@apache.org>.
Ugh.
I\u2019ve been using lldb for most of the day, and it\u2019s\u2026 fine.
Certainly it has improved over the years. We might consider switching
to it on mac os x for the simulated environment. I hate having to make
users learn yet another debugger, but people are moving away from GCC /
GDB and to LLVM / LLDB, and I don\u2019t know how well GDB is going to work
on new versions of Mac.
Sterling
On 10 Dec 2016, at 12:11, marko kiiskila wrote:
> I have this running. But it\u2019s not great.
>
> You need gdb 7.12.1 (you can get that with brew).
> Codesign your gdb; https://sourceware.org/gdb/wiki/BuildingOnDarwin
> <https://sourceware.org/gdb/wiki/BuildingOnDarwin>
> And then I also had to make gdb owned by root with SUID bit set (Peter
> didn\u2019t
> need to, so your YMMV).
> Add the following to your .gdbinit:
> set startup-with-shell off
>
> And that should do it. It is not without it\u2019s it\u2019s woes. Every
> process I run
> under gdb ends up being a zombie. It\u2019s like the walking dead season
> 1
> on my laptop. However, I can do \u2018newt run\u2019 with my targets.
>
> Hope this helps,
> M
>
>> On Dec 10, 2016, at 10:59 AM, Sterling Hughes <st...@apache.org>
>> wrote:
>>
>> I\u2019m wondering if anyone else has seen this / worked around it?
>>
>> I can run SIM directly from command line, or under LLDB, but GBD
>> seems to be broken?
>>
>> Sterling
Re: GDB + SIM broken with macOS sierra
Posted by marko kiiskila <ma...@runtime.io>.
I have this running. But it’s not great.
You need gdb 7.12.1 (you can get that with brew).
Codesign your gdb; https://sourceware.org/gdb/wiki/BuildingOnDarwin <https://sourceware.org/gdb/wiki/BuildingOnDarwin>
And then I also had to make gdb owned by root with SUID bit set (Peter didn’t
need to, so your YMMV).
Add the following to your .gdbinit:
set startup-with-shell off
And that should do it. It is not without it’s it’s woes. Every process I run
under gdb ends up being a zombie. It’s like the walking dead season 1
on my laptop. However, I can do ‘newt run’ with my targets.
Hope this helps,
M
> On Dec 10, 2016, at 10:59 AM, Sterling Hughes <st...@apache.org> wrote:
>
> I’m wondering if anyone else has seen this / worked around it?
>
> I can run SIM directly from command line, or under LLDB, but GBD seems to be broken?
>
> Sterling