Gdb: Difference between revisions
From Hackepedia
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 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 09: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