Back to index

glibc  2.9
Defines | Functions
jmpbuf-unwind.h File Reference
#include <setjmp.h>
#include <jmpbuf-offsets.h>
#include <stdint.h>
#include <unwind.h>
#include <sysdep.h>

Go to the source code of this file.

Defines

#define _JMPBUF_UNWINDS(jmpbuf, address, demangle)   ((int) (address) < demangle ((jmpbuf)[JB_SP]))
#define _JMPBUF_CFA_UNWINDS_ADJ(_jmpbuf, _context, _adj)   _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)
#define _JMPBUF_UNWINDS_ADJ(_jmpbuf, _address, _adj)   ((uintptr_t) (_address) - (_adj) < _jmpbuf_sp (_jmpbuf) - (_adj))
#define __libc_unwind_longjmp(buf, val)   __libc_longjmp (buf, val)

Functions

static uintptr_t __attribute__ ((unused)) _jmpbuf_sp(__jmp_buf regs)

Define Documentation

#define __libc_unwind_longjmp (   buf,
  val 
)    __libc_longjmp (buf, val)

Definition at line 48 of file jmpbuf-unwind.h.

#define _JMPBUF_CFA_UNWINDS_ADJ (   _jmpbuf,
  _context,
  _adj 
)    _JMPBUF_UNWINDS_ADJ (_jmpbuf, (void *) _Unwind_GetCFA (_context), _adj)

Definition at line 31 of file jmpbuf-unwind.h.

#define _JMPBUF_UNWINDS (   jmpbuf,
  address,
  demangle 
)    ((int) (address) < demangle ((jmpbuf)[JB_SP]))

Definition at line 28 of file jmpbuf-unwind.h.

#define _JMPBUF_UNWINDS_ADJ (   _jmpbuf,
  _address,
  _adj 
)    ((uintptr_t) (_address) - (_adj) < _jmpbuf_sp (_jmpbuf) - (_adj))

Definition at line 44 of file jmpbuf-unwind.h.


Function Documentation

static uintptr_t __attribute__ ( (unused)  ) [inline, static]

Definition at line 34 of file jmpbuf-unwind.h.

{
  uintptr_t sp = regs[JB_SP];
#ifdef PTR_DEMANGLE
  PTR_DEMANGLE (sp);
#endif
  return sp;
}