summaryrefslogtreecommitdiffstats
path: root/c/src/librdbg/include/rdbg/powerpc/rdbg_f.h
blob: a90cc6a448464444e7fd33a9a8b825e9513a3950 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
 **************************************************************************
 *
 * Component =   RDBG
 * Module =   rdbg_f.h
 *
 * Synopsis = Machine-dependent header file
 *
 * $Id$
 *
 **************************************************************************
 */

#ifndef RDBG_F_H
#define RDBG_F_H

#include <rtems.h>
#include <rdbg/remdeb.h>

static inline  int isRdbgException(Exception_context *ctx)
{
  if (
      ctx->ctx->_EXC_number != ASM_SYS_VECTOR &&
      ctx->ctx->_EXC_number != ASM_PROG_VECTOR &&
      ctx->ctx->_EXC_number != ASM_TRACE_VECTOR
      ) return 0;
  else return 1;
}
static inline int getExcNum(Exception_context *ctx)
{
  return ctx->ctx->_EXC_number;
}

extern void connect_rdbg_exception();
extern void disconnect_rdbg_exception();

#endif