EmbDev.net

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


von John F. (jfran)


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

von Michael F. (mifi)


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

von John F. (jfran)


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.

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.