In debuggers like sun workshop / cvd there is an option to load a core-file. You need to specify the executable that caused the coredump also. The debugger can tell you what sort of signal(interrupt) caused the coredump.
put gcc or cc -g source file_name -o object_filename
now put gdb object_filename
Make sure that the source file is present in the current directory. Put man gdb for more help, make a search in google for gdb for additional informations.
You can debug a crashed program. If a program is crashed then a file named core will be created on your current working directory, based on this you can debug your program.
The core file will have the memory image of the process.
compile your program with debug messages.
cc or gcc -g source_file_name -o output_file_name
now enter into the gdb debugger by giving
gdb output_file_name core
Make sure that the source file is also present in the currernt working directory.
Now you can put print and where commands. See the man page for gdb for more informations.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.