码迷,mamicode.com
首页 > 数据库 > 详细

GDB简单使用

时间:2019-03-11 13:18:45      阅读:208      评论:0      收藏:0      [点我收藏+]

标签:exec   cti   tps   blog   源代码   http   main   html   代码   

GDB简单使用

更多请参考:https://www.cnblogs.com/HKUI/p/8955443.html

https://www.cnblogs.com/skyofbitbit/p/3672848.html

gdb exec

或者在gdb中装载:file exec

run 开始执行

run args 给main函数传递的值 run arg1 arg2

list 显示源代码

list function_name

list n

break 打断点

break line 当前文件在某一行打一个断点

step s

next

逐条执行

bt 打印堆栈

print 打印变量

GDB简单使用

标签:exec   cti   tps   blog   源代码   http   main   html   代码   

原文地址:https://www.cnblogs.com/stdpain/p/10509915.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!