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>

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/mdb/mdb_kproc.c
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_kproc.c
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
       24 + *
       25 + * Copyright 2018 Joyent, Inc.
  24   26   */
  25   27  
  26      -#pragma ident   "%Z%%M% %I%     %E% SMI"
  27      -
  28   28  /*
  29   29   * Kernel Process View Target
  30   30   *
  31   31   * The kproc target is activated when the user is debugging a kernel using the
  32   32   * kvm target and executes a ::context dcmd to change the debugger view to one
  33   33   * of the running processes.  The kvm target's t_setcontext operation will
  34   34   * create and activate a kproc target in response to this call.  The kproc
  35   35   * target itself is built upon the kvm target's libkvm cookie and the ability
  36   36   * to read information from the kernel itself and the ability to read the
  37   37   * address space of a particular user process with kvm_aread().  It also relies
↓ open down ↓ 874 lines elided ↑ open up ↑
 912  912          kp_mapping_iter,                        /* t_mapping_iter */
 913  913          kp_object_iter,                         /* t_object_iter */
 914  914          kp_addr_to_map,                         /* t_addr_to_map */
 915  915          kp_name_to_map,                         /* t_name_to_map */
 916  916          (struct ctf_file *(*)()) mdb_tgt_null,  /* t_addr_to_ctf */
 917  917          (struct ctf_file *(*)()) mdb_tgt_null,  /* t_name_to_ctf */
 918  918          kp_status,                              /* t_status */
 919  919          (int (*)()) mdb_tgt_notsup,             /* t_run */
 920  920          (int (*)()) mdb_tgt_notsup,             /* t_step */
 921  921          (int (*)()) mdb_tgt_notsup,             /* t_step_out */
 922      -        (int (*)()) mdb_tgt_notsup,             /* t_step_branch */
 923  922          (int (*)()) mdb_tgt_notsup,             /* t_next */
 924  923          (int (*)()) mdb_tgt_notsup,             /* t_cont */
 925  924          (int (*)()) mdb_tgt_notsup,             /* t_signal */
 926  925          (int (*)()) mdb_tgt_null,               /* t_add_sbrkpt */
 927  926          (int (*)()) mdb_tgt_null,               /* t_add_vbrkpt */
 928  927          (int (*)()) mdb_tgt_null,               /* t_add_pwapt */
 929  928          (int (*)()) mdb_tgt_null,               /* t_add_vwapt */
 930  929          (int (*)()) mdb_tgt_null,               /* t_add_iowapt */
 931  930          (int (*)()) mdb_tgt_null,               /* t_add_sysenter */
 932  931          (int (*)()) mdb_tgt_null,               /* t_add_sysexit */
↓ open down ↓ 237 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX