当前位置:网站首页>Use gdb to debug multi-process programs, debug parent and child processes at the same time
Use gdb to debug multi-process programs, debug parent and child processes at the same time
2022-08-09 11:15:00 【XV_】
Reference:
[1] GDBdebugging multi-process programs
[2] Debugging programswith multiple processes
According to these two reference links, it is completely possible to use gdb to debug the parent process and the child process at the same time.
Next, I will explain the pits that may be encountered
- There is a bug in gdb8.1 version. After setting
set detach-fork-on off
, after executingfork
, switch to subprocess, and encountercannotAdd breakpoints
and other issues - gdb9.2 version also has bugs. When the process is switched, problems such as
fork.c file missing
will be encountered, but it does not affect, use then
command multiple timesJust skip it.
Therefore, at present, the author uses Ubuntu 20.10, gdb 10.2 to have no bugs, and can normally debug multiple processes at the same time.
边栏推荐
猜你喜欢
美的数字化平台 iBUILDING 背后的技术选型
OpenSSF's open source software risk assessment tool: Scorecards
PTA习题 分类统计字符个数(C)
备战金三银四:如何成功拿到阿里offer(经历+面试题+如何准备)
UNIX Philosophy
x86异常处理与中断机制(3)中断处理过程
Number theory knowledge
【Subpixel Dense Refinement Network for Skeletonization】CVPR2020论文解读
API接口是什么?API接口常见的安全问题与安全措施有哪些?
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization Paper Reading
随机推荐
综述文章的写法
日期工具类
ACM01背包问题
Qt获取EXE可执行文件的上一级目录下的文件
x86异常处理与中断机制(3)中断处理过程
grpc系列-初探grpc 路由注册和转发实现
全网最简单解决OneNote中英字体不统一
UNIX Philosophy
vite的原理,手写vite
PoseNet: A Convolutional Network for Real-Time 6-DOF Camera Relocalization Paper Reading
1003 Emergency (25分)
PTA 求一批整数中出现最多的个位数字
最长回文子串
ACM最长不下降子序列问题
Qt读写.ini配置文件
The complete grammar of CSDN's markdown editor
MySQL查询性能优化七种武器之索引潜水
1007 Maximum Subsequence Sum (25分)
Multi-merchant mall system function disassembly 26 lectures - platform-side distribution settings
从位图到布隆过滤器