File: solaris-context.h

package info (click to toggle)
papi 5.7.0+dfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,856 kB
  • sloc: ansic: 93,265; fortran: 3,338; xml: 2,460; makefile: 815; sh: 290
file content (13 lines) | stat: -rw-r--r-- 338 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef _SOLARIS_CONTEXT_H
#define _SOLARIS_CONTEXT_H

#include <sys/ucontext.h>

typedef siginfo_t _solaris_siginfo_t;
#define hwd_siginfo_t _solaris_siginfo_t
typedef ucontext_t _solaris_ucontext_t;
#define hwd_ucontext_t _solaris_ucontext_t

#define GET_OVERFLOW_ADDRESS(ctx)  (void*)(ctx->ucontext->uc_mcontext.gregs[REG_PC])

#endif