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/common/mdb/mdb_cmds.c
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_cmds.c
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  24   24   * Use is subject to license terms.
  25   25   */
  26   26  
  27   27  /*
  28   28   * Copyright (c) 2012 by Delphix. All rights reserved.
  29      - * Copyright (c) 2015 Joyent, Inc. All rights reserved.
       29 + * Copyright (c) 2018 Joyent, Inc. All rights reserved.
  30   30   * Copyright (c) 2013 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
  31   31   * Copyright (c) 2015, 2017 by Delphix. All rights reserved.
  32   32   */
  33   33  
  34   34  #include <sys/elf.h>
  35   35  #include <sys/elf_SPARC.h>
  36   36  
  37   37  #include <libproc.h>
  38   38  #include <stdlib.h>
  39   39  #include <string.h>
↓ open down ↓ 2696 lines elided ↑ open up ↑
2736 2736  {
2737 2737          int (*func)(mdb_tgt_t *, mdb_tgt_status_t *) = &mdb_tgt_step;
2738 2738          const char *name = "single-step";
2739 2739  
2740 2740          if (argc > 0 && argv->a_type == MDB_TYPE_STRING) {
2741 2741                  if (strcmp(argv->a_un.a_str, "out") == 0) {
2742 2742                          func = &mdb_tgt_step_out;
2743 2743                          name = "step (out)";
2744 2744                          argv++;
2745 2745                          argc--;
2746      -                } else if (strcmp(argv->a_un.a_str, "branch") == 0) {
2747      -                        func = &mdb_tgt_step_branch;
2748      -                        name = "step (branch)";
2749      -                        argv++;
2750      -                        argc--;
2751 2746                  } else if (strcmp(argv->a_un.a_str, "over") == 0) {
2752 2747                          func = &mdb_tgt_next;
2753 2748                          name = "step (over)";
2754 2749                          argv++;
2755 2750                          argc--;
2756 2751                  }
2757 2752          }
2758 2753  
2759 2754          return (cmd_cont_common(addr, flags, argc, argv, func, name));
2760 2755  }
↓ open down ↓ 501 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX