博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
gdb 调试常用命令
阅读量:4224 次
发布时间:2019-05-26

本文共 356 字,大约阅读时间需要 1 分钟。

# breakpoint

(gdb) b filename:line
(gdb) b namespace::classname::function
(gdb) watch val

# function call stack

(gdb) bt

# step into

(gdb) s

# step over

(gdb) n

# step out

(gdb) finish

# continue running

(gdb) c

# run

(gdb) r

# display

(gdb) display valname

#print

(gdb) p valname

# attach to a process

(gdb) attach pid
# detach
(gdb) detach

# quit

(gdb) q

转载地址:http://qcuqi.baihongyu.com/

你可能感兴趣的文章
终于有人把P2P、P2C、O2O、B2C、B2B、C2C 的区别讲透了!
查看>>
[ReactNative]多flavor怎么运行
查看>>
[Reactnative]在已有的android项目中添加reactnative后,运行需要注意的问题
查看>>
阿里服务器配置
查看>>
[android]多flavors用gradlew时注意的地方
查看>>
[android]多flavors用gradlew时注意的地方
查看>>
[android][react-native]多flavour怎么打bundle
查看>>
[mysql]ubuntu上安装mysql
查看>>
[mysql]增加用户,数据库,以及 把两者link起来
查看>>
[mysql]数据库访问全线管理
查看>>
[mysql]用户管理
查看>>
[mysql]ubuntu用apt-get install后,python安装mysql-python时报mysql_config: not found
查看>>
[django]django+nginx+gunicorn+mysql
查看>>
安装和使用virtualenv
查看>>
nginx
查看>>
[git]常用
查看>>
[gradlew]常用命令
查看>>
cocoaPods
查看>>
[linux]常用命令
查看>>
[reactnative]gradlew缺少运行权限引起的问题
查看>>