From fa27649f874827f2b564a66b3b2f729bc71a1868 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Tue, 20 Aug 2019 12:28:36 +0200 Subject: [PATCH] Remove debug_bmp command on PC hosted platforms. --- src/command.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/command.c b/src/command.c index ff7bce9..f5d385c 100644 --- a/src/command.c +++ b/src/command.c @@ -59,7 +59,7 @@ static bool cmd_target_power(target *t, int argc, const char **argv); #ifdef PLATFORM_HAS_TRACESWO static bool cmd_traceswo(target *t, int argc, const char **argv); #endif -#ifdef PLATFORM_HAS_DEBUG +#if defined(PLATFORM_HAS_DEBUG) && !defined(PC_HOSTED) static bool cmd_debug_bmp(target *t, int argc, const char **argv); #endif @@ -79,7 +79,7 @@ const struct command_s cmd_list[] = { #ifdef PLATFORM_HAS_TRACESWO {"traceswo", (cmd_handler)cmd_traceswo, "Start trace capture [(baudrate) for async swo]" }, #endif -#ifdef PLATFORM_HAS_DEBUG +#if defined(PLATFORM_HAS_DEBUG) && !defined(PC_HOSTED) {"debug_bmp", (cmd_handler)cmd_debug_bmp, "Output BMP \"debug\" strings to the second vcom: (enable|disable)"}, #endif {NULL, NULL, NULL} @@ -344,7 +344,7 @@ static bool cmd_traceswo(target *t, int argc, const char **argv) } #endif -#ifdef PLATFORM_HAS_DEBUG +#if defined(PLATFORM_HAS_DEBUG) && !defined(PC_HOSTED) static bool cmd_debug_bmp(target *t, int argc, const char **argv) { (void)t;