how to access PC

Mohammed Tajuddin taj.subhani at oracle.com
Thu Sep 11 04:21:46 EST 2003


Hello,

getcontext defined in sys/ucontext.h fails on ppc64. I am using gcc 3.2,
is that a problem. Am I missing something here? Here is a sample program
I tried.


#include <sys/ucontext.h>

int main()
{
  ucontext_t  ucon, * context;
  context = &ucon;

  if ( 0 != getcontext(context)) {
    printf("getcontext failed \n");
  }
  return 0;
}


Regards,
TAJ

** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list