summaryrefslogtreecommitdiff
path: root/firmware/export/debug.h
diff options
context:
space:
mode:
authorTomasz Malesinski <tomal@rockbox.org>2006-02-04 00:04:02 +0000
committerTomasz Malesinski <tomal@rockbox.org>2006-02-04 00:04:02 +0000
commitec7e97602695b7e4a49013b525d0bf7a0c8d13fc (patch)
treea8c60a04068b31614a60dfc89cc0194ef8f650b1 /firmware/export/debug.h
parent760fea9ac7b52aa83d88371fac7bf0027cf7fd43 (diff)
Added GDB API - a way to call stub procedures from a DEBUG build.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8561 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/debug.h')
-rw-r--r--firmware/export/debug.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/firmware/export/debug.h b/firmware/export/debug.h
index 0506ff1e42..52b6687c6b 100644
--- a/firmware/export/debug.h
+++ b/firmware/export/debug.h
@@ -31,6 +31,11 @@ extern void ldebugf(const char* file, int line, const char *fmt, ...);
#define LDEBUGF(...) ldebugf(__FILE__, __LINE__, __VA_ARGS__)
#else
#if defined(DEBUG)
+
+#ifdef HAVE_GDB_API
+void breakpoint(void);
+#endif
+
#define DEBUGF debugf
#define LDEBUGF debugf
#else