From 9db71d8b25a56ee316036c53fd941934a95831a3 Mon Sep 17 00:00:00 2001 From: arkady-e1ppa Date: Wed, 5 Jun 2024 00:30:39 +0300 Subject: [PATCH] Make gdb stop spamming "No RTTI symbol" warnings in yt_fiber_printers e7034cabf97d282830954046742a5be9f4f5a3af --- ynd/gdb/14/pretty_printers/yt_fibers_printer.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ynd/gdb/14/pretty_printers/yt_fibers_printer.py b/ynd/gdb/14/pretty_printers/yt_fibers_printer.py index c845bd0..1c9703e 100644 --- a/ynd/gdb/14/pretty_printers/yt_fibers_printer.py +++ b/ynd/gdb/14/pretty_printers/yt_fibers_printer.py @@ -171,10 +171,13 @@ def parse_vector(addresses, fibers): def parse_util_list(addresses, fibers): + down_cast = (str(fibers).find("(NYT::NConcurrency::NDetail::TFiberBase*)") != -1) for line in format_string_multiline(fibers).split('\n'): if line.find('[') == -1: continue address = line.split(' ')[-3].replace(']', '') + if down_cast: + address = obtain_fiber_address(address) addresses.append(address) def get_registered_fiber_addresses():