osx - Need help getting gdb to run on OS/X El Capitan (code signing does not work) -
i trying gdb
(installed via homebrew) run on os/x el capitan. have gone through multiple posts online code signing, creating certificate, etc., still not work.
(see example: how "codesigned" gdb on osx? )
my code signed evidenced by:
codesign -vvd /usr/local/bin/gdb executable=/usr/local/cellar/gdb/7.11/bin/gdb identifier=org.gnu.gdb format=mach-o thin (x86_64) codedirectory v=20100 size=44540 flags=0x0(none) hashes=1388+2 location=embedded signature size=1772 authority=gdb-cert signed time=jul 4, 2016, 7:37:55 info.plist entries=4 teamidentifier=not set sealed resources=none internal requirements count=1 size=88
and
codesign -vvd /usr/local/cellar/gdb/7.11/bin/gdb executable=/usr/local/cellar/gdb/7.11/bin/gdb identifier=org.gnu.gdb format=mach-o thin (x86_64) codedirectory v=20100 size=44540 flags=0x0(none) hashes=1388+2 location=embedded signature size=1772 authority=gdb-cert signed time=jul 4, 2016, 7:37:55 info.plist entries=4 teamidentifier=not set sealed resources=none internal requirements count=1 size=88
and user member of both _developer
, procmod
read might important.
but no avail. when try debug program still error:
gdb a.out gnu gdb (gdb) 7.11 copyright (c) 2016 free software foundation, inc. license gplv3+: gnu gpl version 3 or later <http://gnu.org/licenses/gpl.html> ... reading symbols a.out...(no debugging symbols found)...done. (gdb) run starting program: a.out unable find mach task port process-id 658: (os/kern) failure (0x5). (please check gdb codesigned - see taskgated(8)) (gdb)
i tried sudo spctl --master-disable
turn off check signed coded altogether , still same error.
however, if run root
works.
i able run gdb normal user. have idea going on?
Comments
Post a Comment