Ignore:
Timestamp:
Sep 15, 2010, 8:48:33 PM (9 years ago)
Author:
rme
Message:

In debug_show_fpu(), check to see if Linux's xp->uc_mcontext.fpregs is
NULL, and just return if so.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/lisp-debug.c

    r14197 r14260  
    10341034#ifdef X8664
    10351035#ifdef LINUX
    1036   struct _libc_xmmreg * xmmp = &(xp->uc_mcontext.fpregs->_xmm[0]);
     1036  struct _libc_xmmreg * xmmp = NULL;
    10371037#endif
    10381038#ifdef DARWIN
     
    10561056  float *sp;
    10571057
     1058#ifdef LINUX
     1059  if (xp->uc_mcontext.fpregs)
     1060    xmmp = &(xp->uc_mcontext.fpregs->_xmm[0]);
     1061  else
     1062    /* no fp state, apparently */
     1063    return debug_continue;
     1064#endif
    10581065
    10591066  for (i = 0; i < 16; i++, xmmp++) {
Note: See TracChangeset for help on using the changeset viewer.