GDB не работает программа (Mac OS) - PullRequest
0 голосов
/ 09 мая 2018

Я использую 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.
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...