[coldfire-gnu-discuss] GDB and unresolved breakpoints (RedBoot, compiled under Cygwin)

Tarmo Kuuse tarmo.kuuse at proekspert.ee
Tue Jan 13 14:00:24 UTC 2009


Tarmo Kuuse wrote:
> We are developing RedBoot (boot loader for eCos) for MCF5208 using the 
> Windows personal edition of 4.3-79 ELF toolchain. eCos requires a Unix 
> build environment, so we build it under Cygwin. The build works and the 
> resulting RedBoot runs just fine.

/** TODO: in future, when hearing eCos and
     Windows in one sentence, run like hell.

     Update 2009-01-13: don't stop for anything
*/

> The absolute path is in unix format (because it's built in cygwin) 
> "/ecos-c/foo/bar.c". Could this be the culprit?

Okay, problem solved. I forgot to add CYGPATH to Windows environment 
variables. Kudos to Codesourcery guys for the hint.

By the way - it's not quite plug and play. When debugging for the first 
time, Eclipse complains:

[quote begins]
Can't find a source file at "c:\ecos-c\projects\...[snip]...\vectors.S"
Locate the file or edit the source lookup path to include its location.
[quote ends]

The "\ecos-c" should have vanished when cygpath converted path to 
windows format. In my case is still there and breaks the path.

Pressing the button "Locate File" and browsing to the source 
automatically adds a path mapping from "c:\ecos-c" to "c:\" which heals 
the defective path. I can proceed with actual debugging.

--
Kind regards,
Tarmo Kuuse

Proekspert AS
tarmo.kuuse at proekspert.ee



More information about the coldfire-gnu-discuss mailing list