- I have CodeBlocks 13.12 (CodeBlocks-13.12-mac) installed on OSX 10.9.2 (Mavericks).
- I am using gcc 4.9 and installing gdb (7.7.1).
- I can successfully create and run simple programs.
But when I try to "debug" (for example, "work with the cursor"), I get the following output:
[debug] Command line: /usr/local/Cellar/gdb/7.7.1/bin/gdb -nx -fullname -quiet -args / Users / skips / Skips ++ Code / DebugTutorial / bin / Debug / DebugTutorial [debug] Working directory: / Users / skips / Skips ++ Code / DebugTutorial Launching the debugger: /usr/local/Cellar/gdb/7.7.1/bin/gdb -nx -fullname -quiet -args / Users / skips / Skips ++ Code / DebugTutorial / bin / Debug / DebugTutorial
to do
[debug]> set prompt → → → cb_gdb:
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Set breakpoints
Cannot start the console (osascript -e 'tell app "Terminal"' -e 'activate' -e 'do script ""' -e 'end tell' sleep 80007329)
.
.
.
Debugger name and version: GNU gdb (GDB) 7.7.1
.
.
.
[Debugging] → → → cb_gdb:
[debug]> catch throw
[debug] probe.c: 59: internal-error: struct symtabs_and_lines parse_probes (char **, struct linespec_result *): the statement `probe_ops! = NULL 'failed.
[debug] A problem has been discovered that is internal to GDB,
[debug] further debugging may not be reliable.
Debugger finished with status 1
I tried several versions of gdb (e.g. 7.6.2) with the same result.
, -, , "/ // ".
C:: B (svn 9817) UBUNTU (12.04) gcc 4.2.1 gdb 7.7.1. , , VM UBUNTU.
OSX C:: B?
Source: https://habr.com/ru/post/1545438/
All Articles