* gdbtk.c (gdb_loc): Correct truncation of PC on 64-bit MIPS.
[deliverable/binutils-gdb.git] / gdb / mn10300-tdep.c
CommitLineData
ddc2888e
GN
1/* Target-dependent code for the NEC MN10300 for GDB, the GNU debugger.
2 Copyright 1996, Free Software Foundation, Inc.
3
4This file is part of GDB.
5
6This program is free software; you can redistribute it and/or modify
7it under the terms of the GNU General Public License as published by
8the Free Software Foundation; either version 2 of the License, or
9(at your option) any later version.
10
11This program is distributed in the hope that it will be useful,
12but WITHOUT ANY WARRANTY; without even the implied warranty of
13MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14GNU General Public License for more details.
15
16You should have received a copy of the GNU General Public License
17along with this program; if not, write to the Free Software
18Foundation, 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
35struct 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
42struct prologue_info
43{
44 int framereg;
45 int frameoffset;
46 int start_function;
47 struct pifsr *pifsrs;
48};
49
50static CORE_ADDR
51mn10300_scan_prologue (pc, pi)
52 CORE_ADDR pc;
53 struct prologue_info *pi;
54{
55}
56
57void
58mn10300_init_extra_frame_info (fi)
59 struct frame_info *fi;
60{
61}
62
63CORE_ADDR
64mn10300_frame_chain (fi)
65 struct frame_info *fi;
66{
67}
68
69CORE_ADDR
70mn10300_find_callers_reg (fi, regnum)
71 struct frame_info *fi;
72 int regnum;
73{
74}
75
76CORE_ADDR
77mn10300_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
86void
87mn10300_pop_frame (frame)
88 struct frame_info *frame;
89{
90}
91
92CORE_ADDR
93mn10300_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
102CORE_ADDR
103mn10300_push_return_address (pc, sp)
104 CORE_ADDR pc;
105 CORE_ADDR sp;
106{
107}
108
109CORE_ADDR
110mn10300_frame_saved_pc (fi)
111 struct frame_info *fi;
112{
113}
114
115void
116get_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
128int
129mn10300_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
140void
141_initialize_mn10300_tdep ()
142{
143 tm_print_insn = print_insn_mn10300;
144}
This page took 0.027989 seconds and 4 git commands to generate.