Skip to content

Commit 901a031

Browse files
committed
small pretty printer improvements
1 parent f1ab802 commit 901a031

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

clang/docs/DebuggingCoroutines.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,8 +1096,8 @@ To load this by default, add this command to your ``~/.gdbinit`` file.
10961096
return None
10971097
name = self.destroy_func.function.name
10981098
# Strip the "clone" suffix if it exists.
1099-
if " [clone " in name:
1100-
name = name[:name.index(" [clone ")]
1099+
if "() [clone " in name:
1100+
name = name[:name.index("() [clone ")]
11011101
return name
11021102
11031103
def to_string(self):
@@ -1215,10 +1215,10 @@ To load this by default, add this command to your ``~/.gdbinit`` file.
12151215
self.coro_frame = coro_frame
12161216
12171217
def function(self):
1218-
func_name = self.coro_frame.destroy_func.function.name
1218+
func_name = self.coro_frame.get_function_name()
12191219
if func_name is not None:
1220-
return func_name
1221-
return "coroutine (coro_frame=" + str(self.coro_frame.frame_ptr_raw) + ")"
1220+
return "[async] " + func_name
1221+
return "[async] coroutine (coro_frame=" + str(self.coro_frame.frame_ptr_raw) + ")"
12221222
12231223
def address(self):
12241224
return None

0 commit comments

Comments
 (0)