1841506 Members
2324 Online
110181 Solutions
New Discussion

reading core dump files

 
yatin
Frequent Advisor

reading core dump files

i want to read a kernel core dump file( which are in /var/addm/crash/crash.4 i am read ing the directory) from my c program.I am using cr_open and cr_read.cr_read requires a pgno i have the address 0x440C4000 how can i translate this address to page number and offset. adb does the conversion but i dont know how. Can anyone please help me
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: reading core dump files

To read such a file, you need to do q4 dump analysis.

I had a doc that I was posting that was shall we say a no-no. Here is the document id and link, so if you have a software contract you can read it.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=475751
See my post in the above thread.

OZBEKBRC00000611 - How do I use q4 to pre-process a dump that HP needs to read


I'm working on a paraphrase of the document, but you'll have no trouble reading it if you have a software contract.

Dan G. has been kind enough to leave my version out there for the time being. I will get my paraphrase approved and posted as soon as possible.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Yatin Chaubal
New Member

Re: reading core dump files

Hi Steven,

Actually what I am trying to do is write a utility similar to adb.I want write a program which will accept an address and print value stored at that address.adb does this by following command.
adb>440C4000 /2X.
That's why I am trying use cr_open and cr_read but I don't know how to convert this address to page number. which is needed by cr_read.