当前位置:网站首页>gdb+vscode进行调试6——gdb调试多线程命令札记
gdb+vscode进行调试6——gdb调试多线程命令札记
2022-07-17 00:12:00 【bisheng95】
1.查看线程Id
ps aux | grep HelloWorld
2. 查看6666号进程的线程ID
pstree -p 6666
3.gdb调试正在运行的进程
gdb attach 6666
4.gdb调试可执行程序
gdb HelloWorld
5.gdb常用指令
b 10 #在第10行设置断点
info b #查看所有断点设置
info threads #查看所有线程
threads 3 #切换到3号线程
r #开始执行
n #next 下一步
s #step 下一步,如果有函数调用则进入被调函数中
p i #查看变量i的值
set var i = 6 #设置i的值为6
watch i #观察变量i,一旦i发生变化就会停止下来
set non-stop on #执行到断点处的线程停止,其他线程照常执行
边栏推荐
- One vs One Mitigation of Intersectional Bias
- Characteristics and application points of electrolytic capacitor
- Foo bar 什么鬼?
- Remote sensing submission process
- 【pycharm】Cannot find reference ‘XXX‘ in ‘__ init__. Py 'solution
- VIM profile
- 不会的查一查
- MATLAB :Warning: the font “Times” is not available
- Owl Eyes: Spotting UI Display Issues via Visual Understanding
- Hands on deep learning -- from full connection layer to convolution layer
猜你喜欢

01 design of intelligent warehouse management system based on RFID

02基于ZigBee的智能家居系统设计

Fairness in Semi-supervised Learning: Unlabeled Data Help to Reduce Discrimination

Mxnet network model (V) conditional Gan neural network

HRNet

ROC 曲线讲解 (Receiver Operarating Curve)
![[literature reading] small footprint keyword spotting with multi scale temporary revolution](/img/18/ffa23bee826d78c388fde2f5d49282.png)
[literature reading] small footprint keyword spotting with multi scale temporary revolution

SAE j1708/j1587 protocol details

二階邊緣檢測 - Laplacian of Guassian 高斯拉普拉斯算子

SAE J1708/J1587 协议详解
随机推荐
05 design of street lamp control fault detection system based on ZigBee
04基于ZigBee的室内无线定位系统设计
switch详解
二階邊緣檢測 - Laplacian of Guassian 高斯拉普拉斯算子
Handling Conditional Discrimination(可解释歧视和确切的歧视)
JS practical tips
浏览器无法打开Tensorboard
搭建Hue环境
动手学深度学习---从全连接层到卷积层篇
Detailed explanation of errno
[go language] detailed explanation of dynamic library and static library
Integrated learning
Fair Multiple Decision Making Through Soft Interventions
06基于STM32的智能电子药盒设计
Mxnet network model (V) conditional Gan neural network
Using XOR to exchange two variables is inefficient
Hands on deep learning -- linear neural network
ViLT Vision-and-Language Transformer Without Convolution or Region Supervision
Fairness in Deep Learning: A Computational Perspective
[literature reading] tenet: a framework for modeling tensor dataflow based on relational centric notation