From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id ED5B73858424; Fri, 9 Sep 2022 00:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED5B73858424 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1662685061; bh=pkCNO1j8J6o7LnN3126P65BLuTA2h9PYOLsLPhWTj9o=; h=From:To:Subject:Date:From; b=DLr9IDm4BfsC8h9yjG2RW64u7sSVl3dhYSahKfEoEUFLHklg2mOfshnJxMG3c4+Og JE6zIqA7b0HVovKWSNANPlKIc8i1m2zIbxYiP+92LAFWmD5F79keeUpgBU5Jg4ogjL T3YTLWDkmBEP6bFArOXqfCIo5CIRmlch4I9LkuYY= From: "ayermolo at fb dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/29562] New: disas command requires single quote around namespace Date: Fri, 09 Sep 2022 00:57:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ayermolo at fb 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29562 Bug ID: 29562 Summary: disas command requires single quote around namespace Product: gdb Version: 11.2 Status: UNCONFIRMED Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: ayermolo at fb dot com Target Milestone: --- Not sure if this is exactly a bug in gdb, but I am hoping someone here who = is familiar with internal workings of it can point me into the right direction= of where to start loooking. I have an internal binary that is build with clang 12. The structure of relevant debug info below, with all other dies and attribu= tes removed.: DW_TAG_compile_unit [141] ... DW_TAG_namespace [2] * () DW_AT_name [DW_FORM_strp] ( .debug_str[0xa57a80dd] =3D "namea") ... DW_TAG_namespace [2] *=20 DW_AT_name [DW_FORM_strp] ( .debug_str[0x7232f811] =3D "nameb") .. DW_TAG_subprogram [188] *=20 DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000) DW_AT_ranges [DW_FORM_sec_offset] .. DW_AT_name [DW_FORM_strp] ( .debug_str[0x667d9d2f] =3D "functionName") When I do disas namea::nameb::functionName=20 I get=20 No type "nameb" within class or namespace "namea". If I add single quotes disas 'namea::nameb::functionName' It works. I should add this debug info after this binary has been optimized with BOLT. https://lists.llvm.org/pipermail/llvm-dev/2020-October/145902.html Pre BOLT disas namea::nameb::functionName works. Main thing bolt does is convert DW_AT_low_pc/DW_AT_high_pc into DW_AT_low_pc/DW_AT_ranges. Looking at debug information for that CU only real difference is one mentio= ned above. The type references all point to correct dies. In LLDB it works, but= it might be doing things differently. I am trying to figure out if BOLT is somehow doing something wrong, or maybe it's triggering something in GDB. Thanks. --=20 You are receiving this mail because: You are on the CC list for the bug.=