diff options
author | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2016-06-21 21:43:24 -0700 |
---|---|---|
committer | Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com> | 2016-06-22 17:39:43 +0000 |
commit | b4bbc71369e924190dc0b0f55af935d6a94a228f (patch) | |
tree | 1bbd2197baf3b3a35e99cfdc53ec2c27229ce459 /misc | |
parent | fbffa2a12f4ce6bcf24123242f471261fdb11b55 (diff) |
gdb_server: fix semicolon that depends on #define
supported_features_cmd is a string which part of is added based on a
However, the semicolon to do so was being only included if the #define
was there; if not it was generating a syntax error. Place it out of
the #ifdef block.
Change-Id: Idd7e80519719b5ad432971e758a05546df8a89e2
Signed-off-by: Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/debug/gdb_server.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/misc/debug/gdb_server.c b/misc/debug/gdb_server.c index 9b99f9bd5..096bee00d 100644 --- a/misc/debug/gdb_server.c +++ b/misc/debug/gdb_server.c @@ -1394,8 +1394,9 @@ static unsigned char *handle_xml_query(unsigned char *packet) static const char *supported_features_cmd = "PacketSize=%x;qXfer:features:read+;QStartNoAckMode+" #ifdef GDB_ARCH_HAS_REMOTE_SERIAL_EXT_USING_NOTIF_PACKETS - ";" CONFIG_GDB_REMOTE_SERIAL_EXT_NOTIF_PREFIX_STR "+"; + ";" CONFIG_GDB_REMOTE_SERIAL_EXT_NOTIF_PREFIX_STR "+" #endif + ; static unsigned char *handle_general_query(unsigned char *packet) { |