First, use "b <line_number>" to setup a break point, after running to that point (using "run"), use "s" or "n". To get line number, use "list". You might need to take a good look at gdb's document :-)

dennis2 (Dennis)
http://www.gnu.org/manual/gdb-4.17/gdb.html
(#181192@0)
2001-8-27 -05:00

回到话题: How to trace into function step by step using gdb?How to set line number ?

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT技术讨论

URL:   
http://www.rolia.net/zh/post.php?f=0&p=181192