1

In my Mac, GDB does not work with error

Unable to find Mach task port for process-id 34192: (os/kern) failure (0x5). (please check gdb is codesigned - see taskgated(8))

I already made gdb-cert and did "sudo killall taskgated, codesign -s gdb-cert /usr/local/bin/gdb".

How can I fix it??

ks1322
  • 33,961
  • 14
  • 109
  • 164
JKU
  • 123
  • 1
  • 8
  • Possible duplicate of ["please check gdb is codesigned - see taskgated(8)" - How to get gdb installed with homebrew code signed?](https://stackoverflow.com/questions/18423124/please-check-gdb-is-codesigned-see-taskgated8-how-to-get-gdb-installed-w) – ks1322 Nov 18 '17 at 15:45
  • are you sure you code signed the correct gdb executable. If you installed with brew there might be more than one. You can execute "which -a gdb" to verify – steve Nov 20 '17 at 05:57
  • when I execute"which -a gdb", " /usr/local/bin/gdb" appears. I think there is only one gdb in my Mac... – JKU Nov 21 '17 at 13:11
  • I use sudo gdb, so it works.... I don't know why it works... – JKU Nov 26 '17 at 15:07
  • @JKU what do you mean sudo gdb? Isn't this question for Mac OS X? – BigBoy1337 May 03 '22 at 02:09

0 Answers0