mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* remote.c (remote_get_threadlist): If the response
is empty, don't try to parse it.
This commit is contained in:
@ -1740,9 +1740,12 @@ remote_get_threadlist (int startflag, threadref *nextthread, int result_limit,
|
||||
putpkt (rs->buf);
|
||||
getpkt (&rs->buf, &rs->buf_size, 0);
|
||||
|
||||
*result_count =
|
||||
parse_threadlist_response (rs->buf + 2, result_limit, &echo_nextthread,
|
||||
threadlist, done);
|
||||
if (*rs->buf == '\0')
|
||||
*result_count = 0;
|
||||
else
|
||||
*result_count =
|
||||
parse_threadlist_response (rs->buf + 2, result_limit, &echo_nextthread,
|
||||
threadlist, done);
|
||||
|
||||
if (!threadmatch (&echo_nextthread, nextthread))
|
||||
{
|
||||
|
Reference in New Issue
Block a user