11
macOS / Mac OS X / Re: Debugger crashes with Apple Silicon code
« Last post by trev on Today at 05:37:55 am »Same issue with a new install of Lazarus 3.2.
>> target create /Users/trev/Documents/laz_lnet_smtp/project1.app
(lldb) target create /Users/trev/Documents/laz_lnet_smtp/project1.app
Current executable set to '/Users/trev/Documents/laz_lnet_smtp/project1.app' (arm64).
>> settings clear target.run-args
(lldb) settings clear target.run-args
>> breakpoint set --func fpc_break_error -K false
(lldb) breakpoint set --func fpc_break_error -K false
Breakpoint 1: no locations (pending).
>> breakpoint set --func fpc_runerror -K false
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_runerror -K false
Breakpoint 2: no locations (pending).
>> breakpoint set --func fpc_raiseexception -K false
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_raiseexception -K false
Breakpoint 3: where = project1`FPC_RAISEEXCEPTION, address = 0x000000010001ae30
>> breakpoint command add 3
>> p/x $x0
>> p/x $x2
>> p ((char ***)$x0)[0][3]
>> p ((char **)$x0)[1]
>> DONE
>> version
(lldb) breakpoint command add 3
(lldb) version
>> breakpoint command add 2
>> p/x $x0
>> DONE
>> version
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) breakpoint command add 2
(lldb) version
>> breakpoint command add 1
>> p/x $x0
>> DONE
>> version
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) breakpoint command add 1
(lldb) version
>> process launch -n
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) process launch -n
error: the platform is not currently connected
>> process kill
>> quit
>> target create /Users/trev/tmp/project1.app
(lldb) target create /Users/trev/tmp/project1.app
Current executable set to '/Users/trev/tmp/project1.app' (arm64).
>> settings clear target.run-args
(lldb) settings clear target.run-args
>> breakpoint set --func fpc_break_error -K false
(lldb) breakpoint set --func fpc_break_error -K false
Breakpoint 1: no locations (pending).
>> breakpoint set --func fpc_runerror -K false
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_runerror -K false
Breakpoint 2: no locations (pending).
>> breakpoint set --func fpc_raiseexception -K false
WARNING: Unable to resolve breakpoint to any actual locations.
(lldb) breakpoint set --func fpc_raiseexception -K false
Breakpoint 3: where = project1`FPC_RAISEEXCEPTION, address = 0x000000010001b4d0
>> breakpoint command add 3
>> p/x $x0
>> p/x $x2
>> p ((char ***)$x0)[0][3]
>> p ((char **)$x0)[1]
>> DONE
>> version
(lldb) breakpoint command add 3
(lldb) version
>> breakpoint command add 2
>> p/x $x0
>> DONE
>> version
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) breakpoint command add 2
(lldb) version
>> breakpoint command add 1
>> p/x $x0
>> DONE
>> version
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) breakpoint command add 1
(lldb) version
>> process launch -n
lldb-1500.0.404.7
Apple Swift version 5.10 (swiftlang-5.10.0.13 clang-1500.3.9.4)
(lldb) process launch -n
Process 56020 launched: '/Users/trev/tmp/project1.app/Contents/MacOS/project1' (arm64)
Process 56020 exited with status = 0 (0x00000000)
>> process kill
>> quit
You're welcome.
Thanks my man. What is that font you're using called?
You're welcome.
Put it on https://wiki.freepascal.org/UserSuppliedSchemeSettings ?I just added it there. Called it "Eclipse".
that editor colour theme looks good. Did you make it yourself? Would you mind sharing it?Yes, I made that theme decades ago in my normal editor then I applied it to Delphi (v1) then to Lazarus (v1.8 ). It's got a lot of miles on it. My pleasure to share it, it's attached to this post. I renamed it from "ExportedColors" to a bit of megalomania.
Sorry about this being unrelated to your topic.
Thank you.