Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add lldb bthread stack debug script #2514

Merged
merged 2 commits into from
Jan 23, 2024

Conversation

ehds
Copy link
Contributor

@ehds ehds commented Jan 19, 2024

What problem does this PR solve?

Issue Number:

Problem Summary:
新增支持 lldb 的 bthread 堆栈调试工具,使用方法和命令和 gdb 脚本保持一致。

Get Started:

1. lldb attach <pid>
2. command script import lldb_bthread_stack.py
3. bthread_begin
4. bthread_list
5. bthread_frame 0
6. bt / up / down
7. bthread_end
image

What is changed and the side effects?

Changed:

Side effects:

  • Performance effects(性能影响):

  • Breaking backward compatibility(向后兼容性):


Check List:

  • Please make sure your changes are compilable(请确保你的更改可以通过编译).
  • When providing us with a new feature, it is best to add related tests(如果你向我们增加一个新的功能, 请添加相关测试).
  • Please follow Contributor Covenant Code of Conduct.(请遵循贡献者准则).

@ehds ehds force-pushed the add-lldb-bthread-stack-script branch 2 times, most recently from 3ecf93f to ddeb0aa Compare January 19, 2024 07:44
@ehds ehds force-pushed the add-lldb-bthread-stack-script branch from ddeb0aa to 4e27d5e Compare January 19, 2024 09:11
@ehds ehds changed the title add lldb bthread stack helper script add lldb bthread stack debug script Jan 19, 2024
@ehds ehds force-pushed the add-lldb-bthread-stack-script branch 2 times, most recently from b699b6e to 3046b88 Compare January 22, 2024 07:18
@ehds ehds force-pushed the add-lldb-bthread-stack-script branch from 3046b88 to 07b81b2 Compare January 22, 2024 08:00
@wwbmmm wwbmmm merged commit b67aa06 into apache:master Jan 23, 2024
18 checks passed
jiangdongzi pushed a commit to jiangdongzi/brpc that referenced this pull request Jan 31, 2024
* add lldb bthread stack helper script

* fix value as unsigned
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants