17c478bd9Sstevel@tonic-gate# 27c478bd9Sstevel@tonic-gate# CDDL HEADER START 37c478bd9Sstevel@tonic-gate# 47c478bd9Sstevel@tonic-gate# The contents of this file are subject to the terms of the 5*10a4fa49Srie# Common Development and Distribution License (the "License"). 6*10a4fa49Srie# You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate# 87c478bd9Sstevel@tonic-gate# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate# or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate# See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate# and limitations under the License. 127c478bd9Sstevel@tonic-gate# 137c478bd9Sstevel@tonic-gate# When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate# If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate# fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate# information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate# 197c478bd9Sstevel@tonic-gate# CDDL HEADER END 207c478bd9Sstevel@tonic-gate# 21*10a4fa49Srie 22*10a4fa49Srie# 23*10a4fa49Srie# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 24*10a4fa49Srie# Use is subject to license terms. 25*10a4fa49Srie# 267c478bd9Sstevel@tonic-gate# pragma ident "%Z%%M% %I% %E% SMI" 277c478bd9Sstevel@tonic-gate# 287c478bd9Sstevel@tonic-gate 297c478bd9Sstevel@tonic-gate@ _START_ 307c478bd9Sstevel@tonic-gate 317c478bd9Sstevel@tonic-gate@ _END_ 327c478bd9Sstevel@tonic-gate 337c478bd9Sstevel@tonic-gate# 347c478bd9Sstevel@tonic-gate# Misc. Strings 357c478bd9Sstevel@tonic-gate# 367c478bd9Sstevel@tonic-gate@ MSG_STR_NAME "NAME" 377c478bd9Sstevel@tonic-gate@ MSG_STR_PATHNAME "PATHNAME" 387c478bd9Sstevel@tonic-gate@ MSG_STR_REFNAME "REFNAME" 397c478bd9Sstevel@tonic-gate@ MSG_STR_RPATH "RPATH" 407c478bd9Sstevel@tonic-gate@ MSG_STR_DASHES "----------------------------------------------\n" 417c478bd9Sstevel@tonic-gate@ MSG_STR_LDSO1 "ld.so.1" 427c478bd9Sstevel@tonic-gate@ MSG_STR_DYNLMLIST "dynlm_list" 437c478bd9Sstevel@tonic-gate@ MSG_STR_ALIST "Alist" 447c478bd9Sstevel@tonic-gate@ MSG_STR_LISTNODE "Listnode" 457c478bd9Sstevel@tonic-gate@ MSG_STR_EMPTY "" 467c478bd9Sstevel@tonic-gate@ MSG_STR_ORPHANED "<orphaned>" 477c478bd9Sstevel@tonic-gate@ MSG_STR_SETENV "setenv" 487c478bd9Sstevel@tonic-gate 497c478bd9Sstevel@tonic-gate# 507c478bd9Sstevel@tonic-gate# mdb_dcmd_t.dc_usage's 517c478bd9Sstevel@tonic-gate# 527c478bd9Sstevel@tonic-gate@ MSG_USG_ADDREQ ":" # Address required 537c478bd9Sstevel@tonic-gate@ MSG_USG_ADDREQ_V ":[-v]" # Address required plus -v 547c478bd9Sstevel@tonic-gate@ MSG_USG_ADDOPT_V "?[-v]" # Address optional plus -v 557c478bd9Sstevel@tonic-gate@ MSG_USG_SETENV "name[=value]" # Setenv argument 567c478bd9Sstevel@tonic-gate 577c478bd9Sstevel@tonic-gate# 587c478bd9Sstevel@tonic-gate# mdb_walker.walk_descr's 597c478bd9Sstevel@tonic-gate# 607c478bd9Sstevel@tonic-gate@ MSG_WWD_RTMAP "Walk a List of Rt_maps" 617c478bd9Sstevel@tonic-gate@ MSG_WWD_LIST "Walk a List" 627c478bd9Sstevel@tonic-gate 637c478bd9Sstevel@tonic-gate# 647c478bd9Sstevel@tonic-gate# Flag Strings 657c478bd9Sstevel@tonic-gate# 667c478bd9Sstevel@tonic-gate@ MSG_FLG_ISMAIN "ISMAIN" 677c478bd9Sstevel@tonic-gate@ MSG_FLG_IMGALLOC "IMGALLOC" 687c478bd9Sstevel@tonic-gate@ MSG_FLG_RELOCED "RELOCED" 697c478bd9Sstevel@tonic-gate@ MSG_FLG_SETGROUP "SETGROUP" 707c478bd9Sstevel@tonic-gate@ MSG_FLG_HWCAP "HWCAP" 717c478bd9Sstevel@tonic-gate@ MSG_FLG_OBJECT "OBJECT" 727c478bd9Sstevel@tonic-gate@ MSG_FLG_NODUMP "NODUMP" 737c478bd9Sstevel@tonic-gate@ MSG_FLG_DELETE "DELETE" 747c478bd9Sstevel@tonic-gate@ MSG_FLG_ANALYZED "ANALYZED" 757c478bd9Sstevel@tonic-gate@ MSG_FLG_INITDONE "INITDONE" 767c478bd9Sstevel@tonic-gate@ MSG_FLG_TRANS "TRANS" 777c478bd9Sstevel@tonic-gate@ MSG_FLG_FIXED "FIXED" 787c478bd9Sstevel@tonic-gate@ MSG_FLG_PRELOAD "PRELOAD" 797c478bd9Sstevel@tonic-gate@ MSG_FLG_ALTER "ALTER" 807c478bd9Sstevel@tonic-gate@ MSG_FLG_LOADFLTR "LOADFLTR" 817c478bd9Sstevel@tonic-gate@ MSG_FLG_AUDIT "AUDIT" 827c478bd9Sstevel@tonic-gate@ MSG_FLG_MODESET "MODESET" 837c478bd9Sstevel@tonic-gate@ MSG_FLG_ANALZING "ANALYZING" 847c478bd9Sstevel@tonic-gate@ MSG_FLG_INITFRST "INITFRST" 857c478bd9Sstevel@tonic-gate@ MSG_FLG_NOOPEN "NOOPEN" 867c478bd9Sstevel@tonic-gate@ MSG_FLG_FINICLCT "FINICLCT" 877c478bd9Sstevel@tonic-gate@ MSG_FLG_INITCALL "INITCALL" 887c478bd9Sstevel@tonic-gate@ MSG_FLG_INTRPOSE "INTRPOSE" 897c478bd9Sstevel@tonic-gate@ MSG_FLG_DIRECT "DIRECT" 907c478bd9Sstevel@tonic-gate@ MSG_FLG_SUNWBSS "SUNWBSS" 917c478bd9Sstevel@tonic-gate@ MSG_FLG_MOVE "MOVE" 927c478bd9Sstevel@tonic-gate@ MSG_FLG_DLSYM "DLSYM" 937c478bd9Sstevel@tonic-gate@ MSG_FLG_REGSYMS "REGSYMS" 947c478bd9Sstevel@tonic-gate@ MSG_FLG_INITCLCT "INITCLCT" 957c478bd9Sstevel@tonic-gate@ MSG_FLG_HANDLE "HANDLE" 967c478bd9Sstevel@tonic-gate@ MSG_FLG_RELOCING "RELOCATING" 977c478bd9Sstevel@tonic-gate 987c478bd9Sstevel@tonic-gate@ MSG_FL1_COPYTOOK "COPYTOOK" 997c478bd9Sstevel@tonic-gate@ MSG_FL1_RELATIVE "RELATIVE" 1007c478bd9Sstevel@tonic-gate@ MSG_FL1_CONFSET "CONFSET" 1017c478bd9Sstevel@tonic-gate@ MSG_FL1_NODEFLIB "NODEFLIB" 1027c478bd9Sstevel@tonic-gate@ MSG_FL1_ENDFILTE "ENDFILTE" 1037c478bd9Sstevel@tonic-gate@ MSG_FL1_DISPREL "DISPREL" 1047c478bd9Sstevel@tonic-gate@ MSG_FL1_TEXTREL "TEXTREL" 1057c478bd9Sstevel@tonic-gate@ MSG_FL1_INITWAIT "INITWAIT" 1067c478bd9Sstevel@tonic-gate@ MSG_FL1_LDDSTUB "LDDSTUB" 1077c478bd9Sstevel@tonic-gate@ MSG_FL1_NOINIFIN "NOINITFINI" 1087c478bd9Sstevel@tonic-gate@ MSG_FL1_USED "USED" 1097c478bd9Sstevel@tonic-gate@ MSG_FL1_SYMBOLIC "SYMBOLIC" 1107c478bd9Sstevel@tonic-gate@ MSG_FL1_OBJSFLTR "OBJSFLTR" 1117c478bd9Sstevel@tonic-gate@ MSG_FL1_OBJAFLTR "OBJAFLTR" 1127c478bd9Sstevel@tonic-gate@ MSG_FL1_SYMSFLTR "SYMSFLTR" 1137c478bd9Sstevel@tonic-gate@ MSG_FL1_SYMAFLTR "SYMAFLTR" 1147c478bd9Sstevel@tonic-gate 1157c478bd9Sstevel@tonic-gate@ MSG_MODE_LAZY "LAZY" 1167c478bd9Sstevel@tonic-gate@ MSG_MODE_NOW "NOW" 1177c478bd9Sstevel@tonic-gate@ MSG_MODE_NOLOAD "NOLOAD" 1187c478bd9Sstevel@tonic-gate@ MSG_MODE_GLOBAL "GLOBAL" 1197c478bd9Sstevel@tonic-gate@ MSG_MODE_PARENT "PARENT" 1207c478bd9Sstevel@tonic-gate@ MSG_MODE_GROUP "GROUP" 1217c478bd9Sstevel@tonic-gate@ MSG_MODE_WORLD "WORLD" 1227c478bd9Sstevel@tonic-gate@ MSG_MODE_NODELETE "NODELETE" 1237c478bd9Sstevel@tonic-gate@ MSG_MODE_FIRST "FIRST" 1247c478bd9Sstevel@tonic-gate@ MSG_MODE_CONFGEN "CONFGEN" 1257c478bd9Sstevel@tonic-gate 1267c478bd9Sstevel@tonic-gate@ MSG_BFL_NEEDED "NEEDED" 1277c478bd9Sstevel@tonic-gate@ MSG_BFL_REFER "REFERENCED" 128dffec89cSrie@ MSG_BFL_FILTER "FILTER" 1297c478bd9Sstevel@tonic-gate 1307c478bd9Sstevel@tonic-gate@ MSG_GPH_ZERO "ZERO" 1317c478bd9Sstevel@tonic-gate@ MSG_GPH_LDSO "LD.SO.1" 1327c478bd9Sstevel@tonic-gate@ MSG_GPH_FIRST "FIRST-ONLY" 1337c478bd9Sstevel@tonic-gate@ MSG_GPH_PARENT "PARENT-REQUIRED" 1347c478bd9Sstevel@tonic-gate@ MSG_GPH_FILTEE "FILTEE" 1357c478bd9Sstevel@tonic-gate@ MSG_GPH_INITIAL "INITIALIZED" 1367c478bd9Sstevel@tonic-gate@ MSG_GPH_STICKY "STICKY" 1377c478bd9Sstevel@tonic-gate 1387c478bd9Sstevel@tonic-gate@ MSG_GPD_AVAIL "AVAIL-TO-DLSYM" 1397c478bd9Sstevel@tonic-gate@ MSG_GPD_ADDEPS "ADD-DEPENDENCIES" 1407c478bd9Sstevel@tonic-gate@ MSG_GPD_PARENT "PARENT" 1417c478bd9Sstevel@tonic-gate@ MSG_GPD_FILTER "FILTER" 1427c478bd9Sstevel@tonic-gate@ MSG_GPD_REMOVE "REMOVAL-CANDIDATE" 1437c478bd9Sstevel@tonic-gate 1447c478bd9Sstevel@tonic-gate@ MSG_LFL_BASELM "BASELM" 1457c478bd9Sstevel@tonic-gate@ MSG_LFL_RTLDLM "RTLDLM" 1467c478bd9Sstevel@tonic-gate@ MSG_LFL_NOAUDIT "NOAUDIT" 1477c478bd9Sstevel@tonic-gate@ MSG_LFL_PLTREL "PLTREL" 1487c478bd9Sstevel@tonic-gate@ MSG_LFL_HOLDLOCK "HOLDLOCK" 1497c478bd9Sstevel@tonic-gate@ MSG_LFL_ENVIRON "ENVIRON" 1507c478bd9Sstevel@tonic-gate@ MSG_LFL_INTRPOSE "INTRPOSE" 1517c478bd9Sstevel@tonic-gate@ MSG_LFL_LOCAUDIT "LOCAUDIT" 1527c478bd9Sstevel@tonic-gate@ MSG_LFL_LOADAVAIL "LOADAVAIL" 1537c478bd9Sstevel@tonic-gate@ MSG_LFL_IGNRELERR "IGNRELERR" 1547c478bd9Sstevel@tonic-gate@ MSG_LFL_DBNOTIF "DBNOTIF" 1557c478bd9Sstevel@tonic-gate@ MSG_LFL_STARTREL "STARTREL" 156dffec89cSrie@ MSG_LFL_ATEXIT "ATEXIT" 157dffec89cSrie@ MSG_LFL_OBJADDED "OBJADDED" 158dffec89cSrie@ MSG_LFL_OBJDELETED "OBJDELETED" 159dffec89cSrie@ MSG_LFL_OBJREEVAL "OBJREEVAL" 1607c478bd9Sstevel@tonic-gate 1617c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_LDDSTUB "TRC_LDDSTUB" 1627c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_ENABLE "TRC_ENABLE" 1637c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_WARN "TRC_WARN" 1647c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_VERBOSE "TRC_VERBOSE" 1657c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_SEARCH "TRC_SEARCH" 1667c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_UNREF "TRC_UNREF" 1677c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_UNUSED "TRC_UNUSED" 1687c478bd9Sstevel@tonic-gate@ MSG_LFL_TRC_INIT "TRC_INIT" 1697c478bd9Sstevel@tonic-gate 1707c478bd9Sstevel@tonic-gate@ MSG_LTFL_NOLAZYLD "NOLAZYLD" 1717c478bd9Sstevel@tonic-gate@ MSG_LTFL_NODIRECT "NODIRECT" 1727c478bd9Sstevel@tonic-gate@ MSG_LTFL_LOADFLTR "LOADFLTR" 1737c478bd9Sstevel@tonic-gate 1747c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_PREINIT "AUD_PREINIT" 1757c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_OBJSEARCH "AUD_OBJSEARCH" 1767c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_OBJOPEN "AUD_OBJOPEN" 1777c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_OBJFILTER "AUD_OBJFILTER" 1787c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_OBJCLOSE "AUD_OBJCLOSE" 1797c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_SYMBIND "AUD_SYMBIND" 1807c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_PLTENTER "AUD_PLTENTER" 1817c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_PLTEXIT "AUD_PLTEXIT" 1827c478bd9Sstevel@tonic-gate@ MSG_LTFL_AUD_ACTIVITY "AUD_ACTIVITY" 1837c478bd9Sstevel@tonic-gate 1847c478bd9Sstevel@tonic-gate@ MSG_LMC_ANALYZING "ANALYZING" 1857c478bd9Sstevel@tonic-gate@ MSG_LMC_RELOCATING "RELOCATING" 1867c478bd9Sstevel@tonic-gate@ MSG_LMC_REANALYZE "REANALYZE" 1877c478bd9Sstevel@tonic-gate 1887c478bd9Sstevel@tonic-gate# 1897c478bd9Sstevel@tonic-gate# Error messages 1907c478bd9Sstevel@tonic-gate# 1917c478bd9Sstevel@tonic-gate@ MSG_ERR_NAS "%s:: no address specified\n" 1927c478bd9Sstevel@tonic-gate@ MSG_ERR_READ "%s:: failed to read from: 0x%p\n" 1937c478bd9Sstevel@tonic-gate@ MSG_ERR_SYMFAILED "rtmaps:: lookup of %s`%s failed\n" 1947c478bd9Sstevel@tonic-gate 1957c478bd9Sstevel@tonic-gate# 1967c478bd9Sstevel@tonic-gate# Various generic format strings 1977c478bd9Sstevel@tonic-gate# 1987c478bd9Sstevel@tonic-gate@ MSG_FMT_RT "[0x%x]\t0x%0?p 0x%0?p %s\n" 1997c478bd9Sstevel@tonic-gate@ MSG_FMT_LN "0x%0?p 0x%0?p 0x%0?p\n" 2007c478bd9Sstevel@tonic-gate 2017c478bd9Sstevel@tonic-gate# 2027c478bd9Sstevel@tonic-gate# Elf header messages. 2037c478bd9Sstevel@tonic-gate# 2047c478bd9Sstevel@tonic-gate@ MSG_EHDR_STR "ElfEhdr" 2057c478bd9Sstevel@tonic-gate 2067c478bd9Sstevel@tonic-gate@ MSG_EHDR_DCD "Display Elf_Ehdr entry" 2077c478bd9Sstevel@tonic-gate 2087c478bd9Sstevel@tonic-gate@ MSG_EHDR_TITLE "Elf Header located at: 0x%p\n" 2097c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE1 " ei_magic: { 0x%x, %c, %c, %c }\n" 2107c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE2 " ei_class: %-18s ei_data: %s\n" 2117c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE3 " e_machine: %-18s e_version: %s\n" 2127c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE4 " e_type: %s\n" 2137c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE5 " e_flags: %s\n" 2147c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE6 " e_flags: %18s\n" 2157c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE7 " e_entry: %#18lx e_ehsize: %2d \ 2167c478bd9Sstevel@tonic-gate e_shstrndx: %2d\n" 2177c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE8 " e_shoff: %#18lx e_shentsize: %2d \ 2187c478bd9Sstevel@tonic-gate e_shnum: %2d\n" 2197c478bd9Sstevel@tonic-gate@ MSG_EHDR_LINE9 " e_phoff: %#18lx e_phentsize: %2d \ 2207c478bd9Sstevel@tonic-gate e_phnum: %2d\n" 2217c478bd9Sstevel@tonic-gate 2227c478bd9Sstevel@tonic-gate@ MSG_EHDR_HELP "\ 2237c478bd9Sstevel@tonic-gate Decode an ELF Header (Elf_Ehdr) structure.\n\ 2247c478bd9Sstevel@tonic-gate \n\ 2257c478bd9Sstevel@tonic-gate Example:\n\n\ 2267c478bd9Sstevel@tonic-gate \t> 0x10000::ElfEhdr \n\ 2277c478bd9Sstevel@tonic-gate \tElf Header located at: 0x10000\n\ 2287c478bd9Sstevel@tonic-gate \t ei_magic: { 0x7f, E, L, F }\n\ 2297c478bd9Sstevel@tonic-gate \t ei_class: ELFCLASS32 ei_data: ELFDATA2MSB\n\ 2307c478bd9Sstevel@tonic-gate \t e_machine: EM_SPARC e_version: EV_CURRENT\n\ 2317c478bd9Sstevel@tonic-gate \t e_type: ET_EXEC\n\ 2327c478bd9Sstevel@tonic-gate \t e_flags: 0\n\ 2337c478bd9Sstevel@tonic-gate \t e_entry: 0x10640 e_ehsize: 52 e_shstrndx: 27\n\ 2347c478bd9Sstevel@tonic-gate \t e_shoff: 0x1390 e_shentsize: 40 e_shnum: 29\n\ 2357c478bd9Sstevel@tonic-gate \t e_phoff: 0x34 e_phentsize: 32 e_phnum: 5\n" 2367c478bd9Sstevel@tonic-gate 2377c478bd9Sstevel@tonic-gate# 2387c478bd9Sstevel@tonic-gate# Elf Program Header messages. 2397c478bd9Sstevel@tonic-gate# 2407c478bd9Sstevel@tonic-gate 2417c478bd9Sstevel@tonic-gate@ MSG_EPHDR_STR "ElfPhdr" 2427c478bd9Sstevel@tonic-gate 2437c478bd9Sstevel@tonic-gate@ MSG_EPHDR_DCD "Display Elf_Phdr entry" 2447c478bd9Sstevel@tonic-gate 2457c478bd9Sstevel@tonic-gate@ MSG_EPHDR_TITLE "Program Header located at: 0x%p\n" 2467c478bd9Sstevel@tonic-gate@ MSG_EPHDR_LINE1 " p_vaddr: %#-14lx p_flags: %s\n" 2477c478bd9Sstevel@tonic-gate@ MSG_EPHDR_LINE2 " p_paddr: %#-14lx p_type: %s\n" 2487c478bd9Sstevel@tonic-gate@ MSG_EPHDR_LINE3 " p_filesz: %#-14lx p_memsz: %#lx\n" 2497c478bd9Sstevel@tonic-gate@ MSG_EPHDR_LINE4 " p_offset: %#-14lx p_align: %#lx\n" 2507c478bd9Sstevel@tonic-gate 2517c478bd9Sstevel@tonic-gate@ MSG_EPHDR_HELP "\ 2527c478bd9Sstevel@tonic-gate Decode an ELF Program Header (Elf_Phdr) structure.\n\ 2537c478bd9Sstevel@tonic-gate \n\ 2547c478bd9Sstevel@tonic-gate Example 1 - a single entry:\n\n\ 2557c478bd9Sstevel@tonic-gate \t> 0x10000+0x34::ElfPhdr\n\ 2567c478bd9Sstevel@tonic-gate \tProgram Header located at: 0x10034\n\ 2577c478bd9Sstevel@tonic-gate \t p_vaddr: 0x10034 p_flags: [ PF_X PF_R ]\n\ 2587c478bd9Sstevel@tonic-gate \t p_paddr: 0 p_type: [ PT_PHDR ]\n\ 2597c478bd9Sstevel@tonic-gate \t p_filesz: 0xa0 p_memsz: 0xa0\n\ 2607c478bd9Sstevel@tonic-gate \t p_offset: 0x34 p_align: 0\n\ 2617c478bd9Sstevel@tonic-gate \n\ 2627c478bd9Sstevel@tonic-gate Example 2 - multiple entries:\n\n\ 2637c478bd9Sstevel@tonic-gate \t> 0x10034,2::ElfPhdr\n\ 2647c478bd9Sstevel@tonic-gate \tProgram Header located at: 0x10034\n\ 2657c478bd9Sstevel@tonic-gate \t p_vaddr: 0x10034 p_flags: [ PF_X PF_R ]\n\ 2667c478bd9Sstevel@tonic-gate \t p_paddr: 0 p_type: [ PT_PHDR ]\n\ 2677c478bd9Sstevel@tonic-gate \t p_filesz: 0xa0 p_memsz: 0xa0\n\ 2687c478bd9Sstevel@tonic-gate \t p_offset: 0x34 p_align: 0\n\ 2697c478bd9Sstevel@tonic-gate \tProgram Header located at: 0x10054\n\ 2707c478bd9Sstevel@tonic-gate \t p_vaddr: 0 p_flags: [ PF_R ]\n\ 2717c478bd9Sstevel@tonic-gate \t p_paddr: 0 p_type: [ PT_INTERP ]\n\ 2727c478bd9Sstevel@tonic-gate \t p_filesz: 0x11 p_memsz: 0\n\ 2737c478bd9Sstevel@tonic-gate \t p_offset: 0xd4 p_align: 0\n" 2747c478bd9Sstevel@tonic-gate 2757c478bd9Sstevel@tonic-gate 2767c478bd9Sstevel@tonic-gate# 2777c478bd9Sstevel@tonic-gate# Elf_Dyn messages. 2787c478bd9Sstevel@tonic-gate# 2797c478bd9Sstevel@tonic-gate 2807c478bd9Sstevel@tonic-gate@ MSG_ELFDYN_STR "ElfDyn" 2817c478bd9Sstevel@tonic-gate 2827c478bd9Sstevel@tonic-gate@ MSG_ELFDYN_DCD "Display Elf_Dyn entry" 2837c478bd9Sstevel@tonic-gate 2847c478bd9Sstevel@tonic-gate@ MSG_ELFDYN_TITLE "Elf_Dyn located at: 0x%p\n" 2857c478bd9Sstevel@tonic-gate@ MSG_ELFDYN_LINE1 " %a %s\t 0x%0?p\n" 2867c478bd9Sstevel@tonic-gate 2877c478bd9Sstevel@tonic-gate@ MSG_ELFDYN_HELP "\ 2887c478bd9Sstevel@tonic-gate Decode an ELF dynamic section (Elf_Dyn) entry.\n\ 2897c478bd9Sstevel@tonic-gate \n\ 2907c478bd9Sstevel@tonic-gate Example 1 - a single entry:\n\n\ 2917c478bd9Sstevel@tonic-gate \t> 0xff33a478::ElfDyn\n\ 2927c478bd9Sstevel@tonic-gate \tElf_Dyn located at: 0xff33a478\n\ 2937c478bd9Sstevel@tonic-gate \t 0xff33a478 NEEDED 0x00004013\n\ 2947c478bd9Sstevel@tonic-gate \n\ 2957c478bd9Sstevel@tonic-gate Example 2 - multiple entries:\n\n\ 2967c478bd9Sstevel@tonic-gate \t> 0xff33a478,4::ElfDyn\n\ 2977c478bd9Sstevel@tonic-gate \tElf_Dyn located at: 0xff33a478\n\ 2987c478bd9Sstevel@tonic-gate \t 0xff33a478 NEEDED 0x00004013\n\ 2997c478bd9Sstevel@tonic-gate \tElf_Dyn located at: 0xff33a480\n\ 3007c478bd9Sstevel@tonic-gate \t 0xff33a480 INIT 0x0009b484\n\ 3017c478bd9Sstevel@tonic-gate \tElf_Dyn located at: 0xff33a488\n\ 3027c478bd9Sstevel@tonic-gate \t 0xff33a488 FINI 0x0009b4dc\n\ 3037c478bd9Sstevel@tonic-gate \tElf_Dyn located at: 0xff33a490\n\ 3047c478bd9Sstevel@tonic-gate \t 0xff33a490 SONAME 0x00004009\n" 3057c478bd9Sstevel@tonic-gate 3067c478bd9Sstevel@tonic-gate 3077c478bd9Sstevel@tonic-gate# 3087c478bd9Sstevel@tonic-gate# List messages. 3097c478bd9Sstevel@tonic-gate# 3107c478bd9Sstevel@tonic-gate 3117c478bd9Sstevel@tonic-gate@ MSG_LIST_STR "List" 3127c478bd9Sstevel@tonic-gate 3137c478bd9Sstevel@tonic-gate@ MSG_LIST_DCD "Display entries in a List" 3147c478bd9Sstevel@tonic-gate 3157c478bd9Sstevel@tonic-gate@ MSG_LIST_TITLE "Listnode data next\n" 3167c478bd9Sstevel@tonic-gate 3177c478bd9Sstevel@tonic-gate@ MSG_LIST_HELP "\ 3187c478bd9Sstevel@tonic-gate Walk a List structure. A list consists of a chain of Listnodes. The head\n\ 3197c478bd9Sstevel@tonic-gate of a List points to the initial node, the tail of the list points to the\n\ 3207c478bd9Sstevel@tonic-gate final node. A Listnode contains a pointer to a data item and a pointer to\n\ 3217c478bd9Sstevel@tonic-gate the next Listnode.\n\ 3227c478bd9Sstevel@tonic-gate \n\ 3237c478bd9Sstevel@tonic-gate Example:\n\n\ 3247c478bd9Sstevel@tonic-gate \t> ld.so.1`dynlm_list::List\n\ 3257c478bd9Sstevel@tonic-gate \tListnode data next\n\ 3267c478bd9Sstevel@tonic-gate \t---------------------------------------------\n\ 3277c478bd9Sstevel@tonic-gate \t0xff3b05ac 0xff3f60c8 0xff3b05c4\n\ 3287c478bd9Sstevel@tonic-gate \t0xff3b05c4 0xff3f60e8 0x00000000\n" 3297c478bd9Sstevel@tonic-gate 3307c478bd9Sstevel@tonic-gate# 3317c478bd9Sstevel@tonic-gate# Lm_list messages. 3327c478bd9Sstevel@tonic-gate# 3337c478bd9Sstevel@tonic-gate 3347c478bd9Sstevel@tonic-gate@ MSG_LMLIST_STR "Lm_list" 3357c478bd9Sstevel@tonic-gate 3367c478bd9Sstevel@tonic-gate@ MSG_LMLIST_DCD "Display Lm_list structure" 3377c478bd9Sstevel@tonic-gate 3387c478bd9Sstevel@tonic-gate@ MSG_LMLIST_BASE "(LM_ID_BASE)" 3397c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LDSO "(LM_ID_LDSO)" 3407c478bd9Sstevel@tonic-gate@ MSG_LMLIST_NEWLM "(LM_ID_NEWLM)" 3417c478bd9Sstevel@tonic-gate 3427c478bd9Sstevel@tonic-gate@ MSG_LMLIST_TITLE1 "Link-map lists (%s): 0x%p\n"; 3437c478bd9Sstevel@tonic-gate@ MSG_LMLIST_TITLE2 "Lm_list: 0x%p %s\n" 3447c478bd9Sstevel@tonic-gate 3457c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE0 " lists: 0x%0?p Alist[used %u: total %u]\n" 3467c478bd9Sstevel@tonic-gate 3477c478bd9Sstevel@tonic-gate@ MSG_LMC_LINE1 "Lm_cntl: 0x%p\n" 3487c478bd9Sstevel@tonic-gate@ MSG_LMC_LINE2 " head: 0x%0?p\t tail: 0x%0?p\n" 3497c478bd9Sstevel@tonic-gate@ MSG_LMC_LINE3 " flags: 0x%08x\t now: 0x%0?p\n" 3507c478bd9Sstevel@tonic-gate@ MSG_LMC_LINE4 " [ %#b ]\n" 3517c478bd9Sstevel@tonic-gate 3527c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE1 " head: 0x%0?p\t tail: 0x%0?p\n" 353*10a4fa49Srie@ MSG_LMLIST_LINE2 " audit: 0x%0?p\t rtldinfo: 0x%0?p\n" 3547c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE3 " handle: 0x%0?p\t obj: %4d init: %4d \ 3557c478bd9Sstevel@tonic-gate lazy: %4d\n" 3567c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE4 " flags: 0x%08x\n" 3577c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE5 " tflags: 0x%08x\n" 3587c478bd9Sstevel@tonic-gate@ MSG_LMLIST_LINE6 " [ %#b ]\n" 3597c478bd9Sstevel@tonic-gate 3607c478bd9Sstevel@tonic-gate@ MSG_LMLIST_HELP "\ 3617c478bd9Sstevel@tonic-gate Display a link-map list header. If no address is specified, the \ 3627c478bd9Sstevel@tonic-gate dynlm_list\nmaster link-map list is searched and all link-map headers \ 3637c478bd9Sstevel@tonic-gate displayed.\n\ 3647c478bd9Sstevel@tonic-gate \n\ 3657c478bd9Sstevel@tonic-gate A link-map list header points to a family of link-map control lists, \ 3667c478bd9Sstevel@tonic-gate together\nwith other state information. The initial control list represents \ 3677c478bd9Sstevel@tonic-gate those\nobjects that have been completely analyzed and relocated, and are \ 3687c478bd9Sstevel@tonic-gate presently in\nuse. \ 3697c478bd9Sstevel@tonic-gate Additional control lists may exist as families of objects are processed\nin \ 3707c478bd9Sstevel@tonic-gate preparation for joining the main control list. These families are created\n\ 3717c478bd9Sstevel@tonic-gate from events such as dlopen(3c), lazy loading, and filtee processing, once\n\ 3727c478bd9Sstevel@tonic-gate the initial process that started the application has been relocated.\n\ 3737c478bd9Sstevel@tonic-gate \n\ 3747c478bd9Sstevel@tonic-gate The -v option walks all link-map control lists displaying each member.\n\ 3757c478bd9Sstevel@tonic-gate \n\ 3767c478bd9Sstevel@tonic-gate Example 1 - a single, verbose entry, starting from a specified address:\n\n\ 3777c478bd9Sstevel@tonic-gate \n\ 3787c478bd9Sstevel@tonic-gate \t> 0xff3ee0f0::Lm_list -v\n\ 3797c478bd9Sstevel@tonic-gate \tLm_list: 0xff3ee0f0 (LM_ID_BASE)\n\ 3807c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 3817c478bd9Sstevel@tonic-gate \t lists: 0xff3f0b00 Alist[used 1: total 4]\n\ 3827c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 3837c478bd9Sstevel@tonic-gate \t Lm_cntl: 0xff3f0b0c\n\ 3847c478bd9Sstevel@tonic-gate \t head: 0xff3f0fdc tail: 0xff3f13bc\n\ 3857c478bd9Sstevel@tonic-gate \t flags: 0x00000000 now: 0x00000000\n\ 3867c478bd9Sstevel@tonic-gate \t [ 0 ]\n\ 3877c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 3887c478bd9Sstevel@tonic-gate \t lmco rtmap ADDR() NAME()\n\ 3897c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 3907c478bd9Sstevel@tonic-gate \t [0xc] 0xff3f0fdc 0x00010000 main\n\ 3917c478bd9Sstevel@tonic-gate \t [0xc] 0xff3f13bc 0xff280000 /lib/libc.so.1\n\ 3927c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 3937c478bd9Sstevel@tonic-gate \t head: 0xff3f0f84 tail: 0xff3f1794\n\ 3947c478bd9Sstevel@tonic-gate \t audit: 0x00000000 preexec: 0xff3f1794\n\ 3957c478bd9Sstevel@tonic-gate \t handle: 0x00000000 obj: 3 init: 0 lazy: 0\n\ 3967c478bd9Sstevel@tonic-gate \t flags: 0x00008041\n\ 3977c478bd9Sstevel@tonic-gate \t [ BASELM,ENVIRON,STARTREL ]\n\ 3987c478bd9Sstevel@tonic-gate \t tflags: 0x00000000\n\ 3997c478bd9Sstevel@tonic-gate \n\ 4007c478bd9Sstevel@tonic-gate Example 2 - all link-map headers:\n\n\ 4017c478bd9Sstevel@tonic-gate \t> ::Lm_list\n\ 4027c478bd9Sstevel@tonic-gate \tLink-map lists (dynlm_list): 0xffbfdbf8\n\ 4037c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 4047c478bd9Sstevel@tonic-gate \t Lm_list: 0xff3ee0f0 (LM_ID_BASE)\n\ 4057c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 4067c478bd9Sstevel@tonic-gate \t lists: 0xff3f0b68 Alist[used 1: total 4]\n\ 4077c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 4087c478bd9Sstevel@tonic-gate \t head: 0xff3f0f84 tail: 0xff3f1794\n\ 4097c478bd9Sstevel@tonic-gate \t audit: 0x00000000 preexec: 0xff3f1794\n\ 4107c478bd9Sstevel@tonic-gate \t handle: 0x00000000 obj: 3 init: 0 lazy: 0\n\ 4117c478bd9Sstevel@tonic-gate \t flags: 0x00008041\n\ 4127c478bd9Sstevel@tonic-gate \t [ BASELM,ENVIRON,STARTREL ]\n\ 4137c478bd9Sstevel@tonic-gate \t tflags: 0x00000000\n\ 4147c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 4157c478bd9Sstevel@tonic-gate \t Lm_list: 0xff3ee134 (LM_ID_LDSO)\n\ 4167c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 4177c478bd9Sstevel@tonic-gate \t lists: 0xff3f0ba4 Alist[used 1: total 4]\n\ 4187c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 4197c478bd9Sstevel@tonic-gate \t head: 0xff3f0c20 tail: 0xff3f0c20\n\ 4207c478bd9Sstevel@tonic-gate \t audit: 0x00000000 preexec: 0x00000000\n\ 4217c478bd9Sstevel@tonic-gate \t handle: 0x00000000 obj: 0 init: 0 lazy: 0\n\ 4227c478bd9Sstevel@tonic-gate \t flags: 0x00000006\n\ 4237c478bd9Sstevel@tonic-gate \t [ RTLDLM,NOAUDIT ]\n\ 4247c478bd9Sstevel@tonic-gate \t tflags: 0x00000000\n" 4257c478bd9Sstevel@tonic-gate 4267c478bd9Sstevel@tonic-gate# 4277c478bd9Sstevel@tonic-gate# Rt_maps messages. 4287c478bd9Sstevel@tonic-gate# 4297c478bd9Sstevel@tonic-gate 4307c478bd9Sstevel@tonic-gate@ MSG_RTMAPS_STR "Rt_maps" 4317c478bd9Sstevel@tonic-gate 4327c478bd9Sstevel@tonic-gate@ MSG_RTMAPS_DCD "Display list of Rt_map structures" 4337c478bd9Sstevel@tonic-gate 4347c478bd9Sstevel@tonic-gate@ MSG_RTMAPS_TITLE0 "lmco \trtmap ADDR() NAME()\n" 4357c478bd9Sstevel@tonic-gate 4367c478bd9Sstevel@tonic-gate@ MSG_RTMAPS_HELP "\ 4377c478bd9Sstevel@tonic-gate Walk a list of Rt_map's starting with a specified Rt_map entry. If no\n\ 4387c478bd9Sstevel@tonic-gate address is specified, the dynlm_list master Rt_map list is searched and\n\ 4397c478bd9Sstevel@tonic-gate all objects listed.\n\ 4407c478bd9Sstevel@tonic-gate \n\ 4417c478bd9Sstevel@tonic-gate The -v option expands each Rt_map in detail. See Rt_map.\n\ 4427c478bd9Sstevel@tonic-gate \n\ 4437c478bd9Sstevel@tonic-gate Example 1 - a single entry, starting from a specified address:\n\n\ 4447c478bd9Sstevel@tonic-gate \t> 0xff3b0214::Rt_maps\n\ 4457c478bd9Sstevel@tonic-gate \tlmco rtmap ADDR() NAME()\n\ 4467c478bd9Sstevel@tonic-gate \t---------------------------------------------\n\ 4477c478bd9Sstevel@tonic-gate \t[0xc] 0xff3b0214 0x00010000 prog\n\ 4487c478bd9Sstevel@tonic-gate \t[0xc] 0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\ 4497c478bd9Sstevel@tonic-gate \t[0xc] 0xff3b0a04 0xff280000 /lib/libc.so.1\n\ 4507c478bd9Sstevel@tonic-gate \n\ 4517c478bd9Sstevel@tonic-gate Example 2 - all Rt_map entries:\n\n\ 4527c478bd9Sstevel@tonic-gate \t> ::Rt_maps\n\ 4537c478bd9Sstevel@tonic-gate \tLink-map lists (dynlm_list): 0xffbfe080\n\ 4547c478bd9Sstevel@tonic-gate \t---------------------------------------------\n\ 4557c478bd9Sstevel@tonic-gate \t Lm_list: 0xff3f60c8 (LM_ID_BASE)\n\ 4567c478bd9Sstevel@tonic-gate \t ---------------------------------------------\n\ 4577c478bd9Sstevel@tonic-gate \t lmco rtmap ADDR() NAME()\n\ 4587c478bd9Sstevel@tonic-gate \t ---------------------------------------------\n\ 4597c478bd9Sstevel@tonic-gate \t [0xc] 0xff3b0214 0x00010000 prog\n\ 4607c478bd9Sstevel@tonic-gate \t [0xc] 0xff3b065c 0xff3a0000 /lib/libdl.so.1\n\ 4617c478bd9Sstevel@tonic-gate \t [0xc] 0xff3b0a04 0xff280000 /lib/libc.so.1\n\ 4627c478bd9Sstevel@tonic-gate \t ---------------------------------------------\n\ 4637c478bd9Sstevel@tonic-gate \t Lm_list: 0xff3f60e8 (LM_ID_LDSO)\n\ 4647c478bd9Sstevel@tonic-gate \t ---------------------------------------------\n\ 4657c478bd9Sstevel@tonic-gate \t lmco rtmap ADDR() NAME()\n\ 4667c478bd9Sstevel@tonic-gate \t ---------------------------------------------\n\ 4677c478bd9Sstevel@tonic-gate \t [0xc] 0xff3f7cc0 0xff3c0000 /lib/ld.so.1\n" 4687c478bd9Sstevel@tonic-gate 4697c478bd9Sstevel@tonic-gate 4707c478bd9Sstevel@tonic-gate# 4717c478bd9Sstevel@tonic-gate# Rt_map messages. 4727c478bd9Sstevel@tonic-gate# 4737c478bd9Sstevel@tonic-gate 4747c478bd9Sstevel@tonic-gate@ MSG_RTMAP_STR "Rt_map" 4757c478bd9Sstevel@tonic-gate 4767c478bd9Sstevel@tonic-gate@ MSG_RTMAP_DCD "Display Rt_map structure" 4777c478bd9Sstevel@tonic-gate 4787c478bd9Sstevel@tonic-gate@ MSG_RTMAP_TITLE "Rt_map located at: 0x%0?p\n" 4797c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE1 " NAME: %s\n" 4807c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE2 " PATHNAME: %s\n" 4817c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE3 " ADDR: 0x%0?p\t DYN: 0x%0?p\n" 4827c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE4 " NEXT: 0x%0?p\t PREV: 0x%0?p\n" 4837c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE5 " FCT: 0x%0?p\t TLSMODID: %?ld\n" 4847c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE6 " INIT: 0x%0?p\t FINI: 0x%0?p\n" 4857c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE7 " GROUPS: 0x%0?p\t HANDLES: 0x%0?p\n" 4867c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE8 " DEPENDS: 0x%0?p\t CALLERS: 0x%0?p\n" 4877c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE9 " DYNINFO: 0x%0?p\t REFNAME: %s\n" 4887c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE10 " RLIST: 0x%0?p\t RPATH: %s\n" 4897c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE11 " LIST: 0x%0?p [%a]\n" 4907c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE12 " FLAGS: 0x%08x\n" 4917c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE13 " FLAGS1: 0x%08x\n" 4927c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE14 " MODE: 0x%08x\n" 4937c478bd9Sstevel@tonic-gate@ MSG_RTMAP_LINE20 " [ %#b ]\n" 4947c478bd9Sstevel@tonic-gate 4957c478bd9Sstevel@tonic-gate@ MSG_RTMAP_HELP "\ 4967c478bd9Sstevel@tonic-gate Display the contents of selected fields of an Rt_map structure.\n\ 4977c478bd9Sstevel@tonic-gate \n\ 4987c478bd9Sstevel@tonic-gate Example:\n\n\ 4997c478bd9Sstevel@tonic-gate \t0xff3b0214::Rt_map\n\ 5007c478bd9Sstevel@tonic-gate \tRt_map located at: 0xff3b0214\n\ 5017c478bd9Sstevel@tonic-gate \t NAME: prog\n\ 5027c478bd9Sstevel@tonic-gate \t PATHNAME: /home/developer/bin/prog\n\ 5037c478bd9Sstevel@tonic-gate \t ADDR: 0x00010000 DYN: 0x00020b1\n\ 5047c478bd9Sstevel@tonic-gate \t NEXT: 0xff3b065c PREV: 0x0000000\n\ 5057c478bd9Sstevel@tonic-gate \t FCT: 0xff3f6080 TLSMODID: 0\n\ 5067c478bd9Sstevel@tonic-gate \t INIT: 0x00010960 FINI: 0x000109b\n\ 5077c478bd9Sstevel@tonic-gate \t .....\n" 5087c478bd9Sstevel@tonic-gate 5097c478bd9Sstevel@tonic-gate# 5107c478bd9Sstevel@tonic-gate# Bind messages. 5117c478bd9Sstevel@tonic-gate# 5127c478bd9Sstevel@tonic-gate 5137c478bd9Sstevel@tonic-gate@ MSG_BND_STR "Bind" 5147c478bd9Sstevel@tonic-gate 5157c478bd9Sstevel@tonic-gate@ MSG_BND_DCD "Display a Binding Descriptor" 5167c478bd9Sstevel@tonic-gate 5177c478bd9Sstevel@tonic-gate@ MSG_BND_TITLE "Binding descriptor located at: 0x%0?p\n" 5187c478bd9Sstevel@tonic-gate@ MSG_BND_LINE1 " caller: 0x%0?p %s\n" 5197c478bd9Sstevel@tonic-gate@ MSG_BND_LINE2 " depend: 0x%0?p %s\n" 5207c478bd9Sstevel@tonic-gate@ MSG_BND_LINE3 " flags: 0x%08x [ %#b ]\n" 5217c478bd9Sstevel@tonic-gate 5227c478bd9Sstevel@tonic-gate@ MSG_BND_HELP "\ 5237c478bd9Sstevel@tonic-gate Decode the binding descriptor specified by addr.\n\ 5247c478bd9Sstevel@tonic-gate \n\ 5257c478bd9Sstevel@tonic-gate Relationships between Rt_map objects are maintained by a binding dis-\n\ 5267c478bd9Sstevel@tonic-gate cripter. The descriptor contains a pointer to the Rt_map of the caller,\n\ 5277c478bd9Sstevel@tonic-gate a pointer to the Rt_map of the dependency, and a flags field indicating\n\ 5287c478bd9Sstevel@tonic-gate the relationship between the two Rt_map objects.\n\ 5297c478bd9Sstevel@tonic-gate \n\ 5307c478bd9Sstevel@tonic-gate The -v option expands each Rt_map.\n\ 5317c478bd9Sstevel@tonic-gate \n\ 5327c478bd9Sstevel@tonic-gate Example:\n\n\ 5337c478bd9Sstevel@tonic-gate \t> 0xff3b0410::Bind\n\ 5347c478bd9Sstevel@tonic-gate \tBinding Descriptor located at: 0xff3b0410\n\ 5357c478bd9Sstevel@tonic-gate \t caller: 0xff3b0030 main\n\ 5367c478bd9Sstevel@tonic-gate \t depend: 0xff3b0460 /lib/libelf.so.1\n\ 5377c478bd9Sstevel@tonic-gate \t flags: 0x00000001 [ NEEDED ]\n" 5387c478bd9Sstevel@tonic-gate 5397c478bd9Sstevel@tonic-gate 5407c478bd9Sstevel@tonic-gate# 5417c478bd9Sstevel@tonic-gate# Depends messages. 5427c478bd9Sstevel@tonic-gate# 5437c478bd9Sstevel@tonic-gate 5447c478bd9Sstevel@tonic-gate@ MSG_DEPENDS_STR "Depends" 5457c478bd9Sstevel@tonic-gate 5467c478bd9Sstevel@tonic-gate@ MSG_DEPENDS_DCD "Display Rt_map DEPENDS binding descriptors" 5477c478bd9Sstevel@tonic-gate 5487c478bd9Sstevel@tonic-gate@ MSG_DEPENDS_LINE1 "DEPENDS for %s\n" 5497c478bd9Sstevel@tonic-gate@ MSG_DEPENDS_LINE2 " Depends: 0x%0?p Alist[used %u: total %u]\n" 5507c478bd9Sstevel@tonic-gate 5517c478bd9Sstevel@tonic-gate@ MSG_DEPENDS_HELP "\ 5527c478bd9Sstevel@tonic-gate Display the binding descriptor list of DEPENDS() of the Rt_map\n\ 5537c478bd9Sstevel@tonic-gate specified by addr. A DEPENDS() entry consists of an Alist\n\ 5547c478bd9Sstevel@tonic-gate defining each dependency.\n\ 5557c478bd9Sstevel@tonic-gate \n\ 5567c478bd9Sstevel@tonic-gate The -v option walks the Alist descriptor displaying each dependency.\n\ 5577c478bd9Sstevel@tonic-gate \n\ 5587c478bd9Sstevel@tonic-gate Example:\n\n\ 5597c478bd9Sstevel@tonic-gate \t> 0xff3b0554::Depends -v\n\ 5607c478bd9Sstevel@tonic-gate \tDEPENDS for /lib/libc.so.1\n\ 5617c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 5627c478bd9Sstevel@tonic-gate \t Depends: 0xff3b0bc4 Alist[used 2: total 4]\n\ 5637c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 5647c478bd9Sstevel@tonic-gate \t Binding descriptor located at: 0xff3b08f8\n\ 5657c478bd9Sstevel@tonic-gate \t caller: 0xff3b0554 /lib/libc.so.1\n\ 5667c478bd9Sstevel@tonic-gate \t depend: 0xff3b0938 /lib/libdl.so.1\n\ 5677c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ NEEDED,REFERENCED ]\n\ 5687c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 5697c478bd9Sstevel@tonic-gate \t Binding descriptor located at: 0xff3b07a8\n\ 5707c478bd9Sstevel@tonic-gate \t caller: 0xff3b0554 /lib/libc.so.1\n\ 5717c478bd9Sstevel@tonic-gate \t depend: 0xff3f7cc0 /lib/ld.so.1\n\ 5727c478bd9Sstevel@tonic-gate \t flags: 0x00000002 [ REFERENCED ]\n" 5737c478bd9Sstevel@tonic-gate 5747c478bd9Sstevel@tonic-gate# 5757c478bd9Sstevel@tonic-gate# Callers messages. 5767c478bd9Sstevel@tonic-gate# 5777c478bd9Sstevel@tonic-gate 5787c478bd9Sstevel@tonic-gate@ MSG_CALLERS_STR "Callers" 5797c478bd9Sstevel@tonic-gate 5807c478bd9Sstevel@tonic-gate@ MSG_CALLERS_DCD "Display Rt_map CALLERS binding descriptors" 5817c478bd9Sstevel@tonic-gate 5827c478bd9Sstevel@tonic-gate@ MSG_CALLERS_LINE1 "CALLERS for %s\n" 5837c478bd9Sstevel@tonic-gate@ MSG_CALLERS_LINE2 " Callers: 0x%0?p Alist[used %u: total %u]\n" 5847c478bd9Sstevel@tonic-gate 5857c478bd9Sstevel@tonic-gate@ MSG_CALLERS_HELP "\ 5867c478bd9Sstevel@tonic-gate Display the binding descriptor list of CALLERS() of the Rt_map\n\ 5877c478bd9Sstevel@tonic-gate specified by addr. A CALLERS() entry consists of an Alist\n\ 5887c478bd9Sstevel@tonic-gate defining each caller.\n\ 5897c478bd9Sstevel@tonic-gate \n\ 5907c478bd9Sstevel@tonic-gate The -v option walks the Alist descriptor displaying each caller.\n\ 5917c478bd9Sstevel@tonic-gate \n\ 5927c478bd9Sstevel@tonic-gate Example:\n\n\ 5937c478bd9Sstevel@tonic-gate \t> 0xff3b0554::Callers -v\n\ 5947c478bd9Sstevel@tonic-gate \tCALLERS for /lib/libc.so.1\n\ 5957c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 5967c478bd9Sstevel@tonic-gate \t Callers: 0xff3b08cc Alist[used 1: total 4]\n\ 5977c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 5987c478bd9Sstevel@tonic-gate \t Binding descriptor located at: 0xff3b0514\n\ 5997c478bd9Sstevel@tonic-gate \t caller: 0xff3b0214 a.out\n\ 6007c478bd9Sstevel@tonic-gate \t depend: 0xff3b0554 /lib/libc.so.1\n\ 6017c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ NEEDED,REFERENCED ]\n" 6027c478bd9Sstevel@tonic-gate 6037c478bd9Sstevel@tonic-gate 6047c478bd9Sstevel@tonic-gate# 6057c478bd9Sstevel@tonic-gate# Handle messages. 6067c478bd9Sstevel@tonic-gate# 6077c478bd9Sstevel@tonic-gate 6087c478bd9Sstevel@tonic-gate@ MSG_HANDLES_STR "Handles" 6097c478bd9Sstevel@tonic-gate 6107c478bd9Sstevel@tonic-gate@ MSG_HANDLES_DCD "Display Rt_map HANDLES group descriptors" 6117c478bd9Sstevel@tonic-gate 6127c478bd9Sstevel@tonic-gate@ MSG_HANDLES_LINE1 "HANDLES for %s\n" 6137c478bd9Sstevel@tonic-gate@ MSG_HANDLES_LINE2 " HANDLE: 0x%0?p Alist[used %u: total %u]\n" 6147c478bd9Sstevel@tonic-gate 6157c478bd9Sstevel@tonic-gate@ MSG_HANDLES_HELP "\ 6167c478bd9Sstevel@tonic-gate Display the list of HANDLES() that the Rt_map, specified by addr, is the\n\ 6177c478bd9Sstevel@tonic-gate owner of. A HANDLES() entry consists of an Alist of Grp_hdl descriptors.\n\ 6187c478bd9Sstevel@tonic-gate See GrpHdl. Each Grp_hdl() consists of an Alist of Grp_desc descriptors\n\ 6197c478bd9Sstevel@tonic-gate that define each caller. See GrpDesc.\n\ 6207c478bd9Sstevel@tonic-gate \n\ 6217c478bd9Sstevel@tonic-gate The -v option walks all Alists displaying each member of the handle.\n\ 6227c478bd9Sstevel@tonic-gate \n\ 6237c478bd9Sstevel@tonic-gate Example:\n\n\ 6247c478bd9Sstevel@tonic-gate \t> 0xff3b0f6c::Handles -v\n\ 6257c478bd9Sstevel@tonic-gate \tHANDLES for ./sub.so\n\ 6267c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 6277c478bd9Sstevel@tonic-gate \t HANDLE: 0xff3b1310 Alist[used 1: total 1]\n\ 6287c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6297c478bd9Sstevel@tonic-gate \t Group Handle located at: 0xff3b1270\n\ 6307c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6317c478bd9Sstevel@tonic-gate \t owner: ./sub.so\n\ 6327c478bd9Sstevel@tonic-gate \t flags: 0x00000000 [ 0 ]\n\ 6337c478bd9Sstevel@tonic-gate \t refcnt: 1 depends: 0xff3b12c8 Alist[used 3: total 4]\n\ 6347c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6357c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12d4\n\ 6367c478bd9Sstevel@tonic-gate \t depend: 0xff3b0f6c ./sub.so\n\ 6377c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 6387c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6397c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12dc\n\ 6407c478bd9Sstevel@tonic-gate \t depend: 0xff3b0a04 /lib/libc.so.1\n\ 6417c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 6427c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6437c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12e4\n\ 6447c478bd9Sstevel@tonic-gate \t depend: 0xff3b065c /lib/libdl.so.1\n\ 6457c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 6467c478bd9Sstevel@tonic-gate 6477c478bd9Sstevel@tonic-gate# 6487c478bd9Sstevel@tonic-gate# Group messages. 6497c478bd9Sstevel@tonic-gate# 6507c478bd9Sstevel@tonic-gate 6517c478bd9Sstevel@tonic-gate@ MSG_GROUPS_STR "Groups" 6527c478bd9Sstevel@tonic-gate 6537c478bd9Sstevel@tonic-gate@ MSG_GROUPS_DCD "Display Rt_map GROUPS group handles" 6547c478bd9Sstevel@tonic-gate 6557c478bd9Sstevel@tonic-gate@ MSG_GROUPS_LINE1 "GROUPS for %s\n" 6567c478bd9Sstevel@tonic-gate@ MSG_GROUPS_LINE2 " Groups: 0x%0?p Alist[used %u: total %u]\n" 6577c478bd9Sstevel@tonic-gate 6587c478bd9Sstevel@tonic-gate@ MSG_GROUPS_HELP "\ 6597c478bd9Sstevel@tonic-gate Display the list of GROUPS() that the Rt_map, specified by addr, is a \ 6607c478bd9Sstevel@tonic-gate member\nof. A GROUPS() entry consists of an Alist of Grp_hdl entries. \ 6617c478bd9Sstevel@tonic-gate See GrpHdl.\n\ 6627c478bd9Sstevel@tonic-gate \n\ 6637c478bd9Sstevel@tonic-gate The -v option walks the Alist descriptor displaying each member of the\n\ 6647c478bd9Sstevel@tonic-gate handle.\n\ 6657c478bd9Sstevel@tonic-gate \n\ 6667c478bd9Sstevel@tonic-gate Example:\n\n\ 6677c478bd9Sstevel@tonic-gate \t> 0xff3b0f6c::Groups -v\n\ 6687c478bd9Sstevel@tonic-gate \tGROUPS for ./sub.so\n\ 6697c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 6707c478bd9Sstevel@tonic-gate \t Groups: 0xff3b12a8 Alist[used 1: total 1]\n\ 6717c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6727c478bd9Sstevel@tonic-gate \t Group Handle located at: 0xff3b1270\n\ 6737c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6747c478bd9Sstevel@tonic-gate \t owner: ./sub.so\n\ 6757c478bd9Sstevel@tonic-gate \t flags: 0x00000000 [ 0 ]\n\ 6767c478bd9Sstevel@tonic-gate \t refcnt: 1 depends: 0xff3b12c8 Alist[used 3: total 4]\n\ 6777c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6787c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12d4\n\ 6797c478bd9Sstevel@tonic-gate \t depend: 0xff3b0f6c ./sub.so\n\ 6807c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 6817c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6827c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12dc\n\ 6837c478bd9Sstevel@tonic-gate \t depend: 0xff3b0a04 /lib/libc.so.1\n\ 6847c478bd9Sstevel@tonic-gate \t flags: 0x00000004 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n\ 6857c478bd9Sstevel@tonic-gate \t ----------------------------------------------\n\ 6867c478bd9Sstevel@tonic-gate \t Group Descriptor located at: 0xff3b12e4\n\ 6877c478bd9Sstevel@tonic-gate \t depend: 0xff3b065c /lib/libdl.so.1\n\ 6887c478bd9Sstevel@tonic-gate \t flags: 0x00000004 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 6897c478bd9Sstevel@tonic-gate 6907c478bd9Sstevel@tonic-gate 6917c478bd9Sstevel@tonic-gate# 6927c478bd9Sstevel@tonic-gate# Group handle and group descriptor messages. 6937c478bd9Sstevel@tonic-gate# 6947c478bd9Sstevel@tonic-gate 6957c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_STR "GrpHdl" 6967c478bd9Sstevel@tonic-gate 6977c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_DCD "Display a Group Handle" 6987c478bd9Sstevel@tonic-gate 6997c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_LINE1 "Group Handle located at: 0x%0?p\n" 7007c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_LINE2 " owner: %s\n" 7017c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_LINE3 " flags: 0x%08x [ %#b ]\n" 7027c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_LINE4 " refcnt: %8d depends: 0\n" 7037c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_LINE5 " refcnt: %8d depends: 0x%0?p \ 7047c478bd9Sstevel@tonic-gate Alist[used %u: total %u]\n" 7057c478bd9Sstevel@tonic-gate 7067c478bd9Sstevel@tonic-gate@ MSG_GRPHDL_HELP "\ 7077c478bd9Sstevel@tonic-gate Decode a group handle. A successful dlopen() of an object returns a\n\ 7087c478bd9Sstevel@tonic-gate handle applicable for subsequent dlsym() requests. The handle maintains\n\ 7097c478bd9Sstevel@tonic-gate a reference count, flags and a table of group descriptors that define the\n\ 7107c478bd9Sstevel@tonic-gate dependencies associated with this group of objects.\n\ 7117c478bd9Sstevel@tonic-gate \n\ 7127c478bd9Sstevel@tonic-gate The -v option expands each group descriptor.\n\ 7137c478bd9Sstevel@tonic-gate \n\ 7147c478bd9Sstevel@tonic-gate Example:\n\n\ 7157c478bd9Sstevel@tonic-gate \t> 0xff3a0c58::GrpHdl\n\ 7167c478bd9Sstevel@tonic-gate \tGroup Handle located at: 0xff3a0c58\n\ 7177c478bd9Sstevel@tonic-gate \t----------------------------------------------\n\ 7187c478bd9Sstevel@tonic-gate \t refcnt: 1 main\n\ 7197c478bd9Sstevel@tonic-gate \t flags: 0x00000001 [ DLOPEN-ZERO ]\n\ 7207c478bd9Sstevel@tonic-gate \t depends: 0xff3a0c89 Alist[next 1: cnt 2]\n" 7217c478bd9Sstevel@tonic-gate 7227c478bd9Sstevel@tonic-gate 7237c478bd9Sstevel@tonic-gate 7247c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_STR "GrpDesc" 7257c478bd9Sstevel@tonic-gate 7267c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_DCD "Display a Group Descriptor" 7277c478bd9Sstevel@tonic-gate 7287c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_LINE1 "Group Descriptor located at: 0x%0?p\n" 7297c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_LINE2 " depend: 0x%0?p %s\n" 7307c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_LINE3 " flags: 0x%08x [ %#b ]\n" 7317c478bd9Sstevel@tonic-gate 7327c478bd9Sstevel@tonic-gate@ MSG_GRPDESC_HELP "\ 7337c478bd9Sstevel@tonic-gate Decode a group descriptor. A GrpHdl created by dlopen() maintains a\n\ 7347c478bd9Sstevel@tonic-gate list of group descriptors for each dependency. See GrpHdl.\n\ 7357c478bd9Sstevel@tonic-gate \n\ 7367c478bd9Sstevel@tonic-gate Example\n\n\ 7377c478bd9Sstevel@tonic-gate \t> 0xff3b12d4::GrpDesc -v\n\ 7387c478bd9Sstevel@tonic-gate \tGroup Descriptor located at: 0xff3b12d4\n\ 7397c478bd9Sstevel@tonic-gate \t depend: 0xff3b0f6c ./sub.so\n\ 7407c478bd9Sstevel@tonic-gate \t flags: 0x00000003 [ AVAIL-TO-DLSYM,ADD-DEPENDENCIES ]\n" 7417c478bd9Sstevel@tonic-gate 7427c478bd9Sstevel@tonic-gate 7437c478bd9Sstevel@tonic-gate@ MSG_BNDDESC_STR "BndDesc" 7447c478bd9Sstevel@tonic-gate 7457c478bd9Sstevel@tonic-gate# 7467c478bd9Sstevel@tonic-gate# General purpose environment addition. 7477c478bd9Sstevel@tonic-gate# 7487c478bd9Sstevel@tonic-gate 7497c478bd9Sstevel@tonic-gate@ MSG_SETENV_STR "Setenv" 7507c478bd9Sstevel@tonic-gate 7517c478bd9Sstevel@tonic-gate@ MSG_SETENV_DCD "Set an environment variable" 7527c478bd9Sstevel@tonic-gate 7537c478bd9Sstevel@tonic-gate@ MSG_SETENV_HELP "\ 7547c478bd9Sstevel@tonic-gate Set the associated environment variable. This can be useful to establish\n\ 7557c478bd9Sstevel@tonic-gate runtime linker environment variables without affecting the debugger itself.\n\ 7567c478bd9Sstevel@tonic-gate \n\ 7577c478bd9Sstevel@tonic-gate Note, newer versions of mdb(1) provide setenv. The mdb(1) implementation\n\ 7587c478bd9Sstevel@tonic-gate provides the ability to make environment changes at any point during\n\ 7597c478bd9Sstevel@tonic-gate application monitoring. Where available, Setenv calls through to setenv.\n\ 7607c478bd9Sstevel@tonic-gate On older environments, Setenv only provides for changing the applications\n\ 7617c478bd9Sstevel@tonic-gate environment before it is invoked.\n\ 7627c478bd9Sstevel@tonic-gate \n\ 7637c478bd9Sstevel@tonic-gate Example\n\n\ 7647c478bd9Sstevel@tonic-gate \t> ::Setenv LD_DEBUG=files\n" 765