OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [m68k/] [tm-news.h] - Blame information for rev 1771

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* OBSOLETE /* Parameters for execution on a Sony/NEWS, for GDB, the GNU debugger. */
2
/* OBSOLETE    Copyright 1987, 1989, 1991, 1993, 1999, 2000 */
3
/* OBSOLETE    Free Software Foundation, Inc. */
4
/* OBSOLETE  */
5
/* OBSOLETE    This file is part of GDB. */
6
/* OBSOLETE  */
7
/* OBSOLETE    This program is free software; you can redistribute it and/or modify */
8
/* OBSOLETE    it under the terms of the GNU General Public License as published by */
9
/* OBSOLETE    the Free Software Foundation; either version 2 of the License, or */
10
/* OBSOLETE    (at your option) any later version. */
11
/* OBSOLETE  */
12
/* OBSOLETE    This program is distributed in the hope that it will be useful, */
13
/* OBSOLETE    but WITHOUT ANY WARRANTY; without even the implied warranty of */
14
/* OBSOLETE    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the */
15
/* OBSOLETE    GNU General Public License for more details. */
16
/* OBSOLETE  */
17
/* OBSOLETE    You should have received a copy of the GNU General Public License */
18
/* OBSOLETE    along with this program; if not, write to the Free Software */
19
/* OBSOLETE    Foundation, Inc., 59 Temple Place - Suite 330, */
20
/* OBSOLETE    Boston, MA 02111-1307, USA.  */ */
21
/* OBSOLETE  */
22
/* OBSOLETE #include "regcache.h" */
23
/* OBSOLETE  */
24
/* OBSOLETE /* See following cpu type determination macro to get the machine type. */
25
/* OBSOLETE  */
26
/* OBSOLETE    Here is an m-news.h file for gdb.  It supports the 68881 registers. */
27
/* OBSOLETE    by hikichi@srava.sra.junet */
28
/* OBSOLETE  */
29
/* OBSOLETE    * Ptrace for handling floating register has a bug(before NEWS OS version 2.2), */
30
/* OBSOLETE    * After NEWS OS version 3.2, some of ptrace's bug is fixed. */
31
/* OBSOLETE    But we cannot change the floating register(see adb(1) in OS 3.2) yet.  */ */
32
/* OBSOLETE  */
33
/* OBSOLETE /* Extract from an array REGBUF containing the (raw) register state */
34
/* OBSOLETE    a function return value of type TYPE, and copy that, in virtual format, */
35
/* OBSOLETE    into VALBUF.  */ */
36
/* OBSOLETE  */
37
/* OBSOLETE /* when it return the floating value, use the FP0 in NEWS.  */ */
38
/* OBSOLETE #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ */
39
/* OBSOLETE   { if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \ */
40
/* OBSOLETE       { \ */
41
/* OBSOLETE     REGISTER_CONVERT_TO_VIRTUAL (FP0_REGNUM, TYPE, \ */
42
/* OBSOLETE                                  &REGBUF[REGISTER_BYTE (FP0_REGNUM)], \ */
43
/* OBSOLETE                                  VALBUF); \ */
44
/* OBSOLETE       } \ */
45
/* OBSOLETE     else \ */
46
/* OBSOLETE       memcpy (VALBUF, REGBUF, TYPE_LENGTH (TYPE)); } */
47
/* OBSOLETE  */
48
/* OBSOLETE /* Write into appropriate registers a function return value */
49
/* OBSOLETE    of type TYPE, given in virtual format.  */ */
50
/* OBSOLETE  */
51
/* OBSOLETE /* when it return the floating value, use the FP0 in NEWS.  */ */
52
/* OBSOLETE #define STORE_RETURN_VALUE(TYPE,VALBUF) \ */
53
/* OBSOLETE   { if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \ */
54
/* OBSOLETE       { \ */
55
/* OBSOLETE     char raw_buf[REGISTER_RAW_SIZE (FP0_REGNUM)]; \ */
56
/* OBSOLETE     REGISTER_CONVERT_TO_RAW (TYPE, FP0_REGNUM, VALBUF, raw_buf); \ */
57
/* OBSOLETE     write_register_bytes (REGISTER_BYTE (FP0_REGNUM), \ */
58
/* OBSOLETE                           raw_buf, REGISTER_RAW_SIZE (FP0_REGNUM)); \ */
59
/* OBSOLETE       } \ */
60
/* OBSOLETE     else \ */
61
/* OBSOLETE       write_register_bytes (0, VALBUF, TYPE_LENGTH (TYPE)); } */
62
/* OBSOLETE  */
63
/* OBSOLETE /* Return number of args passed to a frame. */
64
/* OBSOLETE    Can return -1, meaning no way to tell.  */ */
65
/* OBSOLETE  */
66
/* OBSOLETE extern int news_frame_num_args (struct frame_info *fi); */
67
/* OBSOLETE #define FRAME_NUM_ARGS(fi) (news_frame_num_args ((fi))) */
68
/* OBSOLETE  */
69
/* OBSOLETE #include "m68k/tm-m68k.h" */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.