From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0E18388F05D; Tue, 16 Jun 2020 15:18:24 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0E18388F05D From: "mgaudet at mozilla dot com" To: gdb-prs@sourceware.org Subject: [Bug c++/26122] New: gdb fails to demangle a name Date: Tue, 16 Jun 2020 15:18:24 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: c++ X-Bugzilla-Version: 9.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mgaudet at mozilla dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Jun 2020 15:18:25 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D26122 Bug ID: 26122 Summary: gdb fails to demangle a name Product: gdb Version: 9.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ Assignee: unassigned at sourceware dot org Reporter: mgaudet at mozilla dot com Target Milestone: --- Using a locally compiled GDB 9.2, I'm trying to use `skip -rfunction`, however,according to `set debug skip on`, the regexp is being applied to the mangled name, not the demangled name:=20 ``` (gdb) step=20 skip: checking if function _ZN2JS6HandleINS_11PropertyKeyEEC2IS1_EERKNS_6RootedIT_EENSt9enable_ifIXsr3= stdE16is_convertible_vIS5_S1_EEiE4typeE matches regex .*JS::Handle.*...no. skip: checking if function _ZN2JS6HandleINS_11PropertyKeyEEC2IS1_EERKNS_6RootedIT_EENSt9enable_ifIXsr3= stdE16is_convertible_vIS5_S1_EEiE4typeE matches regex .*JS::Handle.*...no. ``` This appears to be because the name cannot be demangled by GDB:=20 ``` (gdb) demangle _ZN2JS6HandleINS_11PropertyKeyEEC2IS1_EERKNS_6RootedIT_EENSt9enable_ifIXsr3= stdE16is_convertible_vIS5_S1_EEiE4typeE=20 Can't demangle "_ZN2JS6HandleINS_11PropertyKeyEEC2IS1_EERKNS_6RootedIT_EENSt9enable_ifIXsr= 3stdE16is_convertible_vIS5_S1_EEiE4typeE" ``` Gimli-rs cpp_demangle [1] appears to demangle it correctly:=20 ``` $ /home/matthew/.cargo/bin/cppfilt=20 _ZN2JS6HandleINS_11PropertyKeyEEC2IS1_EERKNS_6RootedIT_EENSt9enable_ifIXsr3= stdE16is_convertible_vIS5_S1_EEiE4typeE=20 JS::Handle::Handle(std::enable_if, int>::type)=20 ``` [1]: https://github.com/gimli-rs/cpp_demangle --=20 You are receiving this mail because: You are on the CC list for the bug.=