Print this page
10812 ctf tools shouldn't add blank labels
10813 ctf symbol mapping needs work
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>

*** 23,33 **** /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* ! * Copyright (c) 2015, Joyent, Inc. */ #include <sys/sysmacros.h> #include <sys/param.h> #include <sys/mman.h> --- 23,33 ---- /* * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ /* ! * Copyright (c) 2019, Joyent, Inc. */ #include <sys/sysmacros.h> #include <sys/param.h> #include <sys/mman.h>
*** 2124,2133 **** --- 2124,2134 ---- if ((dld->dld_name = ctf_strdup(name)) == NULL) { ctf_free(dld, sizeof (ctf_dldef_t)); return (ctf_set_errno(fp, EAGAIN)); } + ctf_dprintf("adding label %s, %ld\n", name, type); dld->dld_type = type; fp->ctf_dtstrlen += strlen(name) + 1; ctf_dld_insert(fp, dld, position); fp->ctf_flags |= LCTF_DIRTY;