From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 3A4023959E55 for ; Wed, 16 Nov 2022 12:30:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3A4023959E55 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1668601803; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=BqbK0iOq/5vrKGcEDxSHgNB9+kyv/bkSZWAs3rpfLLM=; b=Fe8GkyaOxF+K6ZLiLP9WWLBdVwrYrdzczXxns0UCmB0zDVlWNo50x6JXcyfNEd+++sa7VX nGDDkq5HuaQkpC1T3LfS1Z/6bMLOIS7oEGcKTWPFcC+kqwmZvEmDcwlyuRYi0czU8ZfdGi 41d32RrnSkFqE0voeYaBVNT/9vHgLfs= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-655-QmADuCJ9P8CyO36MrVmCMQ-1; Wed, 16 Nov 2022 07:30:02 -0500 X-MC-Unique: QmADuCJ9P8CyO36MrVmCMQ-1 Received: by mail-ej1-f69.google.com with SMTP id sb4-20020a1709076d8400b007ae596eac08so9960561ejc.22 for ; Wed, 16 Nov 2022 04:30:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BqbK0iOq/5vrKGcEDxSHgNB9+kyv/bkSZWAs3rpfLLM=; b=ju5w3UYGSyvC3/phccJQWjJcThq17HpR7f1F/wf5Jz7iqg2zdlqxh1EOREf0ZgVIb+ 9lXRlVrcTBYPcAaWRlphkk4SYx6V4g6ImeG5zHk7Qr6qbor/LBrt6kok522XTLaX2l+j 5rNMZKcFkHWZntqzsXcV0vByH8I7Q/jVzidGVIjC3xlGEWtXlkN75OryqC0gGYSkS/K9 4rNYJFRS9Sopz8uTeZqJyIJ0z1Tw+2OuhiwYcXcF5VRnEAw9kvqttxJKxwcapqPir30Y lAKu3AnyxRx940lSTNA6Ms2Kj74kTo6jFqkAYEbJYGdw4mTll9d4nkDmo9QPVK+z928I lQDg== X-Gm-Message-State: ANoB5pkEK0IQrvYSHgcyp4MF5ms0hw1SXHN75rG2QWK4wD/O+j0Eo94L jB3ClLsweLS5wCvwnvsHV8IXN2qcWcrslCtyNxZiP1dc5dDk/wEfcEQpPa++1vMtF4SssJmoE/V T+GfRs1o+Rdb+2gDaOBw59fuMi0yiXBE= X-Received: by 2002:a05:6402:5511:b0:468:dc9:ec08 with SMTP id fi17-20020a056402551100b004680dc9ec08mr9306518edb.17.1668601800903; Wed, 16 Nov 2022 04:30:00 -0800 (PST) X-Google-Smtp-Source: AA0mqf5tQkFE43axYRwDVpWCxPG5kghG/+CJhfRSEmQO7v1EtnJp6ezxkS/AAlmCIPvKlAEOg4f1wgXFhD0PfuKO8yk= X-Received: by 2002:a05:6402:5511:b0:468:dc9:ec08 with SMTP id fi17-20020a056402551100b004680dc9ec08mr9306500edb.17.1668601800523; Wed, 16 Nov 2022 04:30:00 -0800 (PST) MIME-Version: 1.0 References: <4d1dc3d4-e945-d283-964a-4dab3b3cb33e@gmail.com> <6056a668-3b5a-04b0-a0cc-98ad0c6064b2@gmail.com> In-Reply-To: From: Jonathan Wakely Date: Wed, 16 Nov 2022 12:29:49 +0000 Message-ID: Subject: Re: [PATCH] Fix gdb FilteringTypePrinter (again) To: =?UTF-8?Q?Fran=C3=A7ois_Dumont?= Cc: "libstdc++@gcc.gnu.org" , gcc-patches X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: multipart/mixed; boundary="00000000000097b86a05ed95a1c6" X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: --00000000000097b86a05ed95a1c6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Wed, 16 Nov 2022 at 11:54, Jonathan Wakely wrote: > > On Wed, 16 Nov 2022 at 11:35, Jonathan Wakely wrote: > > > > On Wed, 16 Nov 2022 at 06:04, Fran=C3=A7ois Dumont wrote: > > > > > > On 15/11/22 17:17, Jonathan Wakely wrote: > > > > On 06/10/22 19:38 +0200, Fran=C3=A7ois Dumont wrote: > > > >> Hi > > > >> > > > >> Looks like the previous patch was not enough. When using it in the > > > >> context of a build without dual abi and versioned namespace I star= ted > > > >> having failures again. I guess I hadn't rebuild everything properl= y. > > > >> > > > >> This time I think the problem was in those lines: > > > >> > > > >> if self.type_obj =3D=3D type_obj: > > > >> return strip_inline_namespaces(self.name) > > > >> > > > >> I've added a call to gdb.types.get_basic_type so that we do not co= mpare > > > >> a type with its typedef. > > > >> > > > >> Thanks for the pointer to the doc ! > > > >> > > > >> Doing so I eventually use your code Jonathan to make FilteringType= Filter > > > >> more specific to a given instantiation. > > > >> > > > >> libstdc++: Fix gdb FilteringTypePrinter > > > >> > > > >> Once we found a matching FilteringTypePrinter instance we look= for > > > >> the associated > > > >> typedef and check that the returned Python Type is equal to th= e > > > >> Type to recognize. > > > >> But gdb Python Type includes properties to distinguish a typed= ef > > > >> from the actual > > > >> type. So use gdb.types.get_basic_type to check if we are indee= d on > > > >> the same type. > > > >> > > > >> Additionnaly enhance FilteringTypePrinter matching mecanism by > > > >> introducing targ1 that, > > > >> if not None, will be used as the 1st template parameter. > > > >> > > > >> libstdc++-v3/ChangeLog: > > > >> > > > >> * python/libstdcxx/v6/printers.py (FilteringTypePrinte= r): > > > >> Rename 'match' field > > > >> 'template'. Add self.targ1 to specify the first templa= te > > > >> parameter of the instantiation > > > >> to match. > > > >> (add_one_type_printer): Add targ1 optional parameter, > > > >> default to None. > > > >> Use gdb.types.get_basic_type to compare the type to > > > >> recognize and the type > > > >> returned from the typedef lookup. > > > >> (register_type_printers): Adapt calls to > > > >> add_one_type_printers. > > > >> > > > >> Tested under Linux x86_64 normal, version namespace with or withou= t dual > > > >> abi. > > > >> > > > >> Fran=C3=A7ois > > > >> > > > >> diff --git a/libstdc++-v3/python/libstdcxx/v6/printers.py > > > >> b/libstdc++-v3/python/libstdcxx/v6/printers.py > > > >> index 0fa7805183e..52339b247d8 100644 > > > >> --- a/libstdc++-v3/python/libstdcxx/v6/printers.py > > > >> +++ b/libstdc++-v3/python/libstdcxx/v6/printers.py > > > >> @@ -2040,62 +2040,72 @@ def add_one_template_type_printer(obj, nam= e, > > > >> defargs): > > > >> > > > >> class FilteringTypePrinter(object): > > > >> r""" > > > >> - A type printer that uses typedef names for common template > > > >> specializations. > > > >> + A type printer that uses typedef names for common template > > > >> instantiations. > > > >> > > > >> Args: > > > >> - match (str): The class template to recognize. > > > >> + template (str): The class template to recognize. > > > >> name (str): The typedef-name that will be used instead. > > > >> + targ1 (str): The first template argument. > > > >> + If arg1 is provided (not None), only template > > > >> instantiations with this type > > > >> + as the first template argument, e.g. if > > > >> template=3D'basic_string > > >> > > > >> - Checks if a specialization of the class template 'match' is t= he > > > >> same type > > > >> + Checks if an instantiation of the class template 'template' i= s > > > >> the same type > > > >> as the typedef 'name', and prints it as 'name' instead. > > > >> > > > >> - e.g. if an instantiation of std::basic_istream is the s= ame > > > >> type as > > > >> + e.g. for template=3D'basic_istream', name=3D'istream', if any > > > >> instantiation of > > > >> + std::basic_istream is the same type as std::istream the= n > > > >> print it as > > > >> + std::istream. > > > >> + > > > >> + e.g. for template=3D'basic_istream', name=3D'istream', targ1= =3D'char', > > > >> if any > > > >> + instantiation of std::basic_istream is the same type= as > > > >> std::istream then print it as std::istream. > > > >> """ > > > > > > > > These are template specializations, not instantiations. Please undo > > > > the changes to the comments, because the comments are 100% correct > > > > now, and would become wrong with this patch. > > > > > > > > template struct foo { }; > > > > using F =3D foo; // #1 > > > > template struct foo { }; // #2 > > > > template<> struct foo { }; // #3 > > > > > > > > #1 is a *specialization* of the class template foo. It is > > > > *instantiated* when you construct one or depend on its size, or its > > > > members. > > > > #2 is a *partial specialization* and #3 is an explicit specializati= on. > > > > But #1 is a speclialization, not an instantiation. > > > > > > > > Instantiation is a process that happens during compilation. A > > > > specialization is a type (or function, or variable) generated from = a > > > > template by substituting arguments for the template parameters. The > > > > python type printer matches specializations. > > > > > > Lesson learned, thanks. > > > > > > Maybe comment on line 169 is wrong then. I think there is a clue in t= he > > > function name 'is_specialization_of' :-) > > > > Good point! Thanks, I'll fix it. > > > > > > > > > > > > >> > > > >> - def __init__(self, match, name): > > > >> - self.match =3D match > > > >> + def __init__(self, template, name, targ1): > > > > > > > > Is there a reason to require targ1 here, instead of making it > > > > optional, by using =3DNone as the default? > > > > > > In your original, and I know untested, proposal it was not working. > > > > > > The function add_one_type_printer was missing to pass its targ1 > > > parameter to the FilteringTypePrinter ctor but thanks to the default > > > value it was un-noticed by the interpreter. > > > > My untested patch had this, which adds it, doesn't it? > > > > -def add_one_type_printer(obj, match, name): > > - printer =3D FilteringTypePrinter('std::' + match, 'std::' + name) > > +def add_one_type_printer(obj, match, name, targ1 =3D None): > > + printer =3D FilteringTypePrinter('std::' + match, 'std::' + name, = targ1) > > gdb.types.register_type_printer(obj, printer) > > if _versioned_namespace: > > ns =3D 'std::' + _versioned_namespace > > - printer =3D FilteringTypePrinter(ns + match, ns + name) > > + printer =3D FilteringTypePrinter(ns + match, ns + name, targ1) > > gdb.types.register_type_printer(obj, printer) > > > > > > I think FilteringTypePrinter should be usable without specifying None > > explicitly as the argument. Even if we don't actually use it that way > > today, it seems like a better API. If the argument is optional, then > > the idiomatic way to express that is to give it a default, not require > > None to be passed. > > > > I'll add that default argument, but first I need to figure out why I'm > > seeing new failures for libfundts.cc with -D_GLIBCXX_USE_CXX11_ABI=3D0. > > Your patch has introduced this new error: > > > > $12 =3D Python Exception : No type named > > std::experimental::fundamentals_v1::any::_Manager_internal > std::char_traits, std::allocator >>. > > got: $12 =3D Python Exception : No type named > > std::experimental::fundamentals_v1::any::_Manager_internal > std::char_traits, std::allocator >>. > > FAIL: libstdc++-prettyprinters/libfundts.cc print as > > The problem happens here in StdExpAnyPrinter: > > mgrname =3D m.group(1) > # FIXME need to expand 'std::string' so that gdb.lookup_type = works > if 'std::string' in mgrname: > mgrname =3D re.sub("std::string(?!\w)", > str(gdb.lookup_type('std::string').strip_typedefs()), m.group(1)) > > mgrtype =3D gdb.lookup_type(mgrname) > > After your patch, gdb.lookup_type('std::string').strip_typedefs() is > returning std::__cxx11::basic_string which is not the > correct type for this specialization of the any manager function. It > contains a std::basic_string. And here's the rather disgusting "fix". I'll push to trunk. --00000000000097b86a05ed95a1c6 Content-Type: text/plain; charset="US-ASCII"; name="patch.txt" Content-Disposition: attachment; filename="patch.txt" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lajmdnd20 Y29tbWl0IDA0MjkxYjRhNjc3YjU2OWNhZWNmYzAyMzFlOWRkYWMzMDQxYjFjYjUKQXV0aG9yOiBK b25hdGhhbiBXYWtlbHkgPGp3YWtlbHlAcmVkaGF0LmNvbT4KRGF0ZTogICBXZWQgTm92IDE2IDEy OjIyOjA0IDIwMjIKCiAgICBsaWJzdGRjKys6IEZpeCBzdGQ6OmFueSBwcmV0dHkgcHJpbnRlcgog ICAgCiAgICBUaGUgcmVj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aW5nIG1pZ2h0IHJldHVy biB0aGUgX19jeHgxMSB2ZXJzaW9uLAorICAgICAgICAgICAgICAgICMgYnV0IHRoYXQncyBub3Qg bmVjZXNzYXJpbHkgdGhlIG9uZSB1c2VkIGJ5IHRoZSBzdGQ6OmFueQorICAgICAgICAgICAgICAg ICMgbWFuYWdlciBmdW5jdGlvbiB3ZSdyZSB0cnlpbmcgdG8gZmluZC4KKyAgICAgICAgICAgICAg ICBzdHJpbmdzID0ge3N0cihnZGIubG9va3VwX3R5cGUoJ3N0ZDo6c3RyaW5nJykuc3RyaXBfdHlw ZWRlZnMoKSl9CisgICAgICAgICAgICAgICAgIyBTbyBhbHNvIGNvbnNpZGVyIGFsbCB0aGUgb3Ro ZXIgcG9zc2libGUgc3RkOjpzdHJpbmcgdHlwZXMhCisgICAgICAgICAgICAgICAgcyA9ICdiYXNp Y19zdHJpbmc8Y2hhciwgc3RkOjpjaGFyX3RyYWl0czxjaGFyPiwgc3RkOjphbGxvY2F0b3I8Y2hh cj4gPicKKyAgICAgICAgICAgICAgICBxdWFscyA9IFsnc3RkOjonLCAnc3RkOjpfX2N4eDExOjon LCAnc3RkOjonICsgX3ZlcnNpb25lZF9uYW1lc3BhY2VdCisgICAgICAgICAgICAgICAgc3RyaW5n cyB8PSB7cStzIGZvciBxIGluIHF1YWxzfSAjIHNldCBvZiB1bmlxdWUgc3RyaW5ncworICAgICAg ICAgICAgICAgIG1ncnR5cGVzID0gW10KKyAgICAgICAgICAgICAgICBmb3IgcyBpbiBzdHJpbmdz OgorICAgICAgICAgICAgICAgICAgICB0cnk6CisgICAgICAgICAgICAgICAgICAgICAgICB4ID0g cmUuc3ViKCJzdGQ6OnN0cmluZyg/IVx3KSIsIHMsIG0uZ3JvdXAoMSkpCisgICAgICAgICAgICAg ICAgICAgICAgICAjIFRoZSBmb2xsb3dpbmcgbG9va3VwIG1pZ2h0IHJhaXNlIGdkYi5lcnJvciBp ZiB0aGUKKyAgICAgICAgICAgICAgICAgICAgICAgICMgbWFuYWdlciBmdW5jdGlvbiB3YXMgbmV2 ZXIgaW5zdGFudGlhdGVkIGZvciAncycgaW4gdGhlCisgICAgICAgICAgICAgICAgICAgICAgICAj IHByb2dyYW0sIGJlY2F1c2UgdGhlcmUgd2lsbCBiZSBubyBzdWNoIHR5cGUuCisgICAgICAgICAg ICAgICAgICAgICAgICBtZ3J0eXBlcy5hcHBlbmQoZ2RiLmxvb2t1cF90eXBlKHgpKQorICAgICAg ICAgICAgICAgICAgICBleGNlcHQgZ2RiLmVycm9yOgorICAgICAgICAgICAgICAgICAgICAgICAg cGFzcworICAgICAgICAgICAgICAgIGlmIGxlbihtZ3J0eXBlcykgIT0gMToKKyAgICAgICAgICAg ICAgICAgICAgIyBGSVhNRTogdGhpcyBpcyB1bmxpa2VseSBpbiBwcmFjdGljZSwgYnV0IHBvc3Np YmxlIGZvcgorICAgICAgICAgICAgICAgICAgICAjIHByb2dyYW1zIHRoYXQgdXNlIGJvdGggb2xk IGFuZCBuZXcgc3RyaW5nIHR5cGVzIHdpdGgKKyAgICAgICAgICAgICAgICAgICAgIyBzdGQ6OmFu eSBpbiBhIHNpbmdsZSBwcm9ncmFtLiBDYW4gd2UgZG8gYmV0dGVyPworICAgICAgICAgICAgICAg ICAgICAjIE1heWJlIGZpbmQgdGhlIGFkZHJlc3Mgb2YgZWFjaCB0eXBlJ3MgX1NfbWFuYWdlIGFu ZAorICAgICAgICAgICAgICAgICAgICAjIGNvbXBhcmUgdG8gdGhlIGFkZHJlc3Mgc3RvcmVkIGlu IF9NX21hbmFnZXI/CisgICAgICAgICAgICAgICAgICAgIHJhaXNlIFZhbHVlRXJyb3IoJ0Nhbm5v dCB1bmlxdWVseSBkZXRlcm1pbmUgc3RkOjpzdHJpbmcgdHlwZSB1c2VkIGluIHN0ZDo6YW55JykK KyAgICAgICAgICAgICAgICBtZ3J0eXBlID0gbWdydHlwZXNbMF0KKyAgICAgICAgICAgIGVsc2U6 CisgICAgICAgICAgICAgICAgbWdydHlwZSA9IGdkYi5sb29rdXBfdHlwZShtZ3JuYW1lKQogICAg ICAgICAgICAgc2VsZi5jb250YWluZWRfdHlwZSA9IG1ncnR5cGUudGVtcGxhdGVfYXJndW1lbnQo MCkKICAgICAgICAgICAgIHZhbHB0ciA9IE5vbmUKICAgICAgICAgICAgIGlmICc6Ol9NYW5hZ2Vy X2ludGVybmFsJyBpbiBtZ3JuYW1lOgo= --00000000000097b86a05ed95a1c6--