Print this page
10132 smatch fixes for MDB
Reviewed by: Andy Fiddaman <andy@omniosce.org>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/intel/mdb/proc_ia32dep.c
          +++ new/usr/src/cmd/mdb/intel/mdb/proc_ia32dep.c
↓ open down ↓ 16 lines elided ↑ open up ↑
  17   17   * fields enclosed by brackets "[]" replaced with your own identifying
  18   18   * information: Portions Copyright [yyyy] [name of copyright owner]
  19   19   *
  20   20   * CDDL HEADER END
  21   21   */
  22   22  /*
  23   23   * Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  /*
  27      - * Copyright 2015 Joyent, Inc.
       27 + * Copyright (c) 2018, Joyent, Inc.
  28   28   */
  29   29  
  30   30  /*
  31   31   * User Process Target Intel 32-bit component
  32   32   *
  33   33   * This file provides the ISA-dependent portion of the user process target.
  34   34   * For more details on the implementation refer to mdb_proc.c.
  35   35   */
  36   36  
  37   37  #include <mdb/mdb_proc.h>
↓ open down ↓ 205 lines elided ↑ open up ↑
 243  243          if (cw & FPPC)
 244  244                  p += mdb_snprintf(p, (size_t)(end - p), "|PC");
 245  245          if (cw & FPRC)
 246  246                  p += mdb_snprintf(p, (size_t)(end - p), "|RC");
 247  247          if (cw & FPIC)
 248  248                  p += mdb_snprintf(p, (size_t)(end - p), "|IC");
 249  249  
 250  250          /*
 251  251           * Decode precision, rounding, and infinity options in control word.
 252  252           */
 253      -        if (cw & FPSIG24)
 254      -                p += mdb_snprintf(p, (size_t)(end - p), "|SIG24");
 255  253          if (cw & FPSIG53)
 256  254                  p += mdb_snprintf(p, (size_t)(end - p), "|SIG53");
 257  255          if (cw & FPSIG64)
 258  256                  p += mdb_snprintf(p, (size_t)(end - p), "|SIG64");
 259  257  
 260  258          if ((cw & FPRC) == (FPRD|FPRU))
 261  259                  p += mdb_snprintf(p, (size_t)(end - p), "|RTZ");
 262  260          else if (cw & FPRD)
 263  261                  p += mdb_snprintf(p, (size_t)(end - p), "|RD");
 264  262          else if (cw & FPRU)
↓ open down ↓ 334 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX