Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

To read "core" files 1

Status
Not open for further replies.

ssnkumar

Programmer
Jun 18, 2001
3
0
0
IN
Can anybody tell me, what is the use of "core" files? And if yes, is there anyway of reading its contents and using that info in debugging? If it is not useful, then why the program has dumped core before quitting. It can quit without dumping core also?
 
Hi Kumar,

The core file contains all the process information pertinent
to debugging: contents of hardware registers,process status, and process data.

You can do a "man core" and see all the gory details.

You can use the core file to debug and see where and how the program failed.

do "dbx prog_name core" to see the core image file. You can check the values of variables, the state of the program when it dumped core etc.,

Believe it or not, core file is very very useful.

Mohan


 
But I could not execute dbx in Linux(Redhat 6.2) Please tell me how to do that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top