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)
2001-8-27 -05:00

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

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