Re: [RFA 28/42] Set list_in_scope later in DWARF reader

Simon Marchi
2018-07-10T03:23:39Z

On 2018-07-06 02:11 PM, Keith Seitz wrote:
> On 05/22/2018 09:58 PM, Tom Tromey wrote:
>> diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
>> index 3cc15ab645..f7cca01445 100644
>> --- a/gdb/dwarf2read.c
>> +++ b/gdb/dwarf2read.c
>> @@ -21138,6 +21134,8 @@ dwarf2_start_symtab (struct dwarf2_cu *cu,
>> = start_symtab (cu->per_cu->dwarf2_per_objfile->objfile, name, comp_dir,
>> low_pc, cu->language);
>>
>> + cu->list_in_scope = get_file_symbols ();
>> +
>> record_debugformat ("DWARF 2");
>> record_producer (cu->producer);
>>
>>
>
> Warning: `get_file_symbols' is undefined until the next patch.
>
> Keith
>

Indeed, though the principle sounds good.

Simon