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 <sterl...@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

Reply via email to