This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Generic support for qGetTLSAddr packet


On Mon, Dec 06, 2004 at 11:37:18PM +0100, Mark Kettenis wrote:
> 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?

Because shared libraries are handled by GDB, and not by gdbserver. 
Take a look at thread_db_get_thread_local_address; there's a call
to svr4_fetch_objfile_link_map in it, which gdbserver can't do
(unless we were to add ELF header support to it... yuck).

That said, I wonder if this query should be handled uniquely by
remote.c, or by GNU/Linux specific code using an xfer-partial
mechanism.  I haven't thought about the details yet.

-- 
Daniel Jacobowitz


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]