LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

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

Rep: Reputation: 43
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
ArthurSittler
Member
 
Registered: Jul 2008
Distribution: Slackware
Posts: 124

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

cyent,
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
cyent
Member
 
Registered: Aug 2001
Location: ChristChurch New Zealand
Distribution: Ubuntu
Posts: 245

Original Poster
Rep: Reputation: 43
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.
 
  


Reply


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


All times are GMT -5. The time now is 11:24 AM.

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