This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Re: Debugging via JTAG - problems?
- From: Edgar Grimberg <edgar dot grimberg at gmail dot com>
- To: Lukas Riezler <lukas dot riezler at gmx dot net>
- Cc: ecos-discuss at sourceware dot org
- Date: Thu, 25 Apr 2013 15:38:40 +0200
- Subject: Re: Re: Debugging via JTAG - problems?
- References: <trinity-f282db46-eac2-47d3-8bb1-13e21542ba72-1366848816388 at 3capp-gmx-bs55> <5178E338 dot 3090307 at siva dot com dot mk> <trinity-ba72444c-8db1-461a-b4d5-1651ed21f6d2-1366894983433 at 3capp-gmx-bs14> <CAPrjMDBTTL3K=jw8bN=u0D3qL-K_kbqraFgS4e2vL_pTrN3mNw at mail dot gmail dot com>
Resent for the list... first attempt failed due to HTML email.
On Thu, Apr 25, 2013 at 3:31 PM, Edgar Grimberg
<edgar.grimberg@gmail.com> wrote:
>
>
> On Thu, Apr 25, 2013 at 3:03 PM, Lukas Riezler <lukas.riezler@gmx.net> wrote:
>>
>> Hi Ilija!
>>
>> > How do you get to main? by single stepping? Breakpoint?
>> > Put breakpoint on hal_system_init() . That's an early breakpoint and
>> > will give you chance to step through system booting.
>>
>> Yes, I did it by single stepping. Like you advised I tried it now with a breakpoint at hal_system_init().
>> Eclipse shows me that this breakpoint exists and it also shows me that the breakpoint is located in the correct file! That's good.
>> Now I try to "run" (with "Resume" / F8) the program until the breakpoint should halt it. But unfortunately nothing happens?
>
>
> Hi Lukas,
>
> Some advices related to debugging:
> - Be sure everything is compiled with -O0 (no optimization).
> - Try using the gdb in command line until you are sure you are doing the right thing.
> - If you are trying to debug I/O, don't mouse around in Eclipse, as you might trigger an unwanted read operation by hovering over a variable.
> - Be sure you have compiled the latest version of the source code.
> - Be sure you have loaded the elf file to the target (I assume it's a RAM application, isn't it?)
>
> Post the exact steps you are doing in command line gdb (copy + paste commands and output), it might be clearer like that.
>
> Regards,
> Edgar
>
>
>>
>>
>> With kind regards,
>> Lukas
>>
>> --
>> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
>> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>>
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss