Forum > Debugger

Debugger crash on OSX El Capitan

(1/3) > >>

Frogfather:
Hi all,

New to this forum. I've got Lazarus running fine on my desktop machine (Fedora 25) and also on a raspberry pi, but have got stuck with an installation on OSX El Capitan on an admittedly ancient Macbook pro (2008 - core 2 duo)
Installation went fine. Setup is as follows:
fpc 3.0.4
lazarus 1.8
gdb 8.1

IDE finds all components but compiling any application (even a blank form) results in
the attached error.

I've done a bit of searching round the forum but haven't found any similar errors. I'll assume someone has seen this before.

Thanks in advance for any help.




Phil:

--- Quote from: Frogfather on April 06, 2018, 11:13:33 pm ---I've done a bit of searching round the forum but haven't found any similar errors. I'll assume someone has seen this before.

--- End quote ---

Search wiki for instructions on codesigning the debugger. I believe that's required now. Lazarus doesn't use the current Apple debugger (lldb), so you have to get gdb set up yourself.

You can also run without the debugger. See Tools | Options.

You can also export to Xcode and debug there with lldb:

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

Martin_fr:
btw, the info what exact error you got is hidden. press the "more" button.

But codesigning seems likely

Frogfather:
Thanks for both replies - I did follow the instructions on codesigning and everything appeared to work.

Complete error message is
--------------------------------------------
The GDB command:
"-gdb-set confirm off"
did not return any result.

The GDB process is no longer running.
--------------------------------------------
and the executable looks to be correctly signed:

Executable=/usr/local/Cellar/gdb/8.1/bin/gdb
Identifier=org.gnu.gdb
Format=Mach-O thin (x86_64)
CodeDirectory v=20100 size=62396 flags=0x0(none) hashes=1946+2 location=embedded
Hash type=sha256 size=32
CandidateCDHash sha256=37f81e9e2c57681b6ad94e4285efca2269b0aa0e
Hash choices=sha256
CDHash=37f81e9e2c57681b6ad94e4285efca2269b0aa0e
Signature size=1834
Authority=gdb-cert
Signed Time=5 Apr 2018, 07:34:59
Info.plist entries=4
TeamIdentifier=not set
Sealed Resources=none
Internal requirements count=1 size=88

and yes, the IDE works fine without debugging but that's of limited use :P

Thanks again for any advice.

John


Phil:

--- Quote from: Frogfather on April 07, 2018, 10:16:03 pm ---Thanks again for any advice.

--- End quote ---

I have a MacBook of the same vintage as yours, but I don't hassle with gdb, so I can't help much there.

Note that you can debug any .app with the Mac's lldb debugger:

lldb myapp.app

https://developer.apple.com/library/content/documentation/IDEs/Conceptual/gdb_to_lldb_transition_guide/document/lldb-terminal-workflow-tutorial.html

If you're familiar with gdb commands, here's the equivalent lldb commands:

https://lldb.llvm.org/lldb-gdb.html

Navigation

[0] Message Index

[#] Next page

Go to full version