Re: [PATCH 1/6] DWARF: Don't add nameless modules to partial symbol table.

Yao Qi
2017-07-31T22:09:45Z

On 17-07-21 11:23:55, Tim Wiederhake wrote:
> From: Bernhard Heckel <bernhard.heckel@intel.com>
>
> A name for BLOCK DATA in Fortran is optional. If no name has been assigned,
> GDB will crash during read-in of DWARF when BLOCK DATA is represented via
> DW_TAG_module.

What is your Fortran compiler? I used gfortran 4.9.4, it doesn't generate
DW_TAG_module in debug information. So, I run block-data.exp with
unpatched GDB, all tests pass.

>
> BLOCK DATA is used for one-time initialization of non-pointer variables in
> named common blocks.
>
> xxxx-yy-zz Bernhard Heckel <bernhard.heckel@intel.com>
>
> gdb/ChangeLog:
> * dwarf2read.c (add_partial_symbol): Skip nameless modules.
>
> gdb/testsuite/ChangeLog:
> * gdb.fortran/block-data.f: New file.
> * gdb.fortran/block-data.exp: New file.
>

--
Yao (é½å°§)