Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 20 Feb 2007 18:10:13 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/gnu/usr.bin/gdb/libgdb fbsd-threads.c
Message-ID:  <200702201810.l1KIADGh086903@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
emaste      2007-02-20 18:10:13 UTC

  FreeBSD src repository

  Modified files:
    gnu/usr.bin/gdb/libgdb fbsd-threads.c 
  Log:
  Avoid writing uninitialized stack data into a thread's MMX/SSE state by
  first getting the current state with td_thr_getxmmregs_p.  Without this,
  debugging a threaded app that uses libthr resulted in kernel panics or
  spurious SIGFPEs for me.
  
  (As of revision 1.6, sys/i386/i386/ptrace_machdep.c masks off the
  reserved bits in the mxcsr register, which prevents the kernel panics.)
  
  Architectures without PT_GETXMMREGS are not affected.
  
  MFC after:      1 week
  
  Revision  Changes    Path
  1.16      +12 -7     src/gnu/usr.bin/gdb/libgdb/fbsd-threads.c



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