source: rtems/c/src/librdbg/include/rdbg/powerpc/rdbg_f.h @ df49c60

4.104.114.84.95
Last change on this file since df49c60 was 981b99f, checked in by Joel Sherrill <joel.sherrill@…>, on 08/10/99 at 16:41:44

Patch from Eric Valette <valette@…> and Emmanuel Raguet
<raguet@…>:

  • the dec21140 driver code has been hardened (various bug fixed) Emmanuel,
  • bug in the mcp750 init code have been fixed (interrupt stack/initial stack initialization), BSS correctly cleared (Eric V)
  • remote debugging over TCP/IP is nearly complete (berakpoints, backtrace, variables,...) (Eric V),
  • exception handling code has also been improved in order to fully support RDBG requirements (Eric V),
  • Property mode set to 100644
File size: 689 bytes
Line 
1/*
2 **************************************************************************
3 *
4 * Component =   RDBG
5 * Module =   rdbg_f.h
6 *
7 * Synopsis = Machine-dependent header file
8 *
9 * $Id$
10 *
11 **************************************************************************
12 */
13
14#ifndef RDBG_F_H
15#define RDBG_F_H
16
17#include <rtems.h>
18#include <rdbg/remdeb.h>
19
20static inline  int isRdbgException(Exception_context *ctx)
21{
22  if (
23      ctx->ctx->_EXC_number != ASM_SYS_VECTOR &&
24      ctx->ctx->_EXC_number != ASM_TRACE_VECTOR
25      ) return 0;
26  else return 1;
27}
28static inline int getExcNum(Exception_context *ctx)
29{
30  return ctx->ctx->_EXC_number;
31}
32
33extern void connect_rdbg_exception();
34
35#endif
36
37
38
Note: See TracBrowser for help on using the repository browser.