aboutsummaryrefslogtreecommitdiff
path: root/gdb/m2-lang.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/m2-lang.c
parentc4d7d826d72aeabda9a30bf836a2734033c476e3 (diff)
downloadgdb-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/m2-lang.c')
-rw-r--r--gdb/m2-lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/m2-lang.c b/gdb/m2-lang.c
index ba4744f..c12b7dd 100644
--- a/gdb/m2-lang.c
+++ b/gdb/m2-lang.c
@@ -24,6 +24,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "parser-defs.h"
#include "language.h"
#include "m2-lang.h"
+#include "c-lang.h"
/* Print the character C on STREAM as part of the contents of a literal
string whose delimiter is QUOTER. Note that that format for printing
@@ -405,6 +406,7 @@ const struct language_defn m2_language_defn = {
m2_create_fundamental_type, /* Create fundamental type in this language */
m2_print_type, /* Print a type using appropriate syntax */
m2_val_print, /* Print a value using appropriate syntax */
+ c_value_print, /* Print a top-level value */
&builtin_type_m2_real, /* longest floating point type */
{"", "", "", ""}, /* Binary format info */
{"%loB", "", "o", "B"}, /* Octal format info */