Difference between revisions of "Gdb"
From Hackepedia
Jump to navigationJump to searchLine 2: | Line 2: | ||
gdb [[variables|/usr/X11R6/bin/xine]] [[variables|./xine.core]] | gdb [[variables|/usr/X11R6/bin/xine]] [[variables|./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 |
Latest revision as of 10:20, 30 March 2008
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