Recent

Author Topic: Debugger won't execute  (Read 4455 times)

julgus

  • New Member
  • *
  • Posts: 29
Debugger won't execute
« on: October 11, 2016, 02:42:51 pm »
macOS Sierra, iMac 27"

I have followed the instructions given at:
https://sourceware.org/gdb/wiki/BuildingOnDarwin#Giving_gdb_permission_to_control_other_processes%7Cofficial

I get the following message when trying to run my app:
During startup program terminated with signal SIGTRAP, Trace/breakpoint trap

Clues?

julgus

  • New Member
  • *
  • Posts: 29
Re: Debugger won't execute
« Reply #1 on: October 11, 2016, 03:18:40 pm »
Seems to be something with macOS Sierra. If I disabled csrutil it works.

cpbns

  • New member
  • *
  • Posts: 7
Re: Debugger won't execute
« Reply #2 on: November 03, 2016, 08:37:06 pm »
in my test under Sierra 10.12.1 it fails again!
The problem isn't fixed. May be the coming update 12.2. can help.

Phil

  • Hero Member
  • *****
  • Posts: 2737
Re: Debugger won't execute
« Reply #3 on: November 03, 2016, 08:45:47 pm »
in my test under Sierra 10.12.1 it fails again!
The problem isn't fixed. May be the coming update 12.2. can help.

I doubt it.

See the recent discussion (Oct 28 and later) here:

http://forum.lazarus.freepascal.org/index.php/topic,34165.15.html

Solution for now is to use Xcode's lldb debugger from Terminal command line.

 

TinyPortal © 2005-2018