aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-04-02 15:40:00 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-04-02 15:40:00 +0000
commitd54123026030d3532c01564f6671aa84270a244c (patch)
tree7c36b28fdafff471b3cfa9225a9ef07c2582eb26 /gdb/symfile.c
parentd6d6b18ab241417382c3141f8d26db24eea566ea (diff)
downloadgdb-d54123026030d3532c01564f6671aa84270a244c.zip
gdb-d54123026030d3532c01564f6671aa84270a244c.tar.gz
gdb-d54123026030d3532c01564f6671aa84270a244c.tar.bz2
* symfile.c (deduce_language_from_filename): .cpp is a C++ extension.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index dbb84d9..3017075 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -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;