Mon Dec 9 00:14:49 1996 Geoffrey Noer <noer@cygnus.com>
[deliverable/binutils-gdb.git] / gdb / mn10300-tdep.c
1 /* Target-dependent code for the NEC MN10300 for GDB, the GNU debugger.
2 Copyright 1996, Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
19
20 /* Contributed by Geoffrey Noer, noer@cygnus.com */
21
22 #include "defs.h"
23 #include "frame.h"
24 #include "inferior.h"
25 #include "obstack.h"
26 #include "target.h"
27 #include "value.h"
28 #include "bfd.h"
29 #include "gdb_string.h"
30 #include "gdbcore.h"
31 #include "symfile.h"
32
33 /* Info gleaned from scanning a function's prologue. */
34
35 struct pifsr /* Info about one saved reg */
36 {
37 int framereg; /* Frame reg (SP or FP) */
38 int offset; /* Offset from framereg */
39 int reg; /* Saved register number */
40 };
41
42 struct prologue_info
43 {
44 int framereg;
45 int frameoffset;
46 int start_function;
47 struct pifsr *pifsrs;
48 };
49
50 static CORE_ADDR
51 mn10300_scan_prologue (pc, pi)
52 CORE_ADDR pc;
53 struct prologue_info *pi;
54 {
55 }
56
57 void
58 mn10300_init_extra_frame_info (fi)
59 struct frame_info *fi;
60 {
61 }
62
63 CORE_ADDR
64 mn10300_frame_chain (fi)
65 struct frame_info *fi;
66 {
67 }
68
69 CORE_ADDR
70 mn10300_find_callers_reg (fi, regnum)
71 struct frame_info *fi;
72 int regnum;
73 {
74 }
75
76 CORE_ADDR
77 mn10300_skip_prologue (pc)
78 CORE_ADDR pc;
79 {
80 }
81
82 /* Function: pop_frame
83 This routine gets called when either the user uses the `return'
84 command, or the call dummy breakpoint gets hit. */
85
86 void
87 mn10300_pop_frame (frame)
88 struct frame_info *frame;
89 {
90 }
91
92 CORE_ADDR
93 mn10300_push_arguments (nargs, args, sp, struct_return, struct_addr)
94 int nargs;
95 value_ptr *args;
96 CORE_ADDR sp;
97 unsigned char struct_return;
98 CORE_ADDR struct_addr;
99 {
100 }
101
102 CORE_ADDR
103 mn10300_push_return_address (pc, sp)
104 CORE_ADDR pc;
105 CORE_ADDR sp;
106 {
107 }
108
109 CORE_ADDR
110 mn10300_frame_saved_pc (fi)
111 struct frame_info *fi;
112 {
113 }
114
115 void
116 get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
117 char *raw_buffer;
118 int *optimized;
119 CORE_ADDR *addrp;
120 struct frame_info *frame;
121 int regnum;
122 enum lval_type *lval;
123 {
124 generic_get_saved_register (raw_buffer, optimized, addrp,
125 frame, regnum, lval);
126 }
127
128 int
129 mn10300_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
130 char *dummy;
131 CORE_ADDR sp;
132 CORE_ADDR fun;
133 int nargs;
134 value_ptr *args;
135 struct type *type;
136 int gcc_p;
137 {
138 }
139
140 void
141 _initialize_mn10300_tdep ()
142 {
143 tm_print_insn = print_insn_mn10300;
144 }
This page took 0.046717 seconds and 5 git commands to generate.