]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* symfile.c (deduce_language_from_filename): .class implies java.
authorPer Bothner <per@bothner.com>
Thu, 23 Apr 1998 22:47:00 +0000 (22:47 +0000)
committerPer Bothner <per@bothner.com>
Thu, 23 Apr 1998 22:47:00 +0000 (22:47 +0000)
gdb/ChangeLog
gdb/symfile.c

index 412c65bd43261944c4d852c4088c7b76b43c719d..645bb20f341a549eb1874f34f5d4e56233570c8b 100644 (file)
@@ -1,3 +1,7 @@
+Thu Apr 23 15:44:39 1998  Per Bothner  <bothner@cygnus.com>
+
+       * symfile.c (deduce_language_from_filename):  .class implies java.
+
 Thu Apr 23 12:52:21 1998  Philippe De Muyter  <phdm@macqel.be>
 
         * configure.in (strerror): Check if function must be declared.
index 6f3d3077444784f11606c5658ac7415aca35c923..88cf3eed5ad2f50a8378b927bf1a9cb17269e313 100644 (file)
@@ -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;