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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Read a core dump file

Status
Not open for further replies.

alhassani54

Programmer
Aug 1, 2002
27
GB
Hi

I would like to read a core dump file. Do I use the strings command?

Thanks

Kais
 
Typically I use GDB.

the first thing you need to do is find an executable to associate with the core file so GDB can at least associate something. GDB is handy so I use GDB there too


gdb `which gdb` core

and then it will tell me that it doesn't think GDB caused the core because the core was created by

/bin/myuserprog

So I quit gdb and then restart it

gdb /bin/myuserprog core

 
on solaris the 'file' command on a core file will tell you which program created it.

there are a few other utilities for debugging core files on solaris, but i'm blowed if i can remember them off the top of my head :)

sorry :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top