Back to index

glibc  2.9
Defines | Typedefs | Functions
framestate.c File Reference
#include <dlfcn.h>
#include <stdlib.h>
#include <unwind-dw2.c>

Go to the source code of this file.


#define STATIC   static
#define __frame_state_for   fallback_frame_state_for


typedef struct frame_state *(* framesf )(void *pc, struct frame_state *)


struct frame_state__frame_state_for (void *pc, struct frame_state *frame_state)

Define Documentation

#define __frame_state_for   fallback_frame_state_for

Definition at line 24 of file framestate.c.

#define STATIC   static

Definition at line 23 of file framestate.c.

Typedef Documentation

typedef struct frame_state*(* framesf)(void *pc, struct frame_state *)

Definition at line 28 of file framestate.c.

Function Documentation

STATIC struct frame_state * __frame_state_for ( void *  pc,
struct frame_state frame_state 
) [read]

Definition at line 33 of file framestate.c.

  static framesf frame_state_for;

  if (frame_state_for == NULL)
      void *handle = __libc_dlopen ("");

      if (handle == NULL
         || (frame_state_for
             = (framesf) __libc_dlsym (handle, "__frame_state_for")) == NULL)
       frame_state_for = fallback_frame_state_for;
       frame_state_for = abort;

  return frame_state_for (pc, frame_state);

Here is the call graph for this function: