相关疑难解决方法(0)

gdb不适用于Mac版High Sierra 10.13.3

我用brew安装了gdb 8.1.

我有codeign gdb和.gdbinit如下:

set startup-with-shell off.

我已禁用SIP功能:

$ csrutil status
System Integrity Protection status: disabled.
Run Code Online (Sandbox Code Playgroud)

但是gdb仍然不起作用:

#include <iostream>
using namespace std;

int main() {
  cout << "hello world!" << endl;
  return 0;
}
Run Code Online (Sandbox Code Playgroud)

编译命令:

g++ -g test.cpp
Run Code Online (Sandbox Code Playgroud)

gdb输出:

GNU gdb (GDB) 8.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted …
Run Code Online (Sandbox Code Playgroud)

macos gdb

43
推荐指数
1
解决办法
1万
查看次数

GDB类型不适用于macOS Sierra

这是我昨天第一次更新到macOS Sierra时出现的问题.

GDB本身运行正常.但是,不知何故,它无法运行我的程序.当我输入'run'和'enter'时,它会立即崩溃并显示以下信息: During startup program terminated with signal SIG113, Real-time event 113.

我的GDB基于自制软件.所以今天,我卸载了整个自制程序包并重新安装它.在编码协议步骤之后,我仍然面临同样的错误.

我试过'sudo'和其他一些东西.谷歌不知道发生了什么.所以我想知道你们是否有一些神奇的解决方案.

gdb macos-sierra

41
推荐指数
5
解决办法
3万
查看次数

标签 统计

gdb ×2

macos ×1

macos-sierra ×1