Back to index

glibc  2.9
Functions | Variables
unwind-resume.c File Reference
#include <dlfcn.h>
#include <stdio.h>
#include <unwind.h>

Go to the source code of this file.


static void init (void)
 asm (" .globl _Unwind_Resume\n"" .type _Unwind_Resume, %function\n""_Unwind_Resume:\n"" stmfd sp!, {r4, r5, r6, lr}\n"" ldr r4, 1f\n"" ldr r5, 2f\n""3: add r4, pc, r4\n"" ldr r3, [r4, r5]\n"" mov r6, r0\n"" cmp r3, #0\n"" beq 4f\n""5: mov r0, r6\n"" ldmfd sp!, {r4, r5, r6, lr}\n"" bx r3\n""4: bl init\n"" ldr r3, [r4, r5]\n"" b 5b\n""1: .word _GLOBAL_OFFSET_TABLE_ - 3b - 8\n""2: .word libgcc_s_resume(GOTOFF)\n"" .size _Unwind_Resume, .-_Unwind_Resume\n")
_Unwind_Reason_Code __gcc_personality_v0 (_Unwind_State state, struct _Unwind_Exception *ue_header, struct _Unwind_Context *context)


static void(* libgcc_s_resume )(struct _Unwind_Exception *exc)
static _Unwind_Reason_Code(* libgcc_s_personality )(_Unwind_State, struct _Unwind_Exception *, struct _Unwind_Context *)

Function Documentation

_Unwind_Reason_Code __gcc_personality_v0 ( _Unwind_State  state,
struct _Unwind_Exception ue_header,
struct _Unwind_Context context 

Definition at line 75 of file unwind-resume.c.

  if (__builtin_expect (libgcc_s_personality == NULL, 0))
    init ();
  return libgcc_s_personality (state, ue_header, context);
asm ( " .globl _Unwind_Resume\n"" .type  _Unwind_Resume,
%function\n""_Unwind_Resume:\n""stmfd sp!   
static void init ( void  ) [static]

Definition at line 28 of file unwind-resume.c.

  void *resume, *personality;
  void *handle;

  handle = __libc_dlopen ("");

  if (handle == NULL
      || (resume = __libc_dlsym (handle, "_Unwind_Resume")) == NULL
      || (personality = __libc_dlsym (handle, "__gcc_personality_v0")) == NULL)
    __libc_fatal (" must be installed for pthread_cancel to work\n");

  libgcc_s_resume = resume;
  libgcc_s_personality = personality;

Here is the call graph for this function:

Variable Documentation

Definition at line 26 of file unwind-resume.c.

void(* libgcc_s_resume)(struct _Unwind_Exception *exc) [static]

Definition at line 24 of file unwind-resume.c.