diff options
author | Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> | 2018-10-26 15:31:36 +0530 |
---|---|---|
committer | Sangamesh Mallayya <sangamesh.swamy@in.ibm.com> | 2018-10-26 15:31:36 +0530 |
commit | b971899198607b844f5a37e39dc561766c3b331a (patch) | |
tree | 3259c81e5d7a9390bcd619dc07f9ac465c9c639a /gdb/xcoffread.c | |
parent | 0b0eff8b1d8b4fe51ad3a14f60816f98bc0e963a (diff) | |
download | gdb-b971899198607b844f5a37e39dc561766c3b331a.zip gdb-b971899198607b844f5a37e39dc561766c3b331a.tar.gz gdb-b971899198607b844f5a37e39dc561766c3b331a.tar.bz2 |
Fix SYMBOL_LANGUAGE assertion failure on AIX.
Diffstat (limited to 'gdb/xcoffread.c')
-rw-r--r-- | gdb/xcoffread.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c index 941471a..acf0959 100644 --- a/gdb/xcoffread.c +++ b/gdb/xcoffread.c @@ -1022,6 +1022,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) int just_started = 1; int depth = 0; CORE_ADDR fcn_start_addr = 0; + enum language pst_symtab_language; struct coff_symbol fcn_stab_saved = { 0 }; @@ -1042,10 +1043,11 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) set_last_source_file (NULL); last_csect_name = 0; + pst_symtab_language = deduce_language_from_filename (filestring); start_stabs (); start_symtab (objfile, filestring, (char *) NULL, file_start_addr, - language_unknown); + pst_symtab_language); record_debugformat (debugfmt); symnum = ((struct symloc *) pst->read_symtab_private)->first_symnum; max_symnum = @@ -1138,8 +1140,8 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) } start_stabs (); - start_symtab (objfile, "_globals_", (char *) NULL, (CORE_ADDR) 0, - language_unknown); + start_symtab (objfile, "_globals_", (char *) NULL, + (CORE_ADDR) 0, pst_symtab_language); record_debugformat (debugfmt); cur_src_end_addr = first_object_file_end; /* Done with all files, everything from here on is globals. */ @@ -1229,7 +1231,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) /* Give all csects for this source file the same name. */ start_symtab (objfile, filestring, NULL, - (CORE_ADDR) 0, language_unknown); + (CORE_ADDR) 0, pst_symtab_language); record_debugformat (debugfmt); } @@ -1350,7 +1352,7 @@ read_xcoff_symtab (struct objfile *objfile, struct partial_symtab *pst) start_stabs (); start_symtab (objfile, filestring, (char *) NULL, (CORE_ADDR) 0, - language_unknown); + pst_symtab_language); record_debugformat (debugfmt); last_csect_name = 0; |