After installing gdb from homebrew (via $ brew install gdb
), I followed these instructions to give gdb permissions to attach to a process.
When I got to the step that runs the command:
$ codesign --entitlements gdb-entitlement.xml -fs gdb-cert $(which gdb)
I get the following error, with an exit code of 1:
/usr/local/bin/gdb: errSecInternalComponent
I cannot figure out what is wrong, and therefore cannot proceed with installing a working version of gdb. Any help?
EXTRA INFO:
Mac OS X version 10.14.4
GDB version 8.3 (via homebrew)
Added my user to the
_developer
group; didn't helpAttempted restart of my machine and
sudo killall taskgated
to no availAttempted installing earlier version of GDB (8.0.1), but got same result