GDB SIGSEGV opening a Fortran program compiled with ifort
authorJonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
Wed, 6 Jan 2016 06:10:39 +0000 (10:10 +0400)
committerJoel Brobecker <brobecker@adacore.com>
Sun, 17 Jan 2016 06:11:02 +0000 (10:11 +0400)
commitdc365182240722969f044918ecd3cab00da55502
treecbe0e5c2b7be34375cb74e18cbd1a25fbcc6d776
parentb677098d4e086c093554a064076e021fec0399e8
GDB SIGSEGV opening a Fortran program compiled with ifort

This patch fixes a SIGSEGV when trying to open a Fortran program
compiled with ifort (reproduced using version using version 16.0.1.150).
The error can be reproduce with most, if not any program. For instance,
a single file only containing "end", compiled with no additional flag,
suffices.

gdb/ChangeLog:

       PR gdb/19208
       * dwarf2read.c (read_partial_die): Do not call set_objfile_main_name
       if the function has no name.
gdb/ChangeLog
gdb/dwarf2read.c