cvs commit: src/sys/powerpc/powerpc db_trace.c

Peter Grehan grehan at FreeBSD.org
Sun Oct 30 00:56:12 PDT 2005


grehan      2005-10-30 07:56:11 UTC

  FreeBSD src repository

  Modified files:
    sys/powerpc/powerpc  db_trace.c 
  Log:
  In stack_save, stop when a trap-frame is encountered. This prevents
  trying to access user-space stack addresses when a user fault
  is encountered, as occurs when GEOM KTR code is handling a page fault
  and is using stack_save() to capture a trace for debug purposes.
  
  It may be possible to walk beyond the trap-frame if it is a kernel fault,
  as db_backtrace() does, but I don't think that complexity is needed in
  this routine.
  
  MFC after:      3 days
  
  Revision  Changes    Path
  1.11      +10 -0     src/sys/powerpc/powerpc/db_trace.c


More information about the cvs-src mailing list