GDB没有运行程序(Mac OS)

时间:2018-05-09 14:46:47

标签: c gdb

我使用gdb来运行我的程序,但它无法使用它。它返回警告: 无法插入断点-1。 无法访问地址0xf726处的内存 我没有设置任何断点。我不确定是gdb的问题,我该如何解决? 这是我得到的结果:

rihiroshibitekiMacBook-Pro:desktop Richard$ gdb test
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 by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin17.3.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from test...Reading symbols from 
/Users/Richard/Desktop/test.dSYM/
Contents/Resources/DWARF/test...done.
done.
(gdb) r
Starting program: /Users/Richard/Desktop/test 
[New Thread 0x1903 of process 776]
[New Thread 0x1c03 of process 776]
Warning:
Cannot insert breakpoint -1.
Cannot access memory at address 0xf726
Command aborted.

0 个答案:

没有答案