|
From: | Mayur Aggarwal |
Subject: | [Qemu-discuss] Segmentation fault on ARM machine |
Date: | Fri, 4 Jan 2013 06:23:56 +0000 |
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
DISCLAIMER: This email may contain confidential information and is intended only for the use of the specific individual(s) to which it is addressed. If you are not the intended recipient of this email, you are hereby notified that any unauthorized use, dissemination or copying of this email or the information contained in it or attached to it is strictly prohibited. If you received this message in error, please immediately notify the sender at Infotech and delete the original message. |
[Prev in Thread] | Current Thread | [Next in Thread] |