Debug problem with Eclipse/Yagarto GDB

OP #1173520
Rate this post
• ▲ 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
#1173521
Rate this post
• ▲ 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
OP #1173522
Rate this post
• ▲ 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

Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.