public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "iains at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/99215] coroutines: debugging with gdb Date: Tue, 23 Feb 2021 14:21:14 +0000 [thread overview] Message-ID: <bug-99215-4-C2HsRcVslw@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-99215-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99215 Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 Last reconfirmed| |2021-02-23 --- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- (In reply to Nils Gladitz from comment #0) > I am itching to get into C++20 coroutines (and very grateful for their > implementation) but am somewhat put off by the apparent inability to inspect > them from within a debugger currently. > > While looking for existing related GCC specific issues, discussions or > commits (none of which I found) the following paper [Debugging C++ > coroutines] did come up: > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p2073r0.pdf > This seems to at least confirm the current state that I was seeing. Indeed you are correct (I was present at the meeting that the paper was reviewed). At that time (a year ago) there was no specific support in either GCC/GDB or clang/LLDB. I guess the debugging I do is mainly on code-gen, so rarely debugging the actual coroutines, more the compiler. > I can not tell if support for this is missing in GCC or GDB or both but I > figured I'd try finding out here first. > Presumably (hopefully) someone here is at least aware of the issue and might > be able to point out if this is maybe already done (and I am just doing it > wrong or using the wrong GCC version), in the works or on some agenda > somewhere. I have some ideas about how the debug experience might be improved (at least w.r.t examining frame content) - but, as with everything else, queued in the long TODO. Can you identify specific key blockers to progress? (I think the paper cited contained a number of desiderata, but it would be good to start from the most important requirements). I'd be interested in some idea of "I tried to fix this, but failed because I couldn't do xxxx". I would expect source location-based breakpoints etc. to be functional (modulo possible bugs in attaching locations to expressions).
next prev parent reply other threads:[~2021-02-23 14:21 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-23 7:29 [Bug c++/99215] New: " nilsgladitz at gmail dot com 2021-02-23 14:21 ` iains at gcc dot gnu.org [this message] 2021-02-23 14:59 ` [Bug c++/99215] " nilsgladitz at gmail dot com 2021-02-23 15:26 ` iains at gcc dot gnu.org 2021-02-23 15:53 ` nilsgladitz at gmail dot com 2021-02-24 15:03 ` nilsgladitz at gmail dot com 2021-02-24 15:23 ` iains at gcc dot gnu.org 2021-03-22 12:13 ` nilsgladitz at gmail dot com 2021-03-22 12:23 ` iains at gcc dot gnu.org 2021-03-22 12:30 ` iains at gcc dot gnu.org 2021-07-09 18:14 ` cvs-commit at gcc dot gnu.org 2021-07-20 6:55 ` cvs-commit at gcc dot gnu.org 2021-09-03 20:25 ` iains at gcc dot gnu.org 2021-10-03 19:28 ` cvs-commit at gcc dot gnu.org 2022-02-15 2:12 ` jarrod.smith at ardentblue dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-99215-4-C2HsRcVslw@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).