How to get gdb to work using macports under OSX 10.11 El Capitan?

后端 未结 2 588
小蘑菇
小蘑菇 2021-01-06 04:03

This arose from How to install gdb (debugger) in Mac OSX El Capitan?.

I have macports working under el capitan no problem and have installed the gdb port but I can\

2条回答
  •  离开以前
    2021-01-06 04:18

    I just settled this problem by using the following command.

    sudo dseditgroup -o edit -a yourusername -t user procmod

    Which adds you to group procmod.

    It's just because only users in procmod can use function task_for_pid, and you can find that the own group of /opt/local/bin/ggdb is procmod.

提交回复
热议问题