Share your knowledge at the LQ Wiki.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 08-11-2010, 12:02 AM   #1
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 351

Rep: Reputation: 78
Creating a core dump from raw ram dump?

So I have an embedded device that runs eCos on a sparc. I have on my linux box the ELF executable file and the cross compiler tools, and a debug connection that I can use to pull the entire contents of ram from the device.

Now I want to do that and create a core dump file so I can debug the core dump at leisure.

Any ideas how to do that?
Old 08-11-2010, 11:55 PM   #2
Registered: Jul 2008
Distribution: Slackware
Posts: 124

Rep: Reputation: 30
coredump to ram may be noninvertible transform

Core dump to RAM image is not a trivially invertible transform. The problem is that the core dump includes the register images and memory image inside the process. The mapping from the process memory space to the RAM addresses depends on the registers in the memory management unit (MMU). That is, there may be no fixed mapping from RAM address back to process memory address space because you do not have the MMU and register contents.
I am weak on my familiarity with sparc architecture, so my comments are a best somewhat-educated guess on my part.
Old 08-15-2010, 05:57 PM   #3
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 351

Original Poster
Rep: Reputation: 78
Hmm. Fortunately in this case, (or unfortunately in most other cases), we do _not_ have the MMU active. ie. I can pull the ram and registers as seen by the process no trouble. The problem then is merely to format as a coredump edible to gdb.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raw bios dump using dd John Musbach Linux - Software 2 11-02-2011 08:47 PM
Core dump issues. Program crashes but does not generate core dump file sabeel_ansari Programming 1 10-07-2009 04:23 PM
How to disable KDE from creating core dump file? browny_amiga Linux - General 1 06-02-2009 12:40 PM
dump sector of raw device? Red Squirrel Linux - Software 1 07-06-2008 02:46 PM
Mounting a raw dump (using dd) of a removable media spamwax Linux - Software 6 05-28-2008 02:53 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration