If code is compiled with debugging information, gdb gives source level
information. File name and line number when crash occurs.

You can use -g option while compiling. There are other options as well.
Please see gcc man page for that.

Regards,
Kalpesh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Friday, June 06, 2008 2:35 PM
To: davinci-linux-open-source@linux.davincidsp.com
Subject: Re: Alignment trap problem

hi
thank you for the reply

this is what im getting

Alignment trap: application(1198) PC=0x4074fcf0 Instr=0xe49c2004
Address=0x000e96d6 FSR 0x013

so how can i look in to this?





> [EMAIL PROTECTED] wrote:
>> hi ..
>>
>>       I am trying to run an application on davinci .. i have
>> successfully
>> cross compiled the source .. and while running on on board .. its
>> giving
>>
>> alignment trap:
>> bus error
>>
>> and application will abort..
>>
>> I have tried the same source for x86 machine and it worked fine .. i
>> know
>> this has to do something with arm memory alignment access .. please can
>> anybody tel me how to solve this alignment trap issue .. .. or can tel
>> me
>> where in source code i can fix this ??
>
> arm can access 16bit words only on 2 byte aligned addresses and 32 byte
> words
> only on 4 byte aligned addresses.
>
> X86 does not care, so a lot of X86 code accesses 16 and 32 unaligned.
> You'll
> have to inspect your code and find the places where this happens, usual
> suspects
> are char* pointer which are casted to complex structs.
>
> The aligment trap should give you a hint where in your code this happened.
>
> http://netwinder.osuosl.org/users/b/brianbr/public_html/alignment.html
> http://www.mjmwired.net/kernel/Documentation/arm/mem_alignment
>
> Regards,
>
> Vladimir
> _______________________________________________
> Davinci-linux-open-source mailing list
> Davinci-linux-open-source@linux.davincidsp.com
> http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source
>


_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

_______________________________________________
Davinci-linux-open-source mailing list
Davinci-linux-open-source@linux.davincidsp.com
http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source

Reply via email to