[PATCH][gdb] Fix cc-with-dwz regression

Tom de Vries tdevries@suse.de
Fri Feb 21 13:02:00 GMT 2020


On 20-02-2020 17:43, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
> 
> Tom> Hi,
> Tom> I noticed a regression with board cc-with-dwz:
> Tom> ...
> Tom> FAIL: gdb.cp/m-static.exp: static const int initialized elsewhere
> Tom> FAIL: gdb.cp/m-static.exp: info variable everywhere
> Tom> ...
> 
> Tom> The problem started with commit 0494dbecdf "Consolidate partial symtab
> Tom> dependency reading".
> 
> Thank you for doing this.
> 
> Tom> The commit replaces the dwarf2_psymtab::expand_psymtab specific reading of
> Tom> dependencies, which contains a "dependencies[i]->user == NULL" test, with a
> Tom> generic partial_symtab::read_dependencies call, which does not test the user
> Tom> field.
> 
> Can we simply add this to the base class?
> I think only the DWARF reader ever sets the "user" field anyway.

Ack, updated.

OK like this?

Thanks,
- Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-gdb-Fix-cc-with-dwz-regression.patch
Type: text/x-patch
Size: 1580 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20200221/510814f3/attachment.bin>


More information about the Gdb-patches mailing list