<html><head><meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }body { font-size: 10.5pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style></head><body>
<div><span></span>It is a good starting place to handle the crash problem. Especially the records could be packed to send to a host computer using TCP/IP.</div><div>One of the question for us is there is no network interface. But we have a flash disk. So we should modify the send flow using file system instead of network.</div><div>Moreover, we need expand the recorded data to get more information of the crash.</div>
<div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN: 10px; FONT-FAMILY: verdana; FONT-SIZE: 10pt"><div>smallphd@aliyun.com</div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm"><div style="PADDING-RIGHT: 8px; PADDING-LEFT: 8px; FONT-SIZE: 12px;FONT-FAMILY:tahoma;COLOR:#000000; BACKGROUND: #efefef; PADDING-BOTTOM: 8px; PADDING-TOP: 8px"><div><b>From:</b> <a href="mailto:sebastian.huber@embedded-brains.de">Sebastian Huber</a></div><div><b>Date:</b> 2020-09-18 00:00</div><div><b>To:</b> <a href="mailto:smallphd@aliyun.com">smallphd@aliyun.com</a>; <a href="mailto:devel@rtems.org">devel</a></div><div><b>Subject:</b> Re: does rtems 5.1 support create a core dump file when accessing a invalid address or other fatal errors?</div></div></div><div><div>Hello,</div>
<div> </div>
<div>On 15/09/2020 12:58, smallphd@aliyun.com wrote:</div>
<div>> I am developing applications in rtems 5.1. As we know, my application </div>
<div>> and rtems kernel are both in the same address space.</div>
<div>> So if my application access an invalid address or encounter other </div>
<div>> fatal errors, I want the kernel not just being hunging, but create a </div>
<div>> core dump file.</div>
<div>> This file contains the whole contents of memory and I could use a </div>
<div>> debuger to analyse the file to handle the bug.</div>
<div>> The question arise because I do not want always debug rtems in the bsp.</div>
<div> </div>
<div>in addition to dumping the current state of the application, you can use </div>
<div>the event recording to get a bit of the dynamic behaviour before the crash:</div>
<div> </div>
<div>https://docs.rtems.org/branches/master/user/tracing/eventrecording.html</div>
<div> </div>
</div></blockquote>
</body></html>