4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License (the "License").
6 * You may not use this file except in compliance with the License.
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://www.opensolaris.org/os/licensing.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
23 * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
24 * Use is subject to license terms.
31 Dbg_support_req(Lm_list
*lml
, const char *define
, int flag
)
35 if (DBG_NOTCLASS(DBG_C_SUPPORT
))
40 str
= MSG_INTL(MSG_SUP_REQ_ENV
);
43 str
= MSG_INTL(MSG_SUP_REQ_CMD
);
46 str
= MSG_ORIG(MSG_STR_EMPTY
);
50 dbg_print(lml
, MSG_ORIG(MSG_STR_EMPTY
));
51 dbg_print(lml
, MSG_INTL(MSG_SUP_REQ
), define
, str
);
55 Dbg_support_load(Lm_list
*lml
, const char *obj
, const char *func
)
57 if (DBG_NOTCLASS(DBG_C_SUPPORT
))
60 dbg_print(lml
, MSG_INTL(MSG_SUP_ROUTINE
), obj
, func
);
64 Dbg_support_vnone(Lm_list
*lml
, const char *obj
)
66 if (DBG_NOTCLASS(DBG_C_SUPPORT
))
69 dbg_print(lml
, MSG_INTL(MSG_SUP_VNONE
), obj
);
73 Dbg_support_action(Lm_list
*lml
, const char *obj
, const char *func
,
74 Support_ndx ndx
, const char *name
)
78 if (DBG_NOTCLASS(DBG_C_SUPPORT
))
84 str
= MSG_INTL(MSG_SUP_OUTFILE
);
85 else if ((ndx
== LDS_OPEN
) || (ndx
== LDS_FILE
))
86 str
= MSG_INTL(MSG_SUP_INFILE
);
87 else if (ndx
== LDS_INSEC
)
88 str
= MSG_INTL(MSG_SUP_INSEC
);
89 else if (ndx
== LDS_SEC
)
90 str
= MSG_INTL(MSG_SUP_SEC
);
92 if ((ndx
== LDS_ATEXIT
) || (ndx
== LDS_VERSION
) ||
93 (ndx
== LDS_INPUT_DONE
))
94 dbg_print(lml
, MSG_INTL(MSG_SUP_CALLING_1
), func
, obj
);
96 dbg_print(lml
, MSG_INTL(MSG_SUP_CALLING_2
), func
, obj
,