当前位置: 首页 > news >正文

GDB最常用的命令

GDB 最常用的命令

b main - Puts a breakpoint at the beginning of the program
b - Puts a breakpoint at the current line
b N - Puts a breakpoint at line N
b +N - Puts a breakpoint N lines down from the current line
b fn - Puts a breakpoint at the beginning of function "fn"
d N - Deletes breakpoint number N
info break - list breakpoints
r - Runs the program until a breakpoint or error
c - Continues running the program until the next breakpoint or error
f - Runs until the current function is finished
s - Runs the next line of the program
s N - Runs the next N lines of the program
n - Like s, but it does not step into functions
u N - Runs until you get N lines in front of the current line
p var - Prints the current value of the variable "var"
bt - Prints a stack trace
u - Goes up a level in the stack
d - Goes down a level in the stack
q - Quits gdb

相关文章:

  • Ubuntu20.04+vscode快速调试ROS通用程序
  • ROS-Tutorials:rviz之Markers: Sending Basic Shapes (C++,附vscode调试说明)
  • Qt Creator 的下载与安装
  • Ubuntu20.04突然丢失网络时恢复的办法
  • Linux设置访问权限
  • ROS noetic view_frames TypeError: cannot use a string pattern on a bytes-like object
  • ROS noetic [turtle1_tf_broadcaster-4] process has died
  • Ubuntu下使用unzip或p7zip解压带密码的zip文件
  • libcurl: (51) SSL: no alternative certificate subject name
  • SSL和SSH和OpenSSH,OpenSSL有什么区别
  • Ubuntu18.04网络连接图标上显示问号
  • Ubuntu调用USB摄像头
  • ERROR: libcudnn_adv_infer.so.8 is not a symbolic link
  • ROS error: Could not find the GUI, install the ‘joint_state_publisher_gui‘ package
  • ROS error: cannot launch node of type [arbotix_python/arbotix_driver]: arbotix_python
  • [rust! #004] [译] Rust 的内置 Traits, 使用场景, 方式, 和原因
  • 【跃迁之路】【585天】程序员高效学习方法论探索系列(实验阶段342-2018.09.13)...
  • Android路由框架AnnoRouter:使用Java接口来定义路由跳转
  • Java Agent 学习笔记
  • JAVA_NIO系列——Channel和Buffer详解
  • Java多线程(4):使用线程池执行定时任务
  • Linux各目录及每个目录的详细介绍
  • MYSQL 的 IF 函数
  • Mysql优化
  • PHP面试之三:MySQL数据库
  • python 装饰器(一)
  • Shell编程
  • SpringBoot几种定时任务的实现方式
  • Storybook 5.0正式发布:有史以来变化最大的版本\n
  • uni-app项目数字滚动
  • 高性能JavaScript阅读简记(三)
  • 京东美团研发面经
  • 漫谈开发设计中的一些“原则”及“设计哲学”
  • 前端_面试
  • 深度学习中的信息论知识详解
  • 微信小程序上拉加载:onReachBottom详解+设置触发距离
  • 用element的upload组件实现多图片上传和压缩
  • 原生Ajax
  • Mac 上flink的安装与启动
  • ​软考-高级-系统架构设计师教程(清华第2版)【第1章-绪论-思维导图】​
  • # 学号 2017-2018-20172309 《程序设计与数据结构》实验三报告
  • #android不同版本废弃api,新api。
  • #Java第九次作业--输入输出流和文件操作
  • #经典论文 异质山坡的物理模型 2 有效导水率
  • #我与Java虚拟机的故事#连载17:我的Java技术水平有了一个本质的提升
  • (1)bark-ml
  • (12)Linux 常见的三种进程状态
  • (cljs/run-at (JSVM. :browser) 搭建刚好可用的开发环境!)
  • (react踩过的坑)Antd Select(设置了labelInValue)在FormItem中initialValue的问题
  • (四)Tiki-taka算法(TTA)求解无人机三维路径规划研究(MATLAB)
  • .【机器学习】隐马尔可夫模型(Hidden Markov Model,HMM)
  • .NET 4 并行(多核)“.NET研究”编程系列之二 从Task开始
  • @kafkalistener消费不到消息_消息队列对战之RabbitMq 大战 kafka
  • [Android]常见的数据传递方式
  • [ARM]ldr 和 adr 伪指令的区别