2 .\" Copyright (c) 2007, Sun Microsystems, Inc. All Rights Reserved.
3 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License"). You may not use this file except in compliance with the License.
4 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing. See the License for the specific language governing permissions and limitations under the License.
5 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE. If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
6 .TH RTLD_DB 3EXT "Oct 12, 2007"
8 rtld_db, rd_delete, rd_errstr, rd_event_addr, rd_event_enable, rd_event_getmsg,
9 rd_init, rd_loadobj_iter, rd_log, rd_new, rd_objpad_enable, rd_plt_resolution,
10 rd_reset \- runtime linker debugging functions
14 cc [ \fIflag\fR ... ] \fIfile\fR ... \fB-lrtld_db\fR [ \fIlibrary\fR ... ]
15 #include <proc_service.h>
18 \fBvoid\fR \fBrd_delete\fR(\fBstruct rd_agent *\fR\fIrdap\fR);
23 \fBchar *\fR\fBrd_errstr\fR(\fBrd_err_e\fR \fIrderr\fR);
28 \fBrd_err_e\fR \fBrd_event_addr\fR(\fBrd_agent *\fR\fIrdap\fR, \fBrd_notify_t *\fR\fInotify\fR);
33 \fBrd_err_e\fR \fBrd_event_enable\fR(\fBstruct rd_agent *\fR\fIrdap\fR, \fBint\fR \fIonoff\fR);
38 \fBrd_err_e\fR \fBrd_event_getmsg\fR(\fBstruct rd_agent *\fR\fIrdap\fR,
39 \fBrd_event_msg_t *\fR\fImsg\fR);
44 \fBrd_err_e\fR \fBrd_init\fR(\fBint\fR \fIversion\fR);
49 \fBtypedef int\fR \fBrl_iter_f\fR(\fBconst rd_loadobj_t *,\fR void *);
54 \fBrd_err_e\fR \fBrd_loadobj_iter\fR(\fBrd_agent_t *\fR\fIrap\fR, \fBrl_iter_f *\fR\fIcb\fR,
55 \fBvoid *\fR\fIclnt_data\fR);
60 \fBvoid\fR \fBrd_log\fR(\fBconst int\fR \fIonoff\fR);
65 \fBrd_agent_t *\fR\fBrd_new\fR(\fBstruct ps_prochandle *\fR\fIphp\fR);
70 \fBrd_err_e\fR \fBrd_objpad_enable\fR(\fBstruct rd_agent *\fR\fIrdap\fR, \fBsize_t\fR \fIpadsize\fR);
75 \fBrd_err_e\fR \fBrd_plt_resolution\fR(\fBrd_agent *\fR\fIrdap\fR, \fBpaddr_t\fR \fIpc\fR,
76 \fBlwpid_t\fR \fIlwpid\fR, \fBpaddr_t\fR \fIplt_base\fR, \fBrd_plt_info_t *\fR\fIrpi\fR);
81 \fBrd_err_e\fR \fBrd_reset\fR(\fBstruct rd_agent *\fR\fIrdap\fR);
87 The \fBlibrtld_db\fR library provides support for monitoring and manipulating
88 runtime linking aspects of a program. There are at least two processes
89 involved, the controlling process and one or more target processes. The
90 controlling process is the \fBlibrtld_db\fR client that links with
91 \fBlibrtld_db\fR and uses \fBlibrtld_db\fR to inspect or modify runtime linking
92 aspects of one or more target processes. See the \fILinker and Libraries
93 Guide\fR for a full description of the runtime linker debugger interface
98 To use \fBlibrtld_db\fR, applications need to implement the interfaces
99 documented in \fBps_pread\fR(3PROC) and \fBproc_service\fR(3PROC).
103 See \fBattributes\fR(5) for description of the following attributes:
111 ATTRIBUTE TYPE ATTRIBUTE VALUE
113 Interface Stability Committed
121 \fBld.so.1\fR(1), \fBlibc_db\fR(3LIB), \fBlibrtld_db\fR(3LIB),
122 \fBproc_service\fR(3PROC), \fBps_pread\fR(3PROC), \fBattributes\fR(5)
125 \fILinker and Libraries Guide\fR