debugging in eclipse using gdb on mac - Failed to execute MI command: -exec-run

前端 未结 3 1312
时光取名叫无心
时光取名叫无心 2021-01-24 08:48

I have my Eclipse Kepler and my simple HelloWorld C-program, where I wanted to learn how to debug a C-program. When clicking on the debug-button, I get the following error messa

3条回答
  •  心在旅途
    2021-01-24 09:33

    This may happen if you signed 'gdb' before making all changes to 'gdb-cert'. Then you can restart 'taskgated' and then re-sign the 'gdb' executable.

    1. ps -e | grep taskgated
    2. sudo kill -9 <pid of taskgated>
    3. codesign -f -s gdb-cert $(which gdb)

    This worked for me.

提交回复
热议问题