source: rtems/c/src/librdbg/src/m68k/any/remdeb_f.x @ c92fb641

4.104.114.84.95
Last change on this file since c92fb641 was c92fb641, checked in by Joel Sherrill <joel.sherrill@…>, on 10/19/00 at 15:35:21

2000-10-19 Antti P Miettinen <anmietti@…>

  • configure.in: Add m68k support.
  • include/rdbg/m68k, src/m68k, src/m68k/any: New subdirectory.
  • src/_servtgt.c: add status text to prinf upon task creation failure.
  • src/rdbg.c: reconnect rdbg exception handlers upon RPC calls.
  • src/m68k/Makefile.am, src/m68k/any/Makefile.am, src/m68k/any/remdeb_f.x, src/m68k/any/.cvsignore, src/m68k/any/remdeb.h, src/m68k/any/remdeb_xdr.c, src/m68k/any/remdeb_svc.c, src/m68k/excep_f.c, src/m68k/rdbg_cpu_asm.S, src/m68k/rdbg_f.c, src/m68k/.cvsignore: New files.
  • Property mode set to 100644
File size: 2.3 KB
Line 
1/*
2 **************************************************************************
3 *
4 * Component =   rdblib
5 *
6 * Synopsis  =   remdeb_f.x
7 *
8 *
9 *  Copyright(C) 2000 Canon Research Center France SA.
10 * 
11 *  Developped by :
12 *      Eric Valette,           mail to : valette@crf.canon.fr
13 *      Emmanuel Raguet,        mail to : raguet@crf.canon.fr
14 *
15 * $Header$
16 *
17 **************************************************************************
18 */
19/* Basic, host-specific, and target-specific definitions for GDB.
20   Copyright (C) 1986, 1989, 1991, 1992, 1993, 1994, 1995
21   Free Software Foundation, Inc.
22
23This file is part of GDB.
24
25This program is free software; you can redistribute it and/or modify
26it under the terms of the GNU General Public License as published by
27the Free Software Foundation; either version 2 of the License, or
28(at your option) any later version.
29
30This program is distributed in the hope that it will be useful,
31but WITHOUT ANY WARRANTY; without even the implied warranty of
32MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
33GNU General Public License for more details.
34
35You should have received a copy of the GNU General Public License
36along with this program; if not, write to the Free Software
37Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
38
39struct xdr_regs {
40        int     r_dreg[8];      /* data registers */
41        int     r_areg[8];      /* address registers */
42        int     r_sr;           /* status register (actually a short) */
43        int     r_pc;           /* program counter */
44        int     r_vec;          /* last vector */
45};
46
47#ifdef RPC_HDR
48
49%/* now define register macros to apply to xdr_reg struct */
50%
51
52%#define r_r0   r_dreg[0]       /* r0 for portability */
53%#define r_sp   r_areg[7]       /* user stack pointer */
54%#define r_ps   r_sr
55
56%#define REG_PC r_pc      /* PC register offset */
57%#define REG_SP r_areg[7] /* SP register offset */
58%#define REG_FP r_areg[6] /* FP register offset */
59
60%/* now define the BREAKPOINT mask technique to a long word */
61%#define SET_BREAK(l)   ((l&0x0000FFFF) | 0x4E4F0000)  /* TRAP 15 */
62%#define IS_BREAK(l)    (((l) & 0xFFFF0000) == 0x4E4F0000)
63%#define ORG_BREAK(c,p) (((c) & 0x0000FFFF) | ((p) & 0xFFFF0000))
64%#define IS_STEP(regs)  ((regs).r_vec == 9)
65%#define BREAK_ADJ      0
66%#define BREAK_SIZE     2
67
68%#define TARGET_PROC_TYPE  2
69
70#endif
Note: See TracBrowser for help on using the repository browser.