This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 (齐尧)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]