From 8dfcab11cdc75d128bef59355b561760f5f59146 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Sat, 17 May 2014 10:29:57 +0300 Subject: [PATCH] Improve docs of qfThreadInfo packet. gdb/doc/gdb.texinfo (General Query Packets): Add a note about thread IDs mentioned in the qfThreadInfo reply. --- gdb/doc/ChangeLog | 5 +++++ gdb/doc/gdb.texinfo | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index f3ccebac361..5adb06f7744 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2014-05-17 David Taylor + + * gdb.texinfo (General Query Packets): Add a note about thread IDs + mentioned in the qfThreadInfo reply. + 2014-05-16 Doug Evans * gdb.texinfo (Mode Options): Add -D. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 49a060261f0..a6bde127cc3 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -34806,6 +34806,12 @@ with @samp{l} (lower-case ell, for @dfn{last}). Refer to @ref{thread-id syntax}, for the format of the @var{thread-id} fields. +@emph{Note: @value{GDBN} will send the @code{qfThreadInfo} query during the +initial connection with the remote target, and the very first thread ID +mentioned in the reply will be stopped by @value{GDBN} in a subsequent +message. Therefore, the stub should ensure that the first thread ID in +the @code{qfThreadInfo} reply is suitable for being stopped by @value{GDBN}.} + @item qGetTLSAddr:@var{thread-id},@var{offset},@var{lm} @cindex get thread-local storage address, remote request @cindex @samp{qGetTLSAddr} packet -- 2.30.2