Re: [arm-gnu] SIGILL received when debugging thumb code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] SIGILL received when debugging thumb code
- To: ?????? <polaris_hsieh@xxxxxxxxxxxx>
- Subject: Re: [arm-gnu] SIGILL received when debugging thumb code
- From: Carlos O'Donell <carlos@xxxxxxxxxxxxxxxx>
- Date: Mon, 5 Mar 2007 15:24:32 -0500
On Tue, Mar 06, 2007 at 12:06:38AM +0800, ?????? wrote:
> Dear all,
>
> I am trying to compile and debug on a Cortex-A8 board and encounter a
> strange problem. Could anyone help me if you happen to know the solution?
> Thank you in advance.
>
> Linux Kernel: 2.6.17
> Development Tool: Release 2006q3-26
>
> Problem Description:
>
> I used a "helloworld" C program to test the compiling and debugging
> capabilities of this release. We compiled the code with both ARM and THUMB
> mode and they worked fine on the board. But when we tried to debug the
> code compiled with THUMB mode (using gdb and gdbserver provided in the
> package), I got the error message "Program received signal SIGILL, Illegal
> instruction." The problem occured even before main(). And the ARM code
> didn't have this problem.
>
> The compile options we used for the code is:
> arm-none-linux-gnueabi-gcc -mcpu=cortex-a8 -mthumb -o hello hello.c
>
> Any suggestions would be appreciated. Thank you very much in advance.
Could you please provide the output of:
1. From the host side "bin/arm-none-linux-gnueabi-gdb -v"
2. From the target side "gdbsever -v"
3. From the target side "gdb -v"
Thanks!
Cheers,
Carlos.
--
Carlos O'Donell
CodeSourcery
carlos@xxxxxxxxxxxxxxxx
(650) 331-3385 x716