


How to use gdb to view stack information of hung programs during operation and maintenance
The content of this article is about how to use gdb to view the stack information of the hung program during the operation and maintenance process. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you. .
Use gdb to view the stack information of the hung program
View the stuck process
ps -ef|grep CobotStudio
2. Use gdb to open the process
sudo gdb ./CobotStudio
3. Use attach to attach
attach 22108(这里22108为进程子PID)
4. Use bt to view stack information
bt(直接使用bt查看堆栈信息)
Enter gdb and use common commands in gdb
- ##c: Continue
- p_: Print
- list: List
- attach: Attach
- b code snippet: Set breakpoint
- i b: View the set breakpoint
- bt: View program crash stack information
- -up: Previous method (Press Enter to view the next page)
- down: Next method (Press Enter to view the next page
The above is the detailed content of How to use gdb to view stack information of hung programs during operation and maintenance. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

WebStorm Mac version
Useful JavaScript development tools

Dreamweaver CS6
Visual web development tools

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function
