Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <cagney@gnu.org>
To: Kevin Buettner <kevinb@redhat.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFC] Generic support for qGetTLSAddr packet
Date: Sun, 12 Dec 2004 18:17:00 -0000	[thread overview]
Message-ID: <41BC899D.2050301@gnu.org> (raw)
In-Reply-To: <20041206143109.7e29789f.kevinb@redhat.com>

Kevin Buettner wrote:
> The patch below implements support for the qGetTLSAddr packet.  See:
> 
>     http://sources.redhat.com/ml/gdb/2004-11/msg00189.html
> 
> This patch also adds a new gdbarch method for fetching the OS / ABI
> specific load module parameters.
> 
> Still to come are three patches.  They do the following:
> 
>     - Add documentation of remote_qGetTLSAddr_load_module_params to
>       gdbint.texinfo.
>     - Instantiate remote_qGetTLSAddr_load_module_params for GNU/Linux
>       running on an i386.
>     - Provide an implementation of the qGetTLSAddr packet for
>       gdbserver.

Kevin, check my original comments about the protocol.  I identified what 
you've hit here - having to add extra architecture methods.

inferior.get_thread_local_address should take the raw address (to match 
the packet) and not the objfile parameter.  The thread code can then 
extract the necessary address and call the target vector with it.  Of 
course the linux nat code would also need to be adjusted.

Consider the get_thread_local_address interface change pre-approved.

Andrew

PS: I'd stick with the qGetTLSAddr function name, it's consistent with 
the rest of remote.c where the corresponding packet name has been used, 
and makes tracking down the function much simpler.


      parent reply	other threads:[~2004-12-12 18:13 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-06 21:57 Kevin Buettner
2004-12-06 22:51 ` Mark Kettenis
2004-12-06 23:06   ` Daniel Jacobowitz
2004-12-08  0:24     ` Kevin Buettner
2004-12-08  0:38       ` Kevin Buettner
2004-12-08  1:39         ` Daniel Jacobowitz
2004-12-06 23:46   ` Kevin Buettner
2004-12-12 18:17 ` Andrew Cagney [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=41BC899D.2050301@gnu.org \
    --to=cagney@gnu.org \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox