/**
* @file
- * @brief Helper function for integerated debug support
+ * @brief Helper function for integrated debug support
* @author Michael Beck
* @date 2005
* @version $Id$
#include "config.h"
#endif
+#include "firm_config.h"
+
#ifdef DEBUG_libfirm
#ifdef _WIN32
firm_debug_break();
} /* firm_init_debugger */
+/**
+ * A gdb helper function to print firm objects.
+ */
+const char *gdb_node_helper(void *firm_object) {
+ static char buf[1024];
+ ir_snprintf(buf, sizeof(buf), "%+F", firm_object);
+ return buf;
+}
+
+/**
+ * A gdb helper function to print tarvals.
+ */
+const char *gdb_tarval_helper(void *tv_object) {
+ static char buf[1024];
+ ir_snprintf(buf, sizeof(buf), "%+T", tv_object);
+ return buf;
+}
+
#else
/* some picky compiler do not allow empty files */