source: rtems/c/src/librdbg/src/i386/any/remdeb_f.x @ 1f788a3

4.104.114.84.95
Last change on this file since 1f788a3 was 1f788a3, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/15/04 at 13:53:12

Remove stray white spaces.

  • Property mode set to 100644
File size: 1.4 KB
Line 
1/*
2 **************************************************************************
3 *
4 * Component =   rdblib
5 *
6 * Synopsis  =   remdeb_f.x
7 *
8 * $Id$
9 *
10 **************************************************************************
11 */
12
13struct xdr_regs
14{
15  unsigned int  tabreg[19];
16};
17
18#ifdef RPC_HDR
19
20%/* now define register macros to apply to xdr_reg struct */
21%
22%#define GS     0
23%#define FS     1
24%#define ES     2
25%#define DS     3
26%#define EDI    4
27%#define ESI    5
28%#define EBP    6
29%#define ESP    7
30%#define EBX    8
31%#define EDX    9
32%#define ECX    10
33%#define EAX    11
34%#define TRAPNO 12
35%#define ERR    13
36%#define EIP    14
37%#define CS     15
38%#define EFL    16
39%#define UESP   17
40%#define SS     18
41%
42%#define REG_PC tabreg[EIP]     /* PC (eip) register offset */
43%#define REG_SP tabreg[UESP]    /* SP (uesp) register offset */
44%#define REG_FP tabreg[EBP]     /* FP (ebp) register offset */
45
46%/* now define the BREAKPOINT mask technique to a long word */
47%#define SET_BREAK(l)   ((l&0xFFFFFF00) | 0xCC)
48%#define IS_BREAK(l)    (((l) & 0xFF) == 0xCC)
49%#define ORG_BREAK(c,p) (((c) & 0xFFFFFF00) | ((p) & 0xFF))
50%#define IS_STEP(regs)  (regs.tabreg[TRAPNO] == 1) /* was step and not break */
51%#define BREAK_ADJ      1       /* must subtract one from address after bp */
52%#define BREAK_SIZE     1       /* Breakpoint occupies one byte */
53
54%#define TARGET_PROC_TYPE  0
55
56#endif
Note: See TracBrowser for help on using the repository browser.