@@ -360,7 +360,7 @@ type of a task is a template argument. For simplicity's sake, we hard-coded the
360
360
``int `` type in this example.
361
361
362
362
Stack traces of in-flight coroutines
363
- -----------------------------------
363
+ ------------------------------------
364
364
365
365
Let's assume you have the following program and set a breakpoint inside the
366
366
``write_output `` function. There are multiple call paths through which this
@@ -466,7 +466,7 @@ One such solution is to store the list of in-flight coroutines in a collection:
466
466
};
467
467
468
468
With this in place, it is possible to inspect ``inflight_coroutines `` from the
469
- debugger, and rely on LLDB's pretty-printer for ``std::coroutine_handle``s to
469
+ debugger, and rely on LLDB's ``std::coroutine_handle `` pretty-printer to
470
470
inspect the coroutines.
471
471
472
472
This technique will track *all * coroutines, also the ones which are currently
@@ -542,7 +542,7 @@ hence might have to set breakpoints in the ramp function and its ``.noalloc``
542
542
variant.
543
543
544
544
Artificial ``__promise `` and ``__coro_frame `` variables
545
- ---------------------------------------------------
545
+ -------------------------------------------------------
546
546
547
547
Inside all coroutine functions, clang / LLVM synthesize a ``__promise `` and
548
548
``__coro_frame `` variable. These variables are used to store the coroutine's
@@ -632,7 +632,7 @@ the resume function, devirtualization would hence fail for all coroutines that
632
632
have reached their final suspension point.
633
633
634
634
Interpreting the coroutine frame in optimized builds
635
- ---------------------------------------------------
635
+ ----------------------------------------------------
636
636
637
637
The ``__coro_frame `` variable usually refers to the coroutine frame of an
638
638
*in-flight * coroutine. This means, the coroutine is currently executing.
0 commit comments