Fix value_print, which used to be ostensibly langauge-indepentdent,
[deliverable/binutils-gdb.git] / gdb / c-lang.c
index 389c58d008fcc7d0cfa205d304e228855ec9596f..3f694a4a944f36fdec2e33b53d8fad8270a9dc5c 100644 (file)
@@ -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 */
This page took 0.02433 seconds and 4 git commands to generate.