summaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorKevin Buettner <kevinb@redhat.com>2005-02-03 16:11:38 +0000
committerKevin Buettner <kevinb@redhat.com>2005-02-03 16:11:38 +0000
commitc9977b35ade185bdd1981b1b8c5d50b9f7a9f853 (patch)
tree9fa626624bb0ea90b2e300ec7531cdd53c4f5d82 /gdb/doc
parent11a6c11130b40bbd3602852f83b0c0d2403ba2df (diff)
downloadgdb-c9977b35ade185bdd1981b1b8c5d50b9f7a9f853.tar.gz
* gdb.texinfo (General Query Packets): Document qGetTLSAddr packet.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo33
2 files changed, 37 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index b6c2e16b314..70781e0867e 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-03 Kevin Buettner <kevinb@redhat.com>
+
+ * gdb.texinfo (General Query Packets): Document qGetTLSAddr packet.
+
2005-01-17 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo: Fix spelling, infinte -> infinite.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 624fc63f70f..0e93963a251 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21076,6 +21076,39 @@ Requests of this form may be added in the future. When a stub does
not recognize the @var{object} keyword, or its support for
@var{object} does not recognize the @var{operation} keyword,
the stub must respond with an empty packet.
+
+@item @code{qGetTLSAddr}:@var{thread-id},@var{offset},@var{lm} --- get thread local storage address
+
+Fetch the address associated with thread local storage specified
+by @var{thread-id}, @var{offset}, and @var{lm}.
+
+@var{thread-id} is the (big endian, hex encoded) thread id associated with the
+thread for which to fetch the TLS address.
+
+@var{offset} is the (big endian, hex encoded) offset associated with the
+thread local variable. (This offset is obtained from the debug
+information associated with the variable.)
+
+@var{lm} is the (big endian, hex encoded) OS/ABI specific encoding of the
+the load module associated with the thread local storage. For example,
+a @sc{gnu}/Linux system will pass the link map address of the shared
+object associated with the thread local storage under consideration.
+Other operating environments may choose to represent the load module
+differently, so the precise meaning of this parameter will vary.
+
+Reply:
+@table @asis
+@item @var{XX@dots}
+Hex encoded (big endian) bytes representing the address of the thread
+local storage requested.
+
+@item @code{E}@var{nn} (where @var{nn} are hex digits)
+An error occurred.
+
+@item @code{""} (empty)
+An empty reply indicates that @code{qGetTLSAddr} is not supported by the stub.
+@end table
+
@end table
@node Register Packet Format