aboutsummaryrefslogtreecommitdiff
path: root/gdb/cp-valprint.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2005-02-10 18:15:44 +0000
committerDaniel Jacobowitz <drow@false.org>2005-02-10 18:15:44 +0000
commitcf309262d9828b6aad71e01f727a9fa2e0776a4e (patch)
tree8d63ad3e9f1f91e0da971925c89d2dcbc80757d8 /gdb/cp-valprint.c
parent335cca0d6ecc363f7fd22244823deb8e2a657088 (diff)
downloadgdb-cf309262d9828b6aad71e01f727a9fa2e0776a4e.zip
gdb-cf309262d9828b6aad71e01f727a9fa2e0776a4e.tar.gz
gdb-cf309262d9828b6aad71e01f727a9fa2e0776a4e.tar.bz2
From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>:
PR exp/1821 * cp-valprint.c: Include "language.h". (cp_print_value_fields): Pass the current language to fprintf_symbol_filtered. * Makefile.in (cp-valprint.o): Update dependencies. testsuite/ From Ramana Radhakrishnan <ramana.radhakrishnan@codito.com>: PR exp/1821 * gdb.base/gdb1821.c: New test file. * gdb.base/gdb1821.exp: New test file.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r--gdb/cp-valprint.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c
index 51c2129..9fdf869 100644
--- a/gdb/cp-valprint.c
+++ b/gdb/cp-valprint.c
@@ -36,6 +36,7 @@
#include "cp-abi.h"
#include "valprint.h"
#include "cp-support.h"
+#include "language.h"
int vtblprint; /* Controls printing of vtbl's */
int objectprint; /* Controls looking up an object's derived type
@@ -319,11 +320,11 @@ cp_print_value_fields (struct type *type, struct type *real_type,
if (TYPE_FIELD_STATIC (type, i))
fputs_filtered ("static ", stream);
fprintf_symbol_filtered (stream, TYPE_FIELD_NAME (type, i),
- language_cplus,
+ current_language->la_language,
DMGL_PARAMS | DMGL_ANSI);
fputs_filtered ("\" \"", stream);
fprintf_symbol_filtered (stream, TYPE_FIELD_NAME (type, i),
- language_cplus,
+ current_language->la_language,
DMGL_PARAMS | DMGL_ANSI);
fputs_filtered ("\") \"", stream);
}
@@ -334,7 +335,7 @@ cp_print_value_fields (struct type *type, struct type *real_type,
if (TYPE_FIELD_STATIC (type, i))
fputs_filtered ("static ", stream);
fprintf_symbol_filtered (stream, TYPE_FIELD_NAME (type, i),
- language_cplus,
+ current_language->la_language,
DMGL_PARAMS | DMGL_ANSI);
annotate_field_name_end ();
/* do not print leading '=' in case of anonymous unions */