LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Reading Core Dumps (https://www.linuxquestions.org/questions/linux-general-1/reading-core-dumps-179104/)

bru 05-07-2004 06:23 PM

Reading Core Dumps
 
Quick question, how do you read a Core Dump?? I have a program that I just created but when I run it, it crashes and creates a core dump. I think it might be helpfull in debuging the program if I could read the core dump file.

Thanks for the help in advance!

win32sux 05-07-2004 07:11 PM

you need to look at the core dump with a debugger... on linux it's usually "gdb"...

http://www.gnu.org/software/gdb/gdb.html

btmiller 05-07-2004 07:13 PM

Usually you use a debugger to read them. The standard debugger with Linux is gdb. So to debug program1 with its core file your would type 'gdb program1 core'. Note that you may not get all the info you want if you didn't compile the program with debugging support (-g flag to gcc).

bru 05-07-2004 07:19 PM

Thank you very much win32sux & btmiller


All times are GMT -5. The time now is 03:30 PM.