int rtos_qsymbol(struct connection *connection, char *packet, int packet_size)
{
int rtos_detected = 0;
- uint64_t addr;
+ uint64_t addr = 0;
size_t reply_len;
char reply[GDB_BUFFER_SIZE], cur_sym[GDB_BUFFER_SIZE / 2] = "", *next_sym;
struct target *target = get_target_from_connection(connection);
goto done;
} else {
/* Autodetecting RTOS - try next RTOS */
- if (!rtos_try_next(target))
+ if (!rtos_try_next(target)) {
+ LOG_WARNING("No RTOS could be auto-detected!");
goto done;
+ }
/* Next RTOS selected - invalidate current symbol */
cur_sym[0] = '\x00';