La commande GDB :It's.... impressive ! So a little bit out of a time loss for a normally so simple thing, I wonder if anyone has a reliable method, not for 10.8, 10.9... but 10.12.5, the current version of Mac OS X. Thank you in advance. Cordially. Gilles
"-exec-run"
a renvoyé l'erreur :
",msg="Unable to find Mach task port for process-id 699: (os/kern) failure (0x5).\n (please check gdb is codesigned - see
I usually use Qt and LLDB. Xcode 8.3.3 is installed.
This morning I installed Lazarus to test unidac with Mac OS 10.12.5. I use it with Delphi.
unMac:~ untel$ ls -l /usr/local/bin/gdb
-r-xr-xr-x 1 untel admin 8407456 18 jui 14:10 /usr/local/bin/gdb
unMac:~ untel$ /quote]
Hello,0
It is true that I carried out many operations before they succeeded. I propose to check some settings ...
- Lazarus :
- Version (http://www.sdeidev.com/lazarus/mac/debugger/170619-00.png)
- Debugger (http://www.sdeidev.com/lazarus/mac/debugger/170619-01.png)
- /usr/local/bin/gdb : executable permission
QuoteunMac:~ untel$ ls -l /usr/local/bin/gdb
-r-xr-xr-x 1 untel admin 8407456 18 jui 14:10 /usr/local/bin/gdb
unMac:~ untel$ /quote]
Regards. Gilles
I usually use Qt and LLDB. Xcode 8.3.3 is installed.
This morning I installed Lazarus to test unidac with Mac OS 10.12.5. I use it with Delphi.
I would recommend that you create a temporary Xcode project for the Lazarus project and debug in Xcode with lldb. Here's how:
https://macpgmr.github.io/ObjP/ProjectXC.html
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 8.1.0 (clang-802.0.42)
Target: x86_64-apple-darwin16.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
This program built for i386-apple-darwin11.3.0
QuoteunMac:~ untel$ ls -l /usr/local/bin/gdb
-r-xr-xr-x 1 untel admin 8407456 18 jui 14:10 /usr/local/bin/gdb
unMac:~ untel$ /quote]
$ ls -al /sw/lib/fsf-gdb/fsf-gdb
-rwxr-sr-x 1 root procmod 8792912 Jul 28 13:15 /sw/lib/fsf-gdb/fsf-gdb
$ sudo chown myusername:admin /sw/lib/fsf-gdb/fsf-gdb