Print this page
10075 make usr/src/tools smatch clean

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/ctf/cvt/stabs.c
          +++ new/usr/src/tools/ctf/cvt/stabs.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*
       27 + * Copyright (c) 2018, Joyent, Inc.
       28 + */
       29 +
       30 +/*
  27   31   * Routines used to read stabs data from a file, and to build a tdata structure
  28   32   * based on the interesting parts of that data.
  29   33   */
  30   34  
  31   35  #include <stdio.h>
  32   36  #include <stdlib.h>
  33   37  #include <fcntl.h>
  34   38  #include <unistd.h>
  35   39  #include <assert.h>
  36   40  #include <string.h>
↓ open down ↓ 284 lines elided ↑ open up ↑
 321  325  
 322  326                  /* Make sure the scope tracking is working correctly */
 323  327                  assert(stab->n_type != N_FUN || (iidescp->ii_type != II_GFUN &&
 324  328                      iidescp->ii_type != II_SFUN) || scope == 0);
 325  329  
 326  330                  /*
 327  331                   * The only things we care about that are in local scope are
 328  332                   * the N_PSYM stabs.
 329  333                   */
 330  334                  if (scope && stab->n_type != N_PSYM) {
 331      -                        if (iidescp)
 332      -                                iidesc_free(iidescp);
      335 +                        iidesc_free(iidescp);
 333  336                          goto parse_loop_end;
 334  337                  }
 335  338  
 336  339                  switch (iidescp->ii_type) {
 337  340                  case II_SFUN:
 338  341                          iidescp->ii_owner = xstrdup(curfile);
 339  342                          /*FALLTHROUGH*/
 340  343                  case II_GFUN:
 341  344                          curfun = iidescp;
 342  345                          fnarg_free(iidescp);
↓ open down ↓ 37 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX