[RFC] Generic support for qGetTLSAddr packet

Mark Kettenis kettenis@gnu.org
Mon Dec 6 22:51:00 GMT 2004


   Date: Mon, 6 Dec 2004 14:31:09 -0700
   From: Kevin Buettner <kevinb@redhat.com>

Since you asked for comments ;-):

Yikes!  That qGetTLSAddr in the function name is really ugly.

That said, I don't understand why there's any need for the remote code
to get so deep into the core GDB code.  I don't see the big picture
yet, but my initial reaction is that this must be wrong.  Why does the
remote protocol need to know more than a native GDB?

   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.

I don't think this should be added to the "glibal" gdbbarch vector.
Instead, this probably should be architecture-dependent data that's
only known to the remote protocol module.

Mark



More information about the Gdb-patches mailing list