search
HomeOperation and MaintenanceWindows Operation and MaintenanceHow 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


  1. View the stuck process

ps -ef|grep CobotStudio

How to use gdb to view stack information of hung programs during operation and maintenance2. Use gdb to open the process

sudo gdb ./CobotStudio

How to use gdb to view stack information of hung programs during operation and maintenance3. Use attach to attach

attach 22108(这里22108为进程子PID)

How to use gdb to view stack information of hung programs during operation and maintenance4. Use bt to view stack information

bt(直接使用bt查看堆栈信息)

How to use gdb to view stack information of hung programs during operation and maintenance


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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

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

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function