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