diff options
author | Per Bothner <per@bothner.com> | 1994-06-05 01:43:40 +0000 |
---|---|---|
committer | Per Bothner <per@bothner.com> | 1994-06-05 01:43:40 +0000 |
commit | e10cfcaa374a1a493e5aa68dc251534800d38124 (patch) | |
tree | d383531402da1319216a25ca121bef26f3610d54 /gdb/c-lang.c | |
parent | c4d7d826d72aeabda9a30bf836a2734033c476e3 (diff) | |
download | gdb-e10cfcaa374a1a493e5aa68dc251534800d38124.zip gdb-e10cfcaa374a1a493e5aa68dc251534800d38124.tar.gz gdb-e10cfcaa374a1a493e5aa68dc251534800d38124.tar.bz2 |
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/c-lang.c')
-rw-r--r-- | gdb/c-lang.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/c-lang.c b/gdb/c-lang.c index 389c58d..3f694a4 100644 --- a/gdb/c-lang.c +++ b/gdb/c-lang.c @@ -404,6 +404,7 @@ const struct language_defn c_language_defn = { c_create_fundamental_type, /* Create fundamental type in this language */ c_print_type, /* Print a type using appropriate syntax */ c_val_print, /* Print a value using appropriate syntax */ + c_value_print, /* Print a top-level value */ &builtin_type_double, /* longest floating point type */ /*FIXME*/ {"", "", "", ""}, /* Binary format info */ {"0%lo", "0", "o", ""}, /* Octal format info */ @@ -426,6 +427,7 @@ const struct language_defn cplus_language_defn = { c_create_fundamental_type, /* Create fundamental type in this language */ c_print_type, /* Print a type using appropriate syntax */ c_val_print, /* Print a value using appropriate syntax */ + c_value_print, /* Print a top-level value */ &builtin_type_double, /* longest floating point type */ /*FIXME*/ {"", "", "", ""}, /* Binary format info */ {"0%lo", "0", "o", ""}, /* Octal format info */ |