From ffa157d8b15255ee503d99b995dd5843eb78e6fd Mon Sep 17 00:00:00 2001 From: Per Bothner Date: Thu, 23 Apr 1998 22:47:00 +0000 Subject: [PATCH] * symfile.c (deduce_language_from_filename): .class implies java. --- gdb/ChangeLog | 4 ++++ gdb/symfile.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 412c65bd432..645bb20f341 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +Thu Apr 23 15:44:39 1998 Per Bothner + + * symfile.c (deduce_language_from_filename): .class implies java. + Thu Apr 23 12:52:21 1998 Philippe De Muyter * configure.in (strerror): Check if function must be declared. diff --git a/gdb/symfile.c b/gdb/symfile.c index 6f3d3077444..88cf3eed5ad 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1437,7 +1437,7 @@ deduce_language_from_filename (filename) else if (STREQ (c, ".cc") || STREQ (c, ".C") || STREQ (c, ".cxx") || STREQ (c, ".cpp") || STREQ (c, ".cp") || STREQ (c, ".c++")) return language_cplus; - else if (STREQ (c, ".java")) + else if (STREQ (c, ".java") || STREQ (c, ".class")) return language_java; else if (STREQ (c, ".ch") || STREQ (c, ".c186") || STREQ (c, ".c286")) return language_chill; -- 2.30.2