1*2017c965SRod Evans /*
2*2017c965SRod Evans * CDDL HEADER START
3*2017c965SRod Evans *
4*2017c965SRod Evans * The contents of this file are subject to the terms of the
5*2017c965SRod Evans * Common Development and Distribution License (the "License").
6*2017c965SRod Evans * You may not use this file except in compliance with the License.
7*2017c965SRod Evans *
8*2017c965SRod Evans * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9*2017c965SRod Evans * or http://www.opensolaris.org/os/licensing.
10*2017c965SRod Evans * See the License for the specific language governing permissions
11*2017c965SRod Evans * and limitations under the License.
12*2017c965SRod Evans *
13*2017c965SRod Evans * When distributing Covered Code, include this CDDL HEADER in each
14*2017c965SRod Evans * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15*2017c965SRod Evans * If applicable, add the following below this CDDL HEADER, with the
16*2017c965SRod Evans * fields enclosed by brackets "[]" replaced with your own identifying
17*2017c965SRod Evans * information: Portions Copyright [yyyy] [name of copyright owner]
18*2017c965SRod Evans *
19*2017c965SRod Evans * CDDL HEADER END
20*2017c965SRod Evans */
21*2017c965SRod Evans
22*2017c965SRod Evans /*
23*2017c965SRod Evans * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24*2017c965SRod Evans * Use is subject to license terms.
25*2017c965SRod Evans */
26*2017c965SRod Evans
27*2017c965SRod Evans #include <debug.h>
28*2017c965SRod Evans #include "_debug.h"
29*2017c965SRod Evans #include "msg.h"
30*2017c965SRod Evans
31*2017c965SRod Evans /*
32*2017c965SRod Evans * This file contains a number of simple title interfaces, that give a basic
33*2017c965SRod Evans * trace of a link-edit. These interfaces cross several functional boundaries,
34*2017c965SRod Evans * but are consolidated here to ensure consistent use of the DBG_C_BASIC and
35*2017c965SRod Evans * DBG_NOTTIME macros.
36*2017c965SRod Evans */
37*2017c965SRod Evans void
Dbg_basic_collect(Lm_list * lml)38*2017c965SRod Evans Dbg_basic_collect(Lm_list *lml)
39*2017c965SRod Evans {
40*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
41*2017c965SRod Evans return;
42*2017c965SRod Evans
43*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
44*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_COLLECT));
45*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
46*2017c965SRod Evans }
47*2017c965SRod Evans
48*2017c965SRod Evans void
Dbg_basic_create(Lm_list * lml)49*2017c965SRod Evans Dbg_basic_create(Lm_list *lml)
50*2017c965SRod Evans {
51*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
52*2017c965SRod Evans return;
53*2017c965SRod Evans
54*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
55*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_CREATE));
56*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
57*2017c965SRod Evans }
58*2017c965SRod Evans
59*2017c965SRod Evans void
Dbg_basic_files(Lm_list * lml)60*2017c965SRod Evans Dbg_basic_files(Lm_list *lml)
61*2017c965SRod Evans {
62*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
63*2017c965SRod Evans return;
64*2017c965SRod Evans
65*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
66*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_FILES));
67*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
68*2017c965SRod Evans }
69*2017c965SRod Evans void
Dbg_basic_finish(Lm_list * lml)70*2017c965SRod Evans Dbg_basic_finish(Lm_list *lml)
71*2017c965SRod Evans {
72*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
73*2017c965SRod Evans return;
74*2017c965SRod Evans
75*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
76*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_FINISHED));
77*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
78*2017c965SRod Evans }
79*2017c965SRod Evans
80*2017c965SRod Evans void
Dbg_basic_options(Lm_list * lml)81*2017c965SRod Evans Dbg_basic_options(Lm_list *lml)
82*2017c965SRod Evans {
83*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
84*2017c965SRod Evans return;
85*2017c965SRod Evans
86*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
87*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_OPTIONS));
88*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
89*2017c965SRod Evans }
90*2017c965SRod Evans
91*2017c965SRod Evans void
Dbg_basic_relocate(Lm_list * lml)92*2017c965SRod Evans Dbg_basic_relocate(Lm_list *lml)
93*2017c965SRod Evans {
94*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
95*2017c965SRod Evans return;
96*2017c965SRod Evans
97*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
98*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_RELOCATE));
99*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
100*2017c965SRod Evans }
101*2017c965SRod Evans
102*2017c965SRod Evans void
Dbg_basic_validate(Lm_list * lml)103*2017c965SRod Evans Dbg_basic_validate(Lm_list *lml)
104*2017c965SRod Evans {
105*2017c965SRod Evans if (DBG_NOTCLASS(DBG_C_BASIC) && DBG_NOTTIME())
106*2017c965SRod Evans return;
107*2017c965SRod Evans
108*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
109*2017c965SRod Evans dbg_print(lml, MSG_INTL(MSG_BASIC_VALIDATE));
110*2017c965SRod Evans Dbg_util_nl(lml, DBG_NL_STD);
111*2017c965SRod Evans }
112