1 /* 2 * CDDL HEADER START 3 * 4 * The contents of this file are subject to the terms of the 5 * Common Development and Distribution License, Version 1.0 only 6 * (the "License"). You may not use this file except in compliance 7 * with the License. 8 * 9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10 * or http://www.opensolaris.org/os/licensing. 11 * See the License for the specific language governing permissions 12 * and limitations under the License. 13 * 14 * When distributing Covered Code, include this CDDL HEADER in each 15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16 * If applicable, add the following below this CDDL HEADER, with the 17 * fields enclosed by brackets "[]" replaced with your own identifying 18 * information: Portions Copyright [yyyy] [name of copyright owner] 19 * 20 * CDDL HEADER END 21 */ 22 /* 23 * Copyright 2005 Sun Microsystems, Inc. All rights reserved. 24 * Use is subject to license terms. 25 */ 26 27 #ifndef _MDB_ERRNO_H 28 #define _MDB_ERRNO_H 29 30 #pragma ident "%Z%%M% %I% %E% SMI" 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 #ifdef _MDB 37 38 #define EMDB_BASE 1000 /* Base value for mdb errnos */ 39 40 enum { 41 EMDB_NOSYM = EMDB_BASE, /* Symbol not found */ 42 EMDB_NOOBJ, /* Object file not found */ 43 EMDB_NOMAP, /* No mapping for address */ 44 EMDB_NODCMD, /* Dcmd not found */ 45 EMDB_NOWALK, /* Walk not found */ 46 EMDB_DCMDEXISTS, /* Dcmd already exists */ 47 EMDB_WALKEXISTS, /* Walk already exists */ 48 EMDB_NOPLAT, /* No platform support */ 49 EMDB_NOPROC, /* No process created yet */ 50 EMDB_NAME2BIG, /* Name is too long */ 51 EMDB_NAMEBAD, /* Name is invalid */ 52 EMDB_ALLOC, /* Failed to allocate memory */ 53 EMDB_NOMOD, /* Module not found */ 54 EMDB_BUILTINMOD, /* Cannot unload builtin mod */ 55 EMDB_NOWCB, /* No walk is active */ 56 EMDB_BADWCB, /* Invalid walk state */ 57 EMDB_NOWALKLOC, /* Walker doesn't accept addr */ 58 EMDB_NOWALKGLOB, /* Walker requires addr */ 59 EMDB_WALKINIT, /* Walker init failed */ 60 EMDB_WALKLOOP, /* Walker layering loop */ 61 EMDB_IORO, /* I/O stream is read-only */ 62 EMDB_IOWO, /* I/O stream is write-only */ 63 EMDB_NOSYMADDR, /* No symbol for address */ 64 EMDB_NODIS, /* Disassembler not found */ 65 EMDB_DISEXISTS, /* Disassembler exists */ 66 EMDB_NOSESPEC, /* No software event spec */ 67 EMDB_NOXD, /* No such xdata */ 68 EMDB_XDEXISTS, /* Xdata name already exists */ 69 EMDB_TGTNOTSUP, /* Op not supported by tgt */ 70 EMDB_TGTRDONLY, /* Tgt not open for writing */ 71 EMDB_BADREG, /* Invalid register name */ 72 EMDB_NOREGS, /* No registers for thread */ 73 EMDB_STKALIGN, /* Bad stack pointer align */ 74 EMDB_NOEXEC, /* No executable file open */ 75 EMDB_EVAL, /* Failed to mdb_eval() */ 76 EMDB_CANCEL, /* Command cancelled by user */ 77 EMDB_PARTIAL, /* Partial read occurred */ 78 EMDB_DCFAIL, /* Dcmd failed */ 79 EMDB_DCUSAGE, /* Dcmd usage error */ 80 EMDB_TGT, /* Internal target error */ 81 EMDB_BADSYSNUM, /* Invalid system call code */ 82 EMDB_BADSIGNUM, /* Invalid signal number */ 83 EMDB_BADFLTNUM, /* Invalid fault number */ 84 EMDB_TGTBUSY, /* Target is busy executing */ 85 EMDB_TGTZOMB, /* Target is a zombie */ 86 EMDB_TGTCORE, /* Target is a core file */ 87 EMDB_TGTLOST, /* Target is lost to mdb */ 88 EMDB_TDB, /* libthread_db error */ 89 EMDB_RTLD, /* libdl error */ 90 EMDB_RTLD_DB, /* librtld_db error */ 91 EMDB_NORTLD, /* no librtld_db */ 92 EMDB_NOTHREAD, /* Invalid thread identifier */ 93 EMDB_SPECDIS, /* Event specifier disabled */ 94 EMDB_NOLMID, /* Link map not found */ 95 EMDB_NORETADDR, /* No return address found */ 96 EMDB_WPRANGE, /* Watchpoint size overflow */ 97 EMDB_WPDUP, /* Watchpoint duplicate */ 98 EMDB_BPALIGN, /* Breakpoint alignment err */ 99 EMDB_NODEM, /* Bad demangler library */ 100 EMDB_EOF, /* Read failed at EOF */ 101 EMDB_NOCTF, /* No CTF data for module */ 102 EMDB_CTF, /* libctf error */ 103 EMDB_TLS, /* TLS not allocated */ 104 EMDB_NOTLS, /* TLS not supported in obj */ 105 EMDB_CTFNOMEMB, /* No CTF member of type */ 106 EMDB_CTX, /* Action in invalid context */ 107 EMDB_INCOMPAT, /* Mod incompat. w/ target */ 108 EMDB_TGTHWNOTSUP, /* Not sup by tgt on this h/w */ 109 EMDB_KINACTIVE, /* kmdb is not loaded */ 110 EMDB_KACTIVATING, /* kmdb is loading */ 111 EMDB_KACTIVE, /* kmdb is already loaded */ 112 EMDB_KDEACTIVATING, /* kmdb is unloading */ 113 EMDB_KNOLOAD, /* kmdb could not be loaded */ 114 EMDB_KNOUNLOAD, /* kmdb cannot be unloaded */ 115 EMDB_WPTOOMANY, /* Too many watchpoints */ 116 EMDB_DTACTIVE, /* DTrace is active */ 117 EMDB_KMODNOUNLOAD /* module can't be unloaded */ 118 }; 119 120 #endif /* _MDB */ 121 122 #ifdef __cplusplus 123 } 124 #endif 125 126 #endif /* _MDB_ERRNO_H */ 127