Back to index

glibc  2.9
Functions
longjmp-ts.c File Reference
#include <hurd/signal.h>
#include <setjmp.h>
#include <jmpbuf-offsets.h>
#include <mach/thread_status.h>

Go to the source code of this file.

Functions

void _hurd_longjmp_thread_state (void *state, jmp_buf env, int val)

Function Documentation

void _hurd_longjmp_thread_state ( void *  state,
jmp_buf  env,
int  val 
)

Definition at line 29 of file longjmp-ts.c.

{
  struct i386_thread_state *ts = state;

  ts->ebx = env[0].__jmpbuf[JB_BX];
  ts->esi = env[0].__jmpbuf[JB_SI];
  ts->edi = env[0].__jmpbuf[JB_DI];
  ts->ebp = env[0].__jmpbuf[JB_BP];
  ts->uesp = env[0].__jmpbuf[JB_SP];
  ts->eip = env[0].__jmpbuf[JB_PC];
  ts->eax = val ?: 1;
}