/* Meant to be used in debug sessions, so don't export it in a header file. */
-extern void ATTRIBUTE_USED debug_exp (struct expression *exp);
+extern void ATTRIBUTE_USED debug (struct expression *exp);
/* Print EXP. */
void
ATTRIBUTE_USED
-debug_exp (struct expression *exp)
+debug (struct expression *exp)
{
exp->dump (gdb_stdlog);
gdb_flush (gdb_stdlog);
return str;
}
+/* Meant to be used in debug sessions, so don't export it in a header file. */
+extern void ATTRIBUTE_USED debug (const gdb_mpz &);
+
+/* Print VAL. */
+
+void ATTRIBUTE_USED
+debug (const gdb_mpz &val)
+{
+ gdb_printf (gdb_stdlog, "%s\n", val.str ().c_str ());
+ gdb_flush (gdb_stdlog);
+}
+
/* See gmp-utils.h. */
void
}
/* Meant to be used in debug sessions, so don't export it in a header file. */
-extern void ATTRIBUTE_UNUSED debug_type (struct type *type);
+extern void ATTRIBUTE_USED debug (struct type *type);
/* Print TYPE. */
-void ATTRIBUTE_UNUSED
-debug_type (struct type *type)
+void ATTRIBUTE_USED
+debug (struct type *type)
{
type_print (type, "", gdb_stdlog, 1);
+ gdb_printf (gdb_stdlog, "\n");
gdb_flush (gdb_stdlog);
}
}
/* Meant to be used in debug sessions, so don't export it in a header file. */
-extern void ATTRIBUTE_UNUSED debug_val (struct value *val);
+extern void ATTRIBUTE_USED debug (struct value *val);
/* Print VAL. */
-void ATTRIBUTE_UNUSED
-debug_val (struct value *val)
+void ATTRIBUTE_USED
+debug (struct value *val)
{
value_print (val, gdb_stdlog, &user_print_options);
+ gdb_printf (gdb_stdlog, "\n");
gdb_flush (gdb_stdlog);
}