Print this page
XXX AVX procfs

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/mdb/common/mdb/mdb_proc.c
          +++ new/usr/src/cmd/mdb/common/mdb/mdb_proc.c
↓ open down ↓ 4712 lines elided ↑ open up ↑
4713 4713  static int
4714 4714  pt_lwp_setregs(mdb_tgt_t *t, void *tap, mdb_tgt_tid_t tid, prgregset_t gregs)
4715 4715  {
4716 4716          if (t->t_pshandle != NULL) {
4717 4717                  return (ptl_err(Plwp_setregs(t->t_pshandle,
4718 4718                      (lwpid_t)tid, gregs)));
4719 4719          }
4720 4720          return (set_errno(EMDB_NOPROC));
4721 4721  }
4722 4722  
4723      -#ifdef  __sparc
4724      -
4725 4723  /*ARGSUSED*/
4726 4724  static int
4727 4725  pt_lwp_getxregs(mdb_tgt_t *t, void *tap, mdb_tgt_tid_t tid, prxregset_t *xregs)
4728 4726  {
4729 4727          if (t->t_pshandle != NULL) {
4730 4728                  return (ptl_err(Plwp_getxregs(t->t_pshandle,
4731 4729                      (lwpid_t)tid, xregs)));
4732 4730          }
4733 4731          return (set_errno(EMDB_NOPROC));
4734 4732  }
↓ open down ↓ 3 lines elided ↑ open up ↑
4738 4736  pt_lwp_setxregs(mdb_tgt_t *t, void *tap, mdb_tgt_tid_t tid,
4739 4737      const prxregset_t *xregs)
4740 4738  {
4741 4739          if (t->t_pshandle != NULL) {
4742 4740                  return (ptl_err(Plwp_setxregs(t->t_pshandle,
4743 4741                      (lwpid_t)tid, xregs)));
4744 4742          }
4745 4743          return (set_errno(EMDB_NOPROC));
4746 4744  }
4747 4745  
4748      -#endif  /* __sparc */
4749      -
4750 4746  /*ARGSUSED*/
4751 4747  static int
4752 4748  pt_lwp_getfpregs(mdb_tgt_t *t, void *tap, mdb_tgt_tid_t tid,
4753 4749      prfpregset_t *fpregs)
4754 4750  {
4755 4751          if (t->t_pshandle != NULL) {
4756 4752                  return (ptl_err(Plwp_getfpregs(t->t_pshandle,
4757 4753                      (lwpid_t)tid, fpregs)));
4758 4754          }
4759 4755          return (set_errno(EMDB_NOPROC));
↓ open down ↓ 11 lines elided ↑ open up ↑
4771 4767          return (set_errno(EMDB_NOPROC));
4772 4768  }
4773 4769  
4774 4770  static const pt_ptl_ops_t proc_lwp_ops = {
4775 4771          (int (*)()) mdb_tgt_nop,
4776 4772          (void (*)()) mdb_tgt_nop,
4777 4773          pt_lwp_tid,
4778 4774          pt_lwp_iter,
4779 4775          pt_lwp_getregs,
4780 4776          pt_lwp_setregs,
4781      -#ifdef __sparc
4782 4777          pt_lwp_getxregs,
4783 4778          pt_lwp_setxregs,
4784      -#endif
4785 4779          pt_lwp_getfpregs,
4786 4780          pt_lwp_setfpregs
4787 4781  };
4788 4782  
4789 4783  static int
4790 4784  pt_tdb_ctor(mdb_tgt_t *t)
4791 4785  {
4792 4786          pt_data_t *pt = t->t_data;
4793 4787          td_thragent_t *tap;
4794 4788          td_err_e err;
↓ open down ↓ 638 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX