summaryrefslogtreecommitdiffstats
path: root/gdb/language.c
diff options
context:
space:
mode:
authorPer Bothner <per@bothner.com>1994-06-05 01:43:40 +0000
committerPer Bothner <per@bothner.com>1994-06-05 01:43:40 +0000
commite10cfcaa374a1a493e5aa68dc251534800d38124 (patch)
treed383531402da1319216a25ca121bef26f3610d54 /gdb/language.c
parentc4d7d826d72aeabda9a30bf836a2734033c476e3 (diff)
downloadppe42-binutils-e10cfcaa374a1a493e5aa68dc251534800d38124.tar.gz
ppe42-binutils-e10cfcaa374a1a493e5aa68dc251534800d38124.zip
Fix value_print, which used to be ostensibly langauge-indepentdent,
but would print pointers and arrays in C syntax. Instead, call a language-specific function. See ChangeLog for details.
Diffstat (limited to 'gdb/language.c')
-rw-r--r--gdb/language.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/gdb/language.c b/gdb/language.c
index 6347428f5a..4a3b6a0ee6 100644
--- a/gdb/language.c
+++ b/gdb/language.c
@@ -1165,6 +1165,16 @@ unk_lang_val_print (type, valaddr, address, stream, format, deref_ref,
error ("internal error - unimplemented function unk_lang_val_print called.");
}
+int
+unk_lang_value_print (val, stream, format, pretty)
+ value_ptr val;
+ GDB_FILE *stream;
+ int format;
+ enum val_prettyprint pretty;
+{
+ error ("internal error - unimplemented function unk_lang_value_print called.");
+}
+
static struct type ** const (unknown_builtin_types[]) = { 0 };
static const struct op_print unk_op_print_tab[] = {
{NULL, OP_NULL, PREC_NULL, 0}
@@ -1183,6 +1193,7 @@ const struct language_defn unknown_language_defn = {
unk_lang_create_fundamental_type,
unk_lang_print_type, /* Print a type using appropriate syntax */
unk_lang_val_print, /* Print a value using appropriate syntax */
+ unk_lang_value_print, /* Print a top-level value */
&builtin_type_error, /* longest floating point type */
{"", "", "", ""}, /* Binary format info */
{"0%lo", "0", "o", ""}, /* Octal format info */
@@ -1206,6 +1217,7 @@ const struct language_defn auto_language_defn = {
unk_lang_create_fundamental_type,
unk_lang_print_type, /* Print a type using appropriate syntax */
unk_lang_val_print, /* Print a value using appropriate syntax */
+ unk_lang_value_print, /* Print a top-level value */
&builtin_type_error, /* longest floating point type */
{"", "", "", ""}, /* Binary format info */
{"0%lo", "0", "o", ""}, /* Octal format info */
@@ -1228,6 +1240,7 @@ const struct language_defn local_language_defn = {
unk_lang_create_fundamental_type,
unk_lang_print_type, /* Print a type using appropriate syntax */
unk_lang_val_print, /* Print a value using appropriate syntax */
+ unk_lang_value_print, /* Print a top-level value */
&builtin_type_error, /* longest floating point type */
{"", "", "", ""}, /* Binary format info */
{"0%lo", "0", "o", ""}, /* Octal format info */
OpenPOWER on IntegriCloud