From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25411 invoked by alias); 22 Apr 2005 13:14:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 24686 invoked from network); 22 Apr 2005 13:14:21 -0000 Received: from unknown (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org with SMTP; 22 Apr 2005 13:14:21 -0000 Received: from zaretski (IGLD-80-230-73-48.inter.net.il [80.230.73.48]) by romy.inter.net.il (MOS 3.5.6-GR) with ESMTP id BBB55203 (AUTH halo1); Fri, 22 Apr 2005 16:13:25 +0300 (IDT) Date: Fri, 22 Apr 2005 13:14:00 -0000 From: "Eli Zaretskii" To: Kevin Buettner Message-ID: <01c5473d$Blat.v2.4$09af7cc0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: gdb-patches@sources.redhat.com In-reply-to: <20050415130913.50ee721c@ironwood.lan> (message from Kevin Buettner on Fri, 15 Apr 2005 13:09:13 -0700) Subject: Re: [RFC] remote.c: Add remote TLS support Reply-to: Eli Zaretskii References: <20050331162017.0e47552c@ironwood.lan> <20050415130913.50ee721c@ironwood.lan> X-SW-Source: 2005-04/txt/msg00278.txt.bz2 > Date: Fri, 15 Apr 2005 13:09:13 -0700 > From: Kevin Buettner > > 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 * 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