* symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
authorJim Kingdon <jkingdon@engr.sgi.com>
Sat, 2 Apr 1994 15:40:00 +0000 (15:40 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sat, 2 Apr 1994 15:40:00 +0000 (15:40 +0000)
gdb/ChangeLog
gdb/symfile.c

index da0b01051fdd3e2b05316a8b6d5cb429bb15ef36..06026308d1e557a4bcace135d13834d8be54e491 100644 (file)
@@ -1,3 +1,7 @@
+Fri Apr  1 14:04:34 1994  Jason Merrill  (jason@deneb.cygnus.com)
+
+       * symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
+
 Fri Apr  1 00:44:00 1994  Peter Schauer  (pes@regent.e-technik.tu-muenchen.de)
 
        For SVR4 targets, enable gdb to set breakpoints in shared
index dbb84d91e6fde82924a84dd4e4ac884401a1f40a..30170757ffde75545bcce227dc94c70d4a0825e3 100644 (file)
@@ -690,11 +690,11 @@ symbol_file_command (args, from_tty)
               if (text_relocation == (CORE_ADDR)0)
                 return;
               else if (text_relocation == (CORE_ADDR)-1)
-                symbol_file_add (name, from_tty, (CORE_ADDR)0, 1, mapped, readno
-w);
+                symbol_file_add (name, from_tty, (CORE_ADDR)0, 1, mapped,
+                                readnow);
               else
-                symbol_file_add (name, from_tty, (CORE_ADDR)text_relocation, 0,
-mapped, readnow);
+                symbol_file_add (name, from_tty, (CORE_ADDR)text_relocation,
+                                0, mapped, readnow);
               set_initial_language ();
            }
          argv++;
@@ -1202,7 +1202,8 @@ deduce_language_from_filename (filename)
     return language_m2;
   else if (STREQ(c,".c"))
     return language_c;
-  else if (STREQ (c,".cc") || STREQ (c,".C") || STREQ (c, ".cxx"))
+  else if (STREQ (c,".cc") || STREQ (c,".C") || STREQ (c, ".cxx")
+          || STREQ (c, ".cpp"))
     return language_cplus;
   else if (STREQ (c,".ch") || STREQ (c,".c186") || STREQ (c,".c286"))
     return language_chill;