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

4.104.114.84.95
Last change on this file since 40cf43ea was 40cf43ea, checked in by Joel Sherrill <joel.sherrill@…>, on 02/01/02 at 17:00:01
  • So many patches have been posted recently on the mailing list and because we were unable to find correct solution to compile on various linux distros (due to rpcgen incompatibilities), and because the coding style of rdbg was rather inconsistant among various pieces of code, I decided to:

1) make some cleaning regarding global coding style (using

indent + manual edits),

2) incorporate/review the paches send by various people

(S. Holford, T. Strauman),

3) Fix the bug due to varying rpcgen code generation

in remdeb_svc.c,

4) Remove some dead code,
5) Apply a patches enabling to call enterRdbg imediately

after rdbg initialization is done,

NB : the paches is huge but it is mainly due to coding styke chnages.
Only few lines of codes have been really changed and they do not impact
rdbg functionnality (AFAIKT).

  • include/rdbg/servrpc.h, include/rdbg/i386/rdbg_f.h, include/rdbg/m68k/rdbg_f.h, include/rdbg/powerpc/rdbg_f.h, src/_servtgt.c, src/awk.svc, src/excep.c, src/ptrace.c, src/rdbg.c, src/remdeb.x, src/servbkpt.c, src/servcon.c, src/servrpc.c, src/servtgt.c, src/servtsp.c, src/servutil.c, src/i386/excep_f.c, src/i386/rdbg_f.c, src/i386/any/Makefile.am, src/i386/any/remdeb.h, src/i386/any/remdeb_svc.c, src/i386/any/remdeb_xdr.c, src/m68k/excep_f.c, src/m68k/rdbg_f.c, src/m68k/any/Makefile.am, src/m68k/any/remdeb.h, src/m68k/any/remdeb_svc.c, src/m68k/any/remdeb_xdr.c, src/powerpc/excep_f.c, src/powerpc/rdbg_f.c, src/powerpc/new_exception_processing/Makefile.am, src/powerpc/new_exception_processing/remdeb.h, src/powerpc/new_exception_processing/remdeb_svc.c, src/powerpc/new_exception_processing/remdeb_xdr.c: Modified.
  • Property mode set to 100644
File size: 780 bytes
RevLine 
[981b99f]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 &&
[40cf43ea]24      ctx->ctx->_EXC_number != ASM_PROG_VECTOR &&
[981b99f]25      ctx->ctx->_EXC_number != ASM_TRACE_VECTOR
26      ) return 0;
27  else return 1;
28}
29static inline int getExcNum(Exception_context *ctx)
30{
31  return ctx->ctx->_EXC_number;
32}
33
34extern void connect_rdbg_exception();
[40cf43ea]35extern void disconnect_rdbg_exception();
[981b99f]36
37#endif
38
39
40
Note: See TracBrowser for help on using the repository browser.