Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2003 22:40:59 -0700 (PDT)
From:      Marcel Moolenaar <marcel@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/ia64/ia64 ptrace_machdep.c src/sys/ia64/include ptrace.h
Message-ID:  <200308150540.h7F5exxW019151@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
marcel      2003/08/14 22:40:59 PDT

  FreeBSD src repository

  Modified files:
    sys/ia64/include     ptrace.h 
  Added files:
    sys/ia64/ia64        ptrace_machdep.c 
  Log:
  Introduce two machine specific ptrace(2) requests: PT_GETKSTACK and
  PT_SETKSTACK. These requests allow the tracing process to access the
  dirty registers of the traced process that are on the kernel stack.
  
  Note that there's currently no way to access the rnat register for
  those dirty registers that are not (yet) covered by a nat collection
  point. The interface for this is still being slept on.
  
  Also note that implied by these requests is the division of work:
  The tracing process has to keep track of where registers are spilled
  and is responsible to figure out where the NaT bit of the stacked
  registers are at any time during the execution of the traced process.
  The kernel provides the interfaces but will not abstract the fact
  that the register stack can be split. This model does not follow
  the approach taken in Linux where PT_PEEK and PT_POKE deals with
  this automagically.
  
  Revision  Changes    Path
  1.1       +67 -0     src/sys/ia64/ia64/ptrace_machdep.c (new)
  1.4       +8 -2      src/sys/ia64/include/ptrace.h



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308150540.h7F5exxW019151>