Thread: Running gdb core dump
hi guys, i'm having troubble figuring out how analyze core dump of code using gdb. according website: http://www.cprogramming.com/debugging/segfaults.html, meerly need type in
$gdb radxfer core
, tell me need know; however, when type in get:
i don't know telling me. ideas appreciated.code:daniel@daniel-ep45-ud3l:~/desktop/cprogramming/project$ gdb radxfer core gnu gdb (ubuntu/linaro 7.3-0ubuntu2) 7.3-2011.08 copyright (c) 2011 free software foundation, inc. license gplv3+: gnu gpl version 3 or later <http://gnu.org/licenses/gpl.html> free software: free change , redistribute it. there no warranty, extent permitted law. type "show copying" , "show warranty" details. gdb configured "x86_64-linux-gnu". bug reporting instructions, please see: <http://bugs.launchpad.net/gdb-linaro/>... reading symbols /home/daniel/desktop/cprogramming/project/radxfer...(no debugging symbols found)...done. /home/daniel/desktop/cprogramming/project/core: no such file or directory. (gdb) ^z [4]+ stopped gdb radxfer core
for starters, no, gdb not "tell need know". tool, not magic wand. have investigating (how depends on problem).
true if, case here, compiled without -g flag (which adds debugging symbols, without gdb pretty useless).
finally, need replace "core" name of core dump file. think default core dumps disabled, run
to enable them. also, here's a gdb tutorial. sound need it.code:ulimit -c unlimited
Forum The Ubuntu Forum Community Ubuntu Specialised Support Development & Programming Programming Talk Running gdb core dump
Ubuntu
Comments
Post a Comment