Print this page
9210 remove KMDB branch debugging support
9211 ::crregs could do with cr2/cr3 support
9209 ::ttrace should be able to filter by thread
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Reviewed by: Yuri Pankov <yuripv@yuripv.net>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/sparc/kmdb/kvm_isadep.c
          +++ new/usr/src/cmd/mdb/sparc/kmdb/kvm_isadep.c
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16   16   * If applicable, add the following below this CDDL HEADER, with the
  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 2006 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
       25 + *
       26 + * Copyright 2018 Joyent, Inc.
  25   27   */
  26   28  
  27      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  28      -
  29   29  /*
  30   30   * isa-dependent portions of the kmdb target
  31   31   */
  32   32  
  33   33  #include <mdb/mdb_kreg_impl.h>
  34   34  #include <mdb/mdb_debug.h>
  35   35  #include <mdb/mdb_modapi.h>
  36   36  #include <mdb/mdb_v9util.h>
  37   37  #include <mdb/mdb_target_impl.h>
  38   38  #include <mdb/mdb_err.h>
↓ open down ↓ 331 lines elided ↑ open up ↑
 370  370  
 371  371                  if (OP(instr) == OP_ARITH && OP3(instr) == OP3_SAVE)
 372  372                          *p = o7 + 2 * sizeof (mdb_instr_t);
 373  373                  else
 374  374                          *p = i7 + 2 * sizeof (mdb_instr_t);
 375  375          }
 376  376  
 377  377          return (0);
 378  378  }
 379  379  
 380      -/*ARGSUSED*/
 381      -int
 382      -kmt_step_branch(mdb_tgt_t *t)
 383      -{
 384      -        return (set_errno(EMDB_TGTHWNOTSUP));
 385      -}
 386      -
 387  380  static const char *
 388  381  regno2name(int idx)
 389  382  {
 390  383          const mdb_tgt_regdesc_t *rd;
 391  384  
 392  385          for (rd = mdb_sparcv9_kregs; rd->rd_name != NULL; rd++) {
 393  386                  if (idx == rd->rd_num)
 394  387                          return (rd->rd_name);
 395  388          }
 396  389  
↓ open down ↓ 134 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX