This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: does ecos support generating core files of kernel crashdumps?
- From: Andrew Lunn <andrew at lunn dot ch>
- To: adrian at atheros dot com
- Cc: eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: Wed, 15 Oct 2003 22:56:28 +0200
- Subject: [ECOS] Re: does ecos support generating core files of kernel crashdumps?
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