Print this page
11657 Remove old ctf tools

*** 8,18 **** * source. A copy of the CDDL is also available via the Internet at * http://www.illumos.org/license/CDDL. */ /* ! * Copyright (c) 2019, Joyent, Inc. */ /* * Create CTF from extant debugging information */ --- 8,18 ---- * source. A copy of the CDDL is also available via the Internet at * http://www.illumos.org/license/CDDL. */ /* ! * Copyright 2019 Joyent, Inc. */ /* * Create CTF from extant debugging information */
*** 37,48 **** #define CTFCONVERT_FATAL 1 #define CTFCONVERT_USAGE 2 #define CTFCONVERT_DEFAULT_NTHREADS 4 - #define CTFCONVERT_ALTEXEC "CTFCONVERT_ALTEXEC" - static char *ctfconvert_progname; static void ctfconvert_fatal(const char *fmt, ...) { --- 37,46 ----
*** 220,251 **** } VERIFY(ctf_type_size(fp, cpuid) == sz); } - static void - ctfconvert_altexec(char **argv) - { - const char *alt; - char *altexec; - - alt = getenv(CTFCONVERT_ALTEXEC); - if (alt == NULL || *alt == '\0') - return; - - altexec = strdup(alt); - if (altexec == NULL) - ctfconvert_fatal("failed to allocate memory for altexec\n"); - if (unsetenv(CTFCONVERT_ALTEXEC) != 0) - ctfconvert_fatal("failed to unset %s from environment: %s\n", - CTFCONVERT_ALTEXEC, strerror(errno)); - - (void) execv(altexec, argv); - ctfconvert_fatal("failed to execute alternate program %s: %s", - altexec, strerror(errno)); - } - int main(int argc, char *argv[]) { int c, ifd, err; boolean_t keep = B_FALSE; --- 218,227 ----
*** 262,273 **** boolean_t optx = B_FALSE; boolean_t ignore_non_c = B_FALSE; ctfconvert_progname = basename(argv[0]); - ctfconvert_altexec(argv); - while ((c = getopt(argc, argv, ":ij:kl:L:mo:X")) != -1) { switch (c) { case 'i': ignore_non_c = B_TRUE; break; --- 238,247 ----