diff options
author | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 15:30:05 +0100 |
---|---|---|
committer | Bernhard Heckel <bernhard.heckel@intel.com> | 2016-03-02 15:31:20 +0100 |
commit | 285866651cd0d404087438668012289d278e4179 (patch) | |
tree | d505c10965ff29032de61fac1f918f9a19fca307 /gdb/dwarf2read.c | |
parent | d11698cd0d9bb22b51598ee37af0aaf1d44ec5c7 (diff) | |
download | gdb-285866651cd0d404087438668012289d278e4179.zip gdb-285866651cd0d404087438668012289d278e4179.tar.gz gdb-285866651cd0d404087438668012289d278e4179.tar.bz2 |
Fix detection of gfortran compilers.
Newer gfortran compilers changed naming convention in DW_AT_producer tag.
For example "GNU Fortran 4.6.3" vs "GNU Fortran2008 5.3.0"
2016-03-02 Bernhard Heckel <bernhard.heckel@intel.com>
gdb/Changelog:
* dwarf2read.c (new_symbol_full): Fix detection of gfortran compilers.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 1020c12..dcd49e3 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -18506,7 +18506,7 @@ new_symbol_full (struct die_info *die, struct type *type, struct dwarf2_cu *cu, if (cu->language == language_fortran && die->parent && die->parent->tag == DW_TAG_module && cu->producer - && startswith (cu->producer, "GNU Fortran ")) + && startswith (cu->producer, "GNU Fortran")) SYMBOL_ACLASS_INDEX (sym) = LOC_UNRESOLVED; /* A variable with DW_AT_external is never static, |