EmbDev.net

Forum: ARM programming with GCC/GNU tools Debug problem with Eclipse/Yagarto GDB


Author: John Franklin (jfran)
Posted on:

Rate this post
0 useful
not useful
Problem with Eclipse Yagarto GDB.

I have the Yagarto eclipse tool chained installed and running using the
Olimex ARM_USB_OCD.

I have a very simple project consisting of just two source files; main.c
and the startup file crt.s.
I can compile link and debug satisfactorily. However, if I place a break
point in the startup file crt.s I get an error reported in the console
view: 'No source file named crt.s'.

Placing break points in main.c is no problem.

My suspicion is that GDB cannot find any reference to this file, but why
has me beat.

Any help would be much appreciated. Thanks.

John Franklin

Author: Michael Fischer (mifi)
Posted on:

Rate this post
0 useful
not useful
Hello John,

> I can compile link and debug satisfactorily. However, if I place a break
> point in the startup file crt.s I get an error reported in the console
> view: 'No source file named crt.s'.

I know this problem, with the new versions I have used, this is gone.

- YAGARTO from 01.02.2008
- YAGARTO IDE 27.12.2007

Which version do you use?

Regards,

Michael

Author: John Franklin (jfran)
Posted on:

Rate this post
0 useful
not useful
Michael Fischer wrote:
> Hello John,
>
>> I can compile link and debug satisfactorily. However, if I place a break
>> point in the startup file crt.s I get an error reported in the console
>> view: 'No source file named crt.s'.
>
> I know this problem, with the new versions I have used, this is gone.
>
> - YAGARTO from 01.02.2008
> - YAGARTO IDE 27.12.2007
>
> Which version do you use?
>
> Regards,
>
> Michael

Thanks Michael for the response.
I'm using the following versions, all from from YAGARTO site:
Yagarto tools: 03.03.2007
Yagarto gnu arm toolchain 01.02.2008
Yagarto ide 27.12.2007.
So it looks like the same version as yourself.
I was wondering how the GDB knows how to locate source files. So,
searching the net I found references to having to explicity tell the GDB
the path to project source files. One such reference describes setting
the path in Window->Preferences->C/C++ -> Debug -> Common source lookup.
Tried this using my project as the path. Made no difference. Ah well,
I'll keep trying.
Thanks again.
Regards, John.

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.