equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * CDDL HEADER START |
2 * CDDL HEADER START |
3 * |
3 * |
4 * The contents of this file are subject to the terms of the |
4 * The contents of this file are subject to the terms of the |
5 * Common Development and Distribution License, Version 1.0 only |
5 * Common Development and Distribution License (the "License"). |
6 * (the "License"). You may not use this file except in compliance |
6 * You may not use this file except in compliance with the License. |
7 * with the License. |
|
8 * |
7 * |
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE |
10 * or http://www.opensolaris.org/os/licensing. |
9 * or http://www.opensolaris.org/os/licensing. |
11 * See the License for the specific language governing permissions |
10 * See the License for the specific language governing permissions |
12 * and limitations under the License. |
11 * and limitations under the License. |
18 * information: Portions Copyright [yyyy] [name of copyright owner] |
17 * information: Portions Copyright [yyyy] [name of copyright owner] |
19 * |
18 * |
20 * CDDL HEADER END |
19 * CDDL HEADER END |
21 */ |
20 */ |
22 /* |
21 /* |
23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. |
22 * Copyright 2006 Sun Microsystems, Inc. All rights reserved. |
24 * Use is subject to license terms. |
23 * Use is subject to license terms. |
25 */ |
24 */ |
26 |
25 |
27 #ifndef _MDB_TARGET_IMPL_H |
26 #ifndef _MDB_TARGET_IMPL_H |
28 #define _MDB_TARGET_IMPL_H |
27 #define _MDB_TARGET_IMPL_H |
31 |
30 |
32 #include <mdb/mdb_target.h> |
31 #include <mdb/mdb_target.h> |
33 #include <mdb/mdb_module.h> |
32 #include <mdb/mdb_module.h> |
34 #include <mdb/mdb_list.h> |
33 #include <mdb/mdb_list.h> |
35 #include <mdb/mdb_gelf.h> |
34 #include <mdb/mdb_gelf.h> |
|
35 #include <sys/auxv.h> |
36 |
36 |
37 #ifdef __cplusplus |
37 #ifdef __cplusplus |
38 extern "C" { |
38 extern "C" { |
39 #endif |
39 #endif |
40 |
40 |
131 mdb_tgt_reg_t); |
131 mdb_tgt_reg_t); |
132 |
132 |
133 int (*t_stack_iter)(mdb_tgt_t *, const mdb_tgt_gregset_t *, |
133 int (*t_stack_iter)(mdb_tgt_t *, const mdb_tgt_gregset_t *, |
134 mdb_tgt_stack_f *, void *); |
134 mdb_tgt_stack_f *, void *); |
135 |
135 |
|
136 int (*t_auxv)(mdb_tgt_t *, const auxv_t **auxvp); |
136 } mdb_tgt_ops_t; |
137 } mdb_tgt_ops_t; |
137 |
138 |
138 /* |
139 /* |
139 * Software Event Specifiers |
140 * Software Event Specifiers |
140 * |
141 * |
322 extern int mdb_tgt_vespec_insert(mdb_tgt_t *, const mdb_se_ops_t *, |
323 extern int mdb_tgt_vespec_insert(mdb_tgt_t *, const mdb_se_ops_t *, |
323 int, mdb_tgt_se_f *, void *, void *, void (*)(mdb_vespec_t *)); |
324 int, mdb_tgt_se_f *, void *, void *, void (*)(mdb_vespec_t *)); |
324 |
325 |
325 extern mdb_vespec_t *mdb_tgt_vespec_lookup(mdb_tgt_t *, int); |
326 extern mdb_vespec_t *mdb_tgt_vespec_lookup(mdb_tgt_t *, int); |
326 |
327 |
|
328 extern int mdb_tgt_auxv(mdb_tgt_t *, const auxv_t **); |
|
329 |
327 extern void mdb_tgt_vespec_hold(mdb_tgt_t *, mdb_vespec_t *); |
330 extern void mdb_tgt_vespec_hold(mdb_tgt_t *, mdb_vespec_t *); |
328 extern void mdb_tgt_vespec_rele(mdb_tgt_t *, mdb_vespec_t *); |
331 extern void mdb_tgt_vespec_rele(mdb_tgt_t *, mdb_vespec_t *); |
329 |
332 |
330 /* |
333 /* |
331 * Utility function that target implementations can use to register dcmds, |
334 * Utility function that target implementations can use to register dcmds, |