aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2003-05-08 18:05:37 +0000
committerJoel Brobecker <brobecker@gnat.com>2003-05-08 18:05:37 +0000
commit5d62c8b152e352241b4a904e77f8a74a98d64b80 (patch)
tree0a86a1cdd3ed1eed4faa948f05c588819700a05a /gdb
parent20a0e81d7ad1d99add65f1787c8791ba6d360eea (diff)
downloadgdb-5d62c8b152e352241b4a904e77f8a74a98d64b80.zip
gdb-5d62c8b152e352241b4a904e77f8a74a98d64b80.tar.gz
gdb-5d62c8b152e352241b4a904e77f8a74a98d64b80.tar.bz2
* dwarf2read.c (set_cu_language): Set the language to "minimal" if
the language of the CU is not currently supported by GDB.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index fd8cb1b..ffdb907 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2003-05-08 J. Brobecker <brobecker@gnat.com>
+ * dwarf2read.c (set_cu_language): Set the language to "minimal" if
+ the language of the CU is not currently supported by GDB.
+
+2003-05-08 J. Brobecker <brobecker@gnat.com>
+
* defs.h (language): Add language_minimal enum value.
* c-lang.c (minimal_language_defn): New language definition.
(_initialize_c_language): Add the new minimal language to the list
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 476078b..a0a2f9b 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -4548,7 +4548,7 @@ set_cu_language (unsigned int lang)
case DW_LANG_Pascal83:
case DW_LANG_Modula2:
default:
- cu_language = language_unknown;
+ cu_language = language_minimal;
break;
}
cu_language_defn = language_def (cu_language);