source: rtems/c/src/librdbg/include/rdbg/i386/rdbg_f.h @ 569a01f

4.104.114.84.95
Last change on this file since 569a01f was 40cf43ea, checked in by Joel Sherrill <joel.sherrill@…>, on Feb 1, 2002 at 5:00:01 PM
  • 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: 819 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
20#define EFLAGS_TF 0x00100
21
22static inline int isRdbgException(Exception_context *ctx)
23{
24  if (
25      ctx->ctx->idtIndex != I386_EXCEPTION_DEBUG &&
26      ctx->ctx->idtIndex != I386_EXCEPTION_BREAKPOINT &&
27      ctx->ctx->idtIndex != I386_EXCEPTION_ENTER_RDBG
28      ) return 0;
29  else return 1;
30}
31static inline int getExcNum(Exception_context *ctx)
32{
33  return ctx->ctx->idtIndex;
34}
35
36extern void connect_rdbg_exception();
37extern void disconnect_rdbg_exception();
38
39#endif
40
41
42
Note: See TracBrowser for help on using the repository browser.