I'm porting a Lazarus program from Windows to Macintosh.
One user is experiencing regular exceptions. In the windows version, I generate a list of calls when an exception occurs so I can determine where the error occurs.
In osx, the BackTraceStrFunc returns only an address.
In Windows, BackTraceStrFunc produces a line such as
$004F7708 TCONTROL__CLICK, line 2736 of ./include/control.inc
When I run it on Mac OS, I only get
$004F7708
I can use lldb at the command line and it works, but explaining to a remote user how to use lldb is an option I am hoping to avoid.
The compiler is Lazarus 2.0RCL2. It is compiling 64bit / cocoa. I have tried it with GDB and LLDB as the debugger.
Note that if I'm running the debugger in lazarus, I can do a Call Stack from the debugger and it works properly. So the information is available.
Enclosed is a simple project that will generate a backtrace. It works fine in windows and linux, but fails in Mac osx.
Does any one know what needs to be done to make this work? Thanks.
bigDan