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:
parent
017c1a1027
commit
278f1f69bb
1 changed files with 11 additions and 4 deletions
|
@ -203,9 +203,7 @@ static void debug(const char *msg)
|
|||
mem2hex(msg, &debugbuf[1], strlen(msg));
|
||||
putpacket(debugbuf);
|
||||
}
|
||||
#endif /* SH7034 */
|
||||
|
||||
#ifdef HAVE_GDB_API
|
||||
#elif defined(HAVE_GDB_API)
|
||||
static void *get_api_function(int n)
|
||||
{
|
||||
struct gdb_api *api = (struct gdb_api *)GDB_API_ADDRESS;
|
||||
|
@ -227,11 +225,20 @@ static void debug(char *msg)
|
|||
if (f) (*f)(msg);
|
||||
}
|
||||
|
||||
void debug_init(void)
|
||||
{
|
||||
}
|
||||
#else /* !SH7034 && !HAVE_GDB_API */
|
||||
void debug_init(void)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* HAVE_GDB_API */
|
||||
static inline void debug(char *msg)
|
||||
{
|
||||
(void)msg;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* end of DEBUG section */
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
|
Loading…
Reference in a new issue