This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug symtab/17811] Stabs special "$t" support for this.
- From: "muller at sourceware dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 07 Jan 2015 23:15:00 +0000
- Subject: [Bug symtab/17811] Stabs special "$t" support for this.
- Auto-submitted: auto-generated
- References: <bug-17811-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=17811
--- Comment #2 from Pierre Muller <muller at sourceware dot org> ---
Proposed patch:
2015-01-07 Pierre Muller <muller@sourceware.org>
* stabsread.c (define_symbol): Set language for C++ special symbols.
diff --git a/gdb/stabsread.c b/gdb/stabsread.c
index 212c7fa..ec883ba 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -675,6 +675,8 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int
type,
SYMBOL_LINE (sym) = 0; /* unknown */
}
+ SYMBOL_SET_LANGUAGE (sym, current_subfile->language,
+ &objfile->objfile_obstack);
if (is_cplus_marker (string[0]))
{
/* Special GNU C++ names. */
@@ -710,8 +712,6 @@ define_symbol (CORE_ADDR valu, char *string, int desc, int
type,
else
{
normal:
- SYMBOL_SET_LANGUAGE (sym, current_subfile->language,
- &objfile->objfile_obstack);
if (SYMBOL_LANGUAGE (sym) == language_cplus)
{
char *name = alloca (p - string + 1);
--
You are receiving this mail because:
You are on the CC list for the bug.