Red Hat ENTERPRISE LINUX 3 - DEBUGGING WITH GDB Manual page 342

Debugging with gdb
Hide thumbs Also See for ENTERPRISE LINUX 3 - DEBUGGING WITH GDB:
Table of Contents

Advertisement

332
Reply:
mid
A single thread id
,
...
mid
id
a comma-separated list of thread ids
l
(lower case 'el') denotes end of list.
In response to each query, the target will reply with a list of one or more thread ids, in big-endian
hex, separated by commas. gdb will respond to each reply with a request for more thread ids
(using the
form of the query), until the target responds with
qs
qThreadExtraInfo,id
Where
is a thread-id in big-endian hex. Obtain a printable string description of a thread's
id
attributes from the target OS. This string may contain anything that the target OS thinks is inter-
esting for gdb to tell the user about the thread. The string is displayed in gdb's
display. Some examples of possible thread extra info strings are "Runnable", or "Blocked on
Mutex".
Reply:
XX...
Where
XX...
extra information about the thread's attributes.
qLstartflagthreadcountnextthread
Obtain thread information from RTOS. Where:
first query and zero to indicate a subsequent query;
imum number of threads the response packet can contain; and
for subsequent queries (
NOTE: this query is replaced by the
Reply:
qMcountdoneargthreadthread...
Where:
count
hex digit) is zero to indicate more threads and one indicates no further threads;
argthreadid
is a sequence of thread IDs from the target.
remote.c:parse_threadlist_response()
qCRC:addr,length
Reply:
ENN
An error (such as memory fault)
-- extra thread info
is a hex encoding of ascii data, comprising the printable string containing the
is zero), is returned in the response as
startflag
qfThreadInfo
(two hex digits) is the number of threads being returned;
(eight hex digits) is
-- compute CRC of memory block
Appendix D. gdb Remote Serial Protocol
-- query
or
LIST
threadLIST
startflag
threadcount
query (see above).
from the request packet;
nextthread
threadid
.
(lower-case el, for
l
info threads
(deprecated)
(one hex digit) is one to indicate the
(two hex digits) is the max-
(eight hex digits),
nextthread
argthread
(eight hex digits). See
).
'last'
.
(one
done
thread...

Advertisement

Table of Contents
loading

Table of Contents