View previous topic :: View next topic |
Author |
Message |
mickywicky Tux's lil' helper
Joined: 05 Nov 2002 Posts: 86 Location: London, UK
|
Posted: Wed Apr 30, 2003 6:12 pm Post subject: core file handling? |
|
|
Hi guys,
this may be a stupid question, I know what core dumps are, but when I need to bedug an app, I don't really know what to do with them... 'less' is of some help, but I was wondering whether there is a better tool out there for decoding core files?
suggestions welcome!
Micky |
|
Back to top |
|
|
compu-tom Guru
Joined: 09 Jan 2003 Posts: 415 Location: Berlin, Germany
|
Posted: Wed Apr 30, 2003 7:47 pm Post subject: |
|
|
A core file is the memory image of a programm at the time when the core was created.
gdb is the tool to examine core files. But there is one requirement to debug a program. You need its binary with debug information compiled in. That is, run
where myprog is the debug binary the core belongs to. You'll get a prompt. Type there to get a backtrace (the function calling stack) at the time when the core was generated.
Get out of gdb with |
|
Back to top |
|
|
mickywicky Tux's lil' helper
Joined: 05 Nov 2002 Posts: 86 Location: London, UK
|
Posted: Wed Apr 30, 2003 8:34 pm Post subject: |
|
|
danke mister
Ich hatte vermutet, daß das ganzes mit gdb zu tun hatte,
but I didn't know you coudl use it as a parameter...
Thanx! |
|
Back to top |
|
|
|