Still having the issue of FM/semi-hosting not catching seg-faults using 2013.06. With "aem-ve.specs", a fault seems to call main() repeatedly. With "dimon.specs", FM hangs. Any ideas how to properly compile/deal with faults in semi-hosting mode?
thanks, Rory
=== hello.c === #include <stdio.h>
int main(int argc, char *argv[]) { printf("hello.\n"); * ((unsigned int *) 0) = 0; // cause seg-fault
return 0; }
=== compile/run === .../gcc-linaro-aarch64-none-elf-4.8-2013.06_linux/bin/aarch64-none-elf-gcc -specs=aem-ve.specs -march=armv8-a -c hello.c .../gcc-linaro-aarch64-none-elf-4.8-2013.06_linux/bin/aarch64-none-elf-gcc -o hello -specs=aem-ve.specs -march=armv8-a hello.o
.../Foundation_v8 --image hello --quiet --semihost-cmd=hello
hello. hello. hello. hello. hello. ...