问题1:出现 Could not determine GDB version using command: gdb --version
原因:
mac上没有安装gdb或者gdb位置配置有问题
解决方法:
1 安装gdb,
2 如果确定已经安装了gdb,需要配置Eclipse中Debuger的路径:项目右键-》Debug As-》Debug Configurations-》左侧C++ Application找到当前项目-》右侧标签页选择Debuger-》修改gdb的路径和.gdbinit文件路径
问题2:出现 Could not determine GDB version using command: gdb --version
Error in final launch sequence
Failed to execute MI command:
-exec-run
Error message from debugger back end:
Unable to find Mach task port for process-id 99177: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))
Unable to find Mach task port for process-id 99177: (os/kern) failure (0x5).
(please check gdb is codesigned - see taskgated(8))