GDB does not work on macOS Sierra 10.12.5

Issue #71 wontfix
Former user created an issue

Installed GDB using home-brew on macOS Sierra (10.12.5) and code signed it. GDB works with FPC compiled executable from the terminal. But in IntelliJ (both community and ultimate) the Console output for the debugger shows the following and does not run.

Setting new breakpoints once in debug mode adds more "undefined commands" messages.

Other than that... fantastic plugin so far.

>>>> -break-delete
>>>> -break-insert  -f /Users/dave/devs/tests/fpc/fpcTest/fpcTest.pas:10
>>>> -gdb-set target-async on
>>>> -exec-arguments > /var/folders/03/k_63k9x161s0tl5jv54yh5d40000gn/T/ipas_run_out_364012023405093507.tmp
>>>> -exec-run
/usr/local/bin/gdb "" --args /Users/dave/devs/tests/fpc/fpcTest/out/production/fpcTest/fpcTest
GNU gdb (GDB) 8.0
Copyright (C) 2017 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <>
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-darwin16.6.0".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
Find the GDB manual and other documentation resources online at:
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /Users/dave/devs/tests/fpc/fpcTest/out/production/fpcTest/fpcTest...(no debugging symbols found)...done.
(gdb) (gdb) (gdb) (gdb) (gdb) (gdb) Undefined command: "-break-delete".  Try "help".
Undefined command: "-break-insert".  Try "help".
Undefined command: "-gdb-set".  Try "help".
Undefined command: "-exec-arguments".  Try "help".
Undefined command: "-exec-run".  Try "help".

Comments (2)

  1. Geo B repo owner

    Please make sure that you give -gw option to compiler. It's needed to generate debug information. Starting from v1.40 I-Pascal supports LLDB backend for debugger. On MacOS LLDB is working better than GDB and comes in bundle with XCode.

  2. Log in to comment