[Bug python/25261] New: [dwz-with-cc-m] FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols ('rr')))
vries at gcc dot gnu.org
sourceware-bugzilla@sourceware.org
Mon Dec 9 07:21:00 GMT 2019
https://sourceware.org/bugzilla/show_bug.cgi?id=25261
Bug ID: 25261
Summary: [dwz-with-cc-m] FAIL: gdb.python/py-symbol.exp: print
(len (gdb.lookup_static_symbols ('rr')))
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: python
Assignee: unassigned at sourceware dot org
Reporter: vries at gcc dot gnu.org
Target Milestone: ---
With target board, we run into a FAIL because we expect a length of 2 here, but
get 5:
...
(gdb) python print (len (gdb.lookup_static_symbols ('rr')))^M
5^M
(gdb) FAIL: gdb.python/py-symbol.exp: print (len (gdb.lookup_static_symbols
('rr')))
...
In more detail, we get:
...
(gdb) python print (gdb.lookup_static_symbols ('rr')[0].value ())
99
(gdb) python print (gdb.lookup_static_symbols ('rr')[1].value ())
42
(gdb) python print (gdb.lookup_static_symbols ('rr')[2].value ())
42
(gdb) python print (gdb.lookup_static_symbols ('rr')[3].value ())
42
(gdb) python print (gdb.lookup_static_symbols ('rr')[4].value ())
42
...
The interesting bit is that the rr DWARF records are actually not moved into a
partial unit. Only the type is moved into the alt file:
...
<1><100>: Abbrev Number: 11 (DW_TAG_variable)
<101> DW_AT_name : rr
<104> DW_AT_decl_file : 1
<105> DW_AT_decl_line : 46
<106> DW_AT_type : <alt 0xc5>
<10a> DW_AT_location : 9 byte block: 3 2c 10 60 0 0 0 0 0
(DW_OP_addr: 60102c)
<1><20f>: Abbrev Number: 11 (DW_TAG_variable)
<210> DW_AT_name : rr
<213> DW_AT_decl_file : 1
<214> DW_AT_decl_line : 18
<215> DW_AT_type : <alt 0xc5>
<219> DW_AT_location : 9 byte block: 3 30 10 60 0 0 0 0 0
(DW_OP_addr: 601030)
...
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Gdb-prs
mailing list