Op Tue, 26 Feb 2008, schreef Bernd Mueller:

Hello,

my ARM-Linux board seems to be resistant against bus errors/misaligned data access or the compiler does some magic to prevent these ;-)

Yes, the kernel "fixes" the unaligned access.

It would help me, to debug a program, when my board would abort with an error message, so that I can isolate the bug. Does someone know, if there exists something like a Linux option do disable/enable data aborts?

Yes, if you want signals, do:

echo 4 > /proc/cpu/alignment

... and your program should abort at any unaligned access.

Daniël
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to