This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFC] remote.c: Add remote TLS support
- From: "Eli Zaretskii" <eliz at gnu dot org>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 22 Apr 2005 16:12:09 +0300
- Subject: Re: [RFC] remote.c: Add remote TLS support
- References: <20050331162017.0e47552c@ironwood.lan> <20050415130913.50ee721c@ironwood.lan>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 15 Apr 2005 13:09:13 -0700
> From: Kevin Buettner <kevinb@redhat.com>
>
> With that out of the way, I ended up committing the following changes,
> only modified slightly from my earlier posting. (It no longer
> refers to the deprecated function and I removed some unused variables
> that were leftovers from an even earlier version of the work.)
>
> * remote.c (remote_protocol_qGetTLSAddr): New static global variable.
> (set_remote_protocol_qGetTLSAddr_packet_cmd)
> (show_remote_protocol_qGetTLSAddr_packet_cmd)
> (remote_get_thread_local_address): New functions.
> (init_all_packet_configs): Initialize remote_protocol_qGetTLSAddr
> variable.
> (init_remote_ops): Initialize ``to_get_thread_local_address'' in
> target vector.
> (show_remote_cmd): Call show_remote_protocol_qGetTLS_Addr_packet_cmd().
> (_initialize_remote): Register the following commands:
> "set remote get-thread-local-storage-address-packet" and
> "show remote get-thread-local-address-packet".
I added documentation for these 2 new commands, see below.
Committed.
2005-04-22 Eli Zaretskii <eliz@gnu.org>
* gdb.texinfo (Remote configuration): Document "set/show
get-thread-local-storage-address". Add cross-reference to the
description of the qGetTLSAddr packet.
(General Query Packets): Mention "set remote
get-thread-local-storage-address" and add a reference to its
description.
Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.246
retrieving revision 1.247
diff -u -r1.246 -r1.247
--- gdb.texinfo 18 Apr 2005 13:30:11 -0000 1.246
+++ gdb.texinfo 22 Apr 2005 13:09:27 -0000 1.247
@@ -12099,6 +12099,19 @@
@itemx show remote access-watchpoint-packet
@itemx show remote Z-packet
Show the current setting of @samp{Z} packets usage.
+
+@item set remote get-thread-local-storage-address
+@kindex set remote get-thread-local-storage-address
+@cindex thread local storage of remote targets
+This command enables or disables the use of the @samp{qGetTLSAddr}
+(Get Thread Local Storage Address) request packet. The default
+depends on whether the remote stub supports this request.
+@xref{General Query Packets, qGetTLSAddr}, for more details about this
+packet.
+
+@item show remote get-thread-local-storage-address
+@kindex show remote get-thread-local-storage-address
+Show the current setting of @samp{qGetTLSAddr} packet usage.
@end table
@node remote stub
@@ -22771,6 +22784,10 @@
An empty reply indicates that @code{qGetTLSAddr} is not supported by the stub.
@end table
+Use of this request packet is controlled by the @code{set remote
+get-thread-local-storage-address} command (@pxref{Remote
+configuration, set remote get-thread-local-storage-address}).
+
@end table
@node Register Packet Format