The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > High Level Programming
.
google unix.com



High Level Programming Post questions about C, C++, Java, SQL, and other programming languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to view a core dump file vikashtulsiyan High Level Programming 6 01-11-2008 01:15 PM
Core dump in HP-UX.. gyanusoni UNIX for Dummies Questions & Answers 0 09-07-2007 03:29 AM
core dump file size pushp.gahlot UNIX for Dummies Questions & Answers 4 08-06-2007 10:56 AM
core dump hassan2 UNIX for Dummies Questions & Answers 4 05-07-2002 08:05 AM
help, what is the difference between core dump and panic dump? aileen UNIX for Dummies Questions & Answers 1 06-11-2001 08:08 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 05-25-2008
lagigliaivan lagigliaivan is offline
Registered User
  
 

Join Date: May 2008
Posts: 45
How to use a core dump file

Hi All,

May be it is a stupid question, but, I would like to know what is the advantage using a core dump file at the moment of debugging using gdb.

I know a core dump has information about the state of the application when it crashed, but, what is the difference between debugging using the core dump file and use gdb without it.

Thank you!!
  #2 (permalink)  
Old 05-25-2008
jim mcnamara jim mcnamara is offline Forum Staff  
...@...
  
 

Join Date: Feb 2004
Location: NM
Posts: 5,728
You can backtrace the core file and not wait for ten minutes for the new run of the code to stackdump. You can find the exact line where the fault occurred.

If you are trying to locate an errant out-of-bounds write to a varaible, then use electric fence. IT is linked at run time. You can see the results either in gdb or from the output of a run.
  #3 (permalink)  
Old 05-26-2008
lagigliaivan lagigliaivan is offline
Registered User
  
 

Join Date: May 2008
Posts: 45
I am sorry jim

Since I was making a test using only a main function I couldn't realize the advantages. Now, I've made a test using several function calls and I can see the difference of using a core dump file.

Thank you very much!
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:54 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0