aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarfread.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1998-01-28 23:02:03 +0000
committerStan Shebs <shebs@codesourcery.com>1998-01-28 23:02:03 +0000
commit7074cd4e8ae04c905903546ba95f76d2e7e229b9 (patch)
tree3b49e66c20a488eb20b18655922662eb2576afb2 /gdb/dwarfread.c
parent448258693f221c8f272bcd4d9ebe40ddb682f5df (diff)
downloadgdb-7074cd4e8ae04c905903546ba95f76d2e7e229b9.zip
gdb-7074cd4e8ae04c905903546ba95f76d2e7e229b9.tar.gz
gdb-7074cd4e8ae04c905903546ba95f76d2e7e229b9.tar.bz2
Suggested by Chris Walter <walter@budoe.bu.edu>:
* dwarfread.c (set_cu_language): Recognize Fortran. * dwarf2read.c (set_cu_language): Ditto. (read_array_type): Fix language test.
Diffstat (limited to 'gdb/dwarfread.c')
-rw-r--r--gdb/dwarfread.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/dwarfread.c b/gdb/dwarfread.c
index 07358bd..0ef59b7 100644
--- a/gdb/dwarfread.c
+++ b/gdb/dwarfread.c
@@ -674,11 +674,13 @@ set_cu_language (dip)
case LANG_MODULA2:
cu_language = language_m2;
break;
+ case LANG_FORTRAN77:
+ case LANG_FORTRAN90:
+ cu_language = language_fortran;
+ break;
case LANG_ADA83:
case LANG_COBOL74:
case LANG_COBOL85:
- case LANG_FORTRAN77:
- case LANG_FORTRAN90:
case LANG_PASCAL83:
/* We don't know anything special about these yet. */
cu_language = language_unknown;