Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
core file handling?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Wed Apr 30, 2003 6:12 pm    Post subject: core file handling? Reply with quote

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
View user's profile Send private message
compu-tom
Guru
Guru


Joined: 09 Jan 2003
Posts: 415
Location: Berlin, Germany

PostPosted: Wed Apr 30, 2003 7:47 pm    Post subject: Reply with quote

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
Code:
gdb myprog core
where myprog is the debug binary the core belongs to. You'll get a prompt. Type there
Code:
bt<ENTER>
to get a backtrace (the function calling stack) at the time when the core was generated.

Get out of gdb with
Code:
q<ENTER>
Back to top
View user's profile Send private message
mickywicky
Tux's lil' helper
Tux's lil' helper


Joined: 05 Nov 2002
Posts: 86
Location: London, UK

PostPosted: Wed Apr 30, 2003 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum