[ECOS] Re: does ecos support generating core files of kernel crashdumps?

Andrew Lunn andrew@lunn.ch
Wed Oct 15 20:59:00 GMT 2003


Hi Adrian

There are a couple things you can do to help in field debugging.

1) Hook into the cyg_assert_fail() function and write the text of the
   message to flash, syslog, ide device etc

2) Hook into the exception handler and print/flash/syslog all the
   saved registers and maybe some of the stack.

If you can read assembly language and match it back to the C sources,
i found the register dump very useful. I've solved, or at least got a
good head start fixing in field bugs with this.

     Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss



More information about the Ecos-discuss mailing list