小编Her*_*BSC的帖子

中止陷阱6:在Mac OS上运行gdb时

我已经通过自制软件在我的Mac(使用Mac OS 10.9/Mavericks)上安装了gdb并成功对其进行了编码.

在使用gdb启动调试会话之前,我编译了我的C文件,如下例所示:

gcc -g test.c -o test
Run Code Online (Sandbox Code Playgroud)

之后我打电话给gdb:

Users-MacBook-Pro:Test User$ gdb ./test
GNU gdb (GDB) 8.0.1
Copyright (C) 2017 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 by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin13.4.0".
Type "show configuration" for configuration details.
For bug reporting instructions, …
Run Code Online (Sandbox Code Playgroud)

c macos homebrew gdb osx-mavericks

11
推荐指数
1
解决办法
1502
查看次数

标签 统计

c ×1

gdb ×1

homebrew ×1

macos ×1

osx-mavericks ×1