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! |
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 |
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).
|
Thank you very much win32sux & btmiller
|
All times are GMT -5. The time now is 03:30 PM. |