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

Regarding Core Dump Debugging

Status
Not open for further replies.

sramki

Programmer
May 8, 2001
27
IN
hi all

How to Debug a Core dump and locate the the error ?
Also tell how to use the Debugger for debugging the core dump?

 
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.

:">

abp
 
Use gdb debugger for debugging.

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.


Maniraja S

 
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.

Maniraja S

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top