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
This commit is contained in:
Rafaël Carré 2009-07-02 10:24:27 +00:00
parent 017c1a1027
commit 278f1f69bb

View file

@ -203,9 +203,7 @@ static void debug(const char *msg)
mem2hex(msg, &debugbuf[1], strlen(msg)); mem2hex(msg, &debugbuf[1], strlen(msg));
putpacket(debugbuf); putpacket(debugbuf);
} }
#endif /* SH7034 */ #elif defined(HAVE_GDB_API)
#ifdef HAVE_GDB_API
static void *get_api_function(int n) static void *get_api_function(int n)
{ {
struct gdb_api *api = (struct gdb_api *)GDB_API_ADDRESS; struct gdb_api *api = (struct gdb_api *)GDB_API_ADDRESS;
@ -227,11 +225,20 @@ static void debug(char *msg)
if (f) (*f)(msg); if (f) (*f)(msg);
} }
void debug_init(void)
{
}
#else /* !SH7034 && !HAVE_GDB_API */
void debug_init(void) void debug_init(void)
{ {
} }
#endif /* HAVE_GDB_API */ static inline void debug(char *msg)
{
(void)msg;
}
#endif
#endif /* end of DEBUG section */ #endif /* end of DEBUG section */
#ifdef __GNUC__ #ifdef __GNUC__