Hi All,
I’ve installed QEMU on my ubuntu system & configured qemu for ARM machine.
I wrote small program to cause data abort i.e. shown below:
int main() {
int *p;
p = 0x12345678; //assuming non-existing address
*p = 10; // should cause data abort
return 0;
}
>gcc –g –o db dataabort.c //compiled
After compiling on arm machine & executing it showing segmentation fault. I tried to see the disassembly but didn’t see that code is entering into DATA_Handler?
While debugging (using command gdb) it showed Program received signal SIGSEGV, segmentation fault after executing the last line i.e. *p = 10;
Do I need to specify any board name or something before compilation?
Why it’s showing segmentation fault on ARM machine, it should go to specific exception handler?
Please tell me how to achieve ARM exceptions ?
Regards,
Mayur