Debug through core dump

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ashokd001
    New Member
    • Aug 2008
    • 30

    Debug through core dump

    Hi

    In my C++ project, it is duping core file.
    I don't know how to get reason & file name & function name from core file. How can i make core file useful for debugging.

    Any suggestion highly appriciated.

    Best Regards,
    Ashok
  • JosAH
    Recognized Expert MVP
    • Mar 2007
    • 11453

    #2
    Originally posted by ashokd001
    In my C++ project, it is duping core file.
    I don't know how to get reason & file name & function name from core file. How can i make core file useful for debugging.
    Start gdb as normal and load the core file using the command "core <filename>"
    where <filename> is the name of your core file. After the file has been loaded you
    can print back traces and other gdb stuff.

    kind regards,

    Jos

    Comment

    Working...