This is an archive of the discontinued LLVM Phabricator instance.

[docs] Add examples for printing asynchronous stack for coroutines
ClosedPublic

Authored by ChuanqiXu on Aug 23 2022, 1:42 AM.

Details

Summary

Previously when I wrote this document, I felt the completed scripts was lengthy, redundant and not easy to read. So I didn't add complete examples in the previous commit.

However, in the recent discussion with @avogelsgesang, I found people may not know how to use debugging scripts to improve their debugging efficiency. So now, I feel like it is helpful to put the examples even if they are a little bit long.

I understand it may be better to provide debugging scripts for lldb too since we are in LLVM community : ) But I never used lldb before... So I put the examples for gdb only. I guess this won't be a blocking issue?

Test Plan: make docs-clang-html

Diff Detail

Event Timeline

ChuanqiXu created this revision.Aug 23 2022, 1:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2022, 1:42 AM
ChuanqiXu requested review of this revision.Aug 23 2022, 1:42 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2022, 1:42 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ChuanqiXu updated this revision to Diff 454744.Aug 23 2022, 1:45 AM
ChuanqiXu edited the summary of this revision. (Show Details)

Fix a typo.

ChuanqiXu updated this revision to Diff 454745.Aug 23 2022, 1:51 AM

Fix a typo.

clang/docs/DebuggingCoroutines.rst
619

Here we can't use .. code-block:: console since it will meet some parsing problems.

avogelsgesang accepted this revision.Aug 23 2022, 2:28 AM

LGTM, thanks!

I guess I will update this documentation with LLDB examples, as soon as https://reviews.llvm.org/D132415 and a couple of follow-up improvements landed.
As soon as that happened, we will also have LLDB covered here. I see no problem with covering mostly gdb for the time being, given that lldb debugging is currently subject to change, anyway

This revision is now accepted and ready to land.Aug 23 2022, 2:28 AM

LGTM, thanks!

I guess I will update this documentation with LLDB examples, as soon as https://reviews.llvm.org/D132415 and a couple of follow-up improvements landed.
As soon as that happened, we will also have LLDB covered here. I see no problem with covering mostly gdb for the time being, given that lldb debugging is currently subject to change, anyway

Got it. I feel better to add LLDB support too : )

This revision was landed with ongoing or failed builds.Aug 23 2022, 2:37 AM
This revision was automatically updated to reflect the committed changes.