[Bug gdb/29562] New: disas command requires single quote around namespace
ayermolo at fb dot com
sourceware-bugzilla@sourceware.org
Fri Sep 9 00:57:41 GMT 2022
https://sourceware.org/bugzilla/show_bug.cgi?id=29562
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 attributes
removed.:
DW_TAG_compile_unit [141]
...
DW_TAG_namespace [2] * ()
DW_AT_name [DW_FORM_strp] ( .debug_str[0xa57a80dd] = "namea")
...
DW_TAG_namespace [2] *
DW_AT_name [DW_FORM_strp] ( .debug_str[0x7232f811] = "nameb")
..
DW_TAG_subprogram [188] *
DW_AT_low_pc [DW_FORM_addr] (0x0000000000000000)
DW_AT_ranges [DW_FORM_sec_offset]
..
DW_AT_name [DW_FORM_strp] ( .debug_str[0x667d9d2f] =
"functionName")
When I do disas namea::nameb::functionName
I get
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 mentioned
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.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list