Welcome! Log In Create A New Profile

Advanced

Produce core dump to the SD

Posted by TheDrev 
Produce core dump to the SD
April 30, 2010 02:36PM
Hi,

In theory, when a seg fault is raised and the core dump is displayed on screen, could it be possible to generate a full core dump on the SD to watch local variables and backtrace the stack without a usb gekko ?
Re: Produce core dump to the SD
April 30, 2010 04:13PM
I guess that's possible, in theory. Seems kinda complex, though.
Re: Produce core dump to the SD
May 01, 2010 09:39PM
ive written something that did this exact same thing in the past, and it worked. but, it isnt such a great idea.

as tantric once told me, a code dump means that your program has crashed. and you once that happens, you cant really trust it. so even if the code is written correctly and it works most of the time, you are trusting a program which has crashed with write permission to your SD card. you arent allowed to get mad when it wipes out all your data.
Re: Produce core dump to the SD
May 03, 2010 10:53AM
Interesting idea, it's not that convenient for people to capture the DSI exception stack trace of the screen. Maybe instead of trying to save it to disk (which could FAT corruption, if your exception was caused during writes) it would be better to send it out over the wifi network?
Sorry, only registered users may post in this forum.

Click here to login