diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-02 10:24:27 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2009-07-02 10:24:27 +0000 |
commit | 278f1f69bb132ee4600f7706ff5783a625f9039c (patch) | |
tree | 496248c8c94a7fbf1a2ff75feecef61b05549358 | |
parent | 017c1a1027627e601cc5c22e43e42e1735835259 (diff) | |
download | rockbox-278f1f69bb132ee4600f7706ff5783a625f9039c.tar.gz rockbox-278f1f69bb132ee4600f7706ff5783a625f9039c.zip |
Fix DEBUG builds when CONFIG_CPU != SH7034 and HAVE_GDB_API isn't defined
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21613 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/debug.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/firmware/debug.c b/firmware/debug.c index 1826022c2c..94404586de 100644 --- a/firmware/debug.c +++ b/firmware/debug.c | |||
@@ -203,9 +203,7 @@ static void debug(const char *msg) | |||
203 | mem2hex(msg, &debugbuf[1], strlen(msg)); | 203 | mem2hex(msg, &debugbuf[1], strlen(msg)); |
204 | putpacket(debugbuf); | 204 | putpacket(debugbuf); |
205 | } | 205 | } |
206 | #endif /* SH7034 */ | 206 | #elif defined(HAVE_GDB_API) |
207 | |||
208 | #ifdef HAVE_GDB_API | ||
209 | static void *get_api_function(int n) | 207 | static void *get_api_function(int n) |
210 | { | 208 | { |
211 | struct gdb_api *api = (struct gdb_api *)GDB_API_ADDRESS; | 209 | struct gdb_api *api = (struct gdb_api *)GDB_API_ADDRESS; |
@@ -230,8 +228,17 @@ static void debug(char *msg) | |||
230 | void debug_init(void) | 228 | void debug_init(void) |
231 | { | 229 | { |
232 | } | 230 | } |
231 | #else /* !SH7034 && !HAVE_GDB_API */ | ||
232 | void debug_init(void) | ||
233 | { | ||
234 | } | ||
235 | |||
236 | static inline void debug(char *msg) | ||
237 | { | ||
238 | (void)msg; | ||
239 | } | ||
240 | #endif | ||
233 | 241 | ||
234 | #endif /* HAVE_GDB_API */ | ||
235 | #endif /* end of DEBUG section */ | 242 | #endif /* end of DEBUG section */ |
236 | 243 | ||
237 | #ifdef __GNUC__ | 244 | #ifdef __GNUC__ |