Author: Chuanqi Xu
Date: 2022-08-22T22:15:47+08:00
New Revision: 210a4197b4d73388030c63aea6dc51dde3e9166e

URL: 
https://github.com/llvm/llvm-project/commit/210a4197b4d73388030c63aea6dc51dde3e9166e
DIFF: 
https://github.com/llvm/llvm-project/commit/210a4197b4d73388030c63aea6dc51dde3e9166e.diff

LOG: [docs] Adjust the example command line in DebuggingCoroutines.rst

The original commandline example was not correct in some environments.
Adjust the example to avoid any misunderstanding.

Added: 
    

Modified: 
    clang/docs/DebuggingCoroutines.rst

Removed: 
    


################################################################################
diff  --git a/clang/docs/DebuggingCoroutines.rst 
b/clang/docs/DebuggingCoroutines.rst
index e6942a4be6dbf..828822f52bd61 100644
--- a/clang/docs/DebuggingCoroutines.rst
+++ b/clang/docs/DebuggingCoroutines.rst
@@ -147,8 +147,10 @@ printing the details of the coroutine frame from an 
address is also possible:
   (gdb) # Get the linkage name for the coroutine
   (gdb) x 0x4019e0
   0x4019e0 <_ZL9coro_taski>:  0xe5894855
+  (gdb) # Turn off the demangler temporarily to avoid the debugger 
misunderstanding the name.
+  (gdb) set demangle-style none
   (gdb) # The coroutine frame type is 'linkage_name.coro_frame_ty'
-  (gdb) print  (_ZL9coro_taski.coro_frame_ty)*(0x418eb0)
+  (gdb) print  ('_ZL9coro_taski.coro_frame_ty')*(0x418eb0)
   $2 = {__resume_fn = 0x4019e0 <coro_task(int)>, __destroy_fn = 0x402000 
<coro_task(int)>, __promise = {...}, ...}
 
 The above is possible because:


        
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to