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 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 #ifdef _MDB 35 36 #define EMDB_BASE 1000 /* Base value for mdb errnos */ 37 38 enum { 39 EMDB_NOSYM = EMDB_BASE, /* Symbol not found */ 40 EMDB_NOOBJ, /* Object file not found */ 41 EMDB_NOMAP, /* No mapping for address */ 42 EMDB_NODCMD, /* Dcmd not found */ 43 EMDB_NOWALK, /* Walk not found */ 44 EMDB_DCMDEXISTS, /* Dcmd already exists */ 45 EMDB_WALKEXISTS, /* Walk already exists */ 46 EMDB_NOPLAT, /* No platform support */ 47 EMDB_NOPROC, /* No process created yet */ 48 EMDB_NAME2BIG, /* Name is too long */ 49 EMDB_NAMEBAD, /* Name is invalid */ 50 EMDB_ALLOC, /* Failed to allocate memory */ 51 EMDB_NOMOD, /* Module not found */ 52 EMDB_BUILTINMOD, /* Cannot unload builtin mod */ 53 EMDB_NOWCB, /* No walk is active */ 54 EMDB_BADWCB, /* Invalid walk state */ 55 EMDB_NOWALKLOC, /* Walker doesn't accept addr */ 56 EMDB_NOWALKGLOB, /* Walker requires addr */ 57 EMDB_WALKINIT, /* Walker init failed */ 58 EMDB_WALKLOOP, /* Walker layering loop */ 59 EMDB_IORO, /* I/O stream is read-only */ 60 EMDB_IOWO, /* I/O stream is write-only */ 61 EMDB_NOSYMADDR, /* No symbol for address */ 62 EMDB_NODIS, /* Disassembler not found */ 63 EMDB_DISEXISTS, /* Disassembler exists */ 64 EMDB_NOSESPEC, /* No software event spec */ 65 EMDB_NOXD, /* No such xdata */ 66 EMDB_XDEXISTS, /* Xdata name already exists */ 67 EMDB_TGTNOTSUP, /* Op not supported by tgt */ 68 EMDB_TGTRDONLY, /* Tgt not open for writing */ 69 EMDB_BADREG, /* Invalid register name */ 70 EMDB_NOREGS, /* No registers for thread */ 71 EMDB_STKALIGN, /* Bad stack pointer align */ 72 EMDB_NOEXEC, /* No executable file open */ 73 EMDB_EVAL, /* Failed to mdb_eval() */ 74 EMDB_CANCEL, /* Command cancelled by user */ 75 EMDB_PARTIAL, /* Partial read occurred */ 76 EMDB_DCFAIL, /* Dcmd failed */ 77 EMDB_DCUSAGE, /* Dcmd usage error */ 78 EMDB_TGT, /* Internal target error */ 79 EMDB_BADSYSNUM, /* Invalid system call code */ 80 EMDB_BADSIGNUM, /* Invalid signal number */ 81 EMDB_BADFLTNUM, /* Invalid fault number */ 82 EMDB_TGTBUSY, /* Target is busy executing */ 83 EMDB_TGTZOMB, /* Target is a zombie */ 84 EMDB_TGTCORE, /* Target is a core file */ 85 EMDB_TGTLOST, /* Target is lost to mdb */ 86 EMDB_TDB, /* libthread_db error */ 87 EMDB_RTLD, /* libdl error */ 88 EMDB_RTLD_DB, /* librtld_db error */ 89 EMDB_NORTLD, /* no librtld_db */ 90 EMDB_NOTHREAD, /* Invalid thread identifier */ 91 EMDB_SPECDIS, /* Event specifier disabled */ 92 EMDB_NOLMID, /* Link map not found */ 93 EMDB_NORETADDR, /* No return address found */ 94 EMDB_WPRANGE, /* Watchpoint size overflow */ 95 EMDB_WPDUP, /* Watchpoint duplicate */ 96 EMDB_BPALIGN, /* Breakpoint alignment err */ 97 EMDB_NODEM, /* Bad demangler library */ 98 EMDB_EOF, /* Read failed at EOF */ 99 EMDB_NOCTF, /* No CTF data for module */ 100 EMDB_CTF, /* libctf error */ 101 EMDB_TLS, /* TLS not allocated */ 102 EMDB_NOTLS, /* TLS not supported in obj */ 103 EMDB_CTFNOMEMB, /* No CTF member of type */ 104 EMDB_CTX, /* Action in invalid context */ 105 EMDB_INCOMPAT, /* Mod incompat. w/ target */ 106 EMDB_TGTHWNOTSUP, /* Not sup by tgt on this h/w */ 107 EMDB_KINACTIVE, /* kmdb is not loaded */ 108 EMDB_KACTIVATING, /* kmdb is loading */ 109 EMDB_KACTIVE, /* kmdb is already loaded */ 110 EMDB_KDEACTIVATING, /* kmdb is unloading */ 111 EMDB_KNOLOAD, /* kmdb could not be loaded */ 112 EMDB_KNOUNLOAD, /* kmdb cannot be unloaded */ 113 EMDB_WPTOOMANY, /* Too many watchpoints */ 114 EMDB_DTACTIVE, /* DTrace is active */ 115 EMDB_KMODNOUNLOAD, /* module can't be unloaded */ 116 EMDB_STKFRAME, /* Bad stack frame pointer */ 117 EMDB_SHORTWRITE /* unexpected short write */ 118 }; 119 120 #endif /* _MDB */ 121 122 #ifdef __cplusplus 123 } 124 #endif 125 126 #endif /* _MDB_ERRNO_H */ 127