* * *

Author Topic: OS X 10.12 Sierra error gdb on un !  (Read 601 times)

WimVan

  • New member
  • *
  • Posts: 12
OS X 10.12 Sierra error gdb on un !
« on: June 24, 2017, 02:47:46 pm »
Hello,
I installed VMWare, Xcode, Lazarus ... gdb as writen in http://www.schoolfreeware.com/Install_Free_Pascal_Lazarus_On_Mac_OS_X_Tutorial.html

When loading the project I can
Compile, build without problems, but asking to run I got next:

Quote
The GDB command:"-exec-run" returned the error:
".msg="During startup program terminated with signal SIGTRAP, Trace/breakpoint trap.""

I just can stop and so test nothing...

Phil

  • Hero Member
  • *****
  • Posts: 2278
Re: OS X 10.12 Sierra error gdb on un !
« Reply #1 on: June 24, 2017, 08:30:47 pm »
I just can stop and so test nothing...

If your Lazarus has a Run | Run without Debugging menu item, try that. That should allow you to run the compiled app even though the debugger isn't working.

For running WITH debugging, you have two choices, I suppose. Since your problem has been reported here many times, you could read through the various posts and suggestions for how to get gdb running on Mac. Sometimes people succeed, sometimes they don't.

Or you could just create an Xcode project for your Lazarus project and debug your app in Xcode. Then you'll be using the lldb debugger that's included with Xcode. Here's how:

https://macpgmr.github.io/ObjP/ProjectXC.html

tianya

  • New member
  • *
  • Posts: 11
Re: OS X 10.12 Sierra error gdb on un !
« Reply #2 on: August 11, 2017, 04:28:43 pm »
sign you gdb ,then add "--eval-command=set startup-with-shell off" to your lazarus option, debug->Debugger_startup_options

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus