Gdb

From Hackepedia
Revision as of 09:20, 30 March 2008 by Franks (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

You have a corefile, like xine.core. gdb $program $corefile:

gdb /usr/X11R6/bin/xine ./xine.core


An example in gdb to find out where your application crashed (the CPU instruction in memory):

(gdb) where
#0 0x0000ealf
(gdb) disass

and look for 0x0000ealf