This is the mail archive of the gdb-patches@sourceware.org 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]

[RFA 4/4 take 2] Improved linker-debugger interface


Hi all,

This patch implementes the probes-based runtime linker interface, with
incremental library list loading and multiple namespace support.

 - On inferior startup, GDB searches the dynamic linker for a number
   of named probes.

 - If all probes are found, GDB sets a breakpoint on each one.
   Otherwise, the standard function _dl_debug_state is used.

 - When using probes, a per-pspace hashtable is maintained of all
   libraries currently loaded by the inferior.  It's updated as
   necessary every time a solib event stop occurs.

 - When using probes, svr4_current_sos will generate its result
   from the hashtable (rather than reading the entire list from
   the inferior).

 - If any error occurs, GDB will print a warning and revert to
   the standard interface.

Thanks,
Gary

-- 
http://gbenson.net/

Attachment: rtld-stap-6.patch
Description: Text document


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