Forum > macOS / Mac OS X

OS X 10.12 Sierra error gdb on un !

(1/2) > >>

WimVan:
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.""

--- End quote ---

I just can stop and so test nothing...

Phil:

--- Quote from: WimVan on June 24, 2017, 02:47:46 pm ---I just can stop and so test nothing...

--- End quote ---

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:
sign you gdb ,then add "--eval-command=set startup-with-shell off" to your lazarus option, debug->Debugger_startup_options

jmpessoa:


--- Quote -----eval-command=set startup-with-shell off

--- End quote ---

Yes!!!

[MacOs 10.13.4]

how to codesign is here: 
https://medium.com/@royalstream/how-to-install-and-codesign-gdb-on-os-x-el-capitan-aab3d1172e95

Martin_fr:
Lazarus svn trunk (revision 57956) has now a dedicated option that can be enabled to issue the command to gdb.

Navigation

[0] Message Index

[#] Next page

Go to full version