how to access PC

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


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;


** Sent via the linuxppc64-dev mail list. See

More information about the Linuxppc64-dev mailing list