Peter N Lewis wrote:
At 5:48 +0200 27/7/05, Frank Heckenbach wrote:
However, the main thing that gpc-run is to run the program with the option --gpc-rts=-E... (you might also consider --gpc-rts=-F...; run a GPC compiled program with --gpc-rts=-h for details). This gives more information, in particular a backtrace. Afterwards, it uses addr2line to translate the error and backtrace locations into routine names and source code positions.
Hmm, it looks like addr2line is part of binutils, and my feeble attempt to compile binutils on Mac OS X comes up short when ./configure says:
*** This configuration is not supported in the following subdirectories: bfd binutils ld gas opcodes gprof (Any other directories should still work fine.)
Unfortunately, Apple still has its own hacked cctools for Mac OS X (and I didn't find a binutils package). We will have to ask on a Darwin mailing list.
Found it here http://binutils.darwinports.com/.
Regards,
Adriaan van Os