apache / apache/brpc

core文件中查看切换出去的bthread栈信息

Open
#927 6 comments 5 reactions 0 assignees View on GitHub
feature
Dominant language
C++
Stars
17.6k
Forks
4.1k
Avg merge
2d 12h
Merged PRs (30d)
69

Description

**Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
切换出去的bthread,在core文件中是看不到的,但是有时候会对检查问题有帮助,需要有手段去查看

**Describe the solution you'd like (描述你期望的解决方法)**
能够查看core文件中切换出去的bthread信息

**Describe alternatives you've considered (描述你想到的折衷方案)**
修改core文件,展示bthread栈信息

**Additional context/screenshots (更多上下文/截图)**
我目前实现了一个linux x86_64 gcc平台下的小程序,并附有一个gdb脚本,可以打印切换出去的bthread寄存器信息,根据寄存器信息修改core文件,实现可以用gdb直接查看core文件,通过`info thread`看到所有bthread。
这个实现非常简陋,也不支持其它平台,因为本人手上没有其他平台的测试环境。

Contributor guide

Open the contributing guide

Research direction

Begin with the attached Linux x86_64 GCC sample and GDB script, and review how the switched-out bthread register information is used to modify a core file. Done should provide a core file that exposes switched-out bthreads through GDB, including their information in `info thread`; support beyond the demonstrated platform needs separate assessment.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, linux
Domain
devtools, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.