1 /* Target-dependent code for the NEC MN10300 for GDB, the GNU debugger.
2 Copyright 1996, Free Software Foundation, Inc.
4 This file is part of GDB.
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.
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.
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. */
20 /* Contributed by Geoffrey Noer, noer@cygnus.com */
29 #include "gdb_string.h"
33 /* Info gleaned from scanning a function's prologue. */
35 struct pifsr /* Info about one saved reg */
37 int framereg; /* Frame reg (SP or FP) */
38 int offset; /* Offset from framereg */
39 int reg; /* Saved register number */
51 mn10300_scan_prologue (pc, pi)
53 struct prologue_info *pi;
58 mn10300_init_extra_frame_info (fi)
59 struct frame_info *fi;
64 mn10300_frame_chain (fi)
65 struct frame_info *fi;
70 mn10300_find_callers_reg (fi, regnum)
71 struct frame_info *fi;
77 mn10300_skip_prologue (pc)
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. */
87 mn10300_pop_frame (frame)
88 struct frame_info *frame;
93 mn10300_push_arguments (nargs, args, sp, struct_return, struct_addr)
97 unsigned char struct_return;
98 CORE_ADDR struct_addr;
103 mn10300_push_return_address (pc, sp)
110 mn10300_frame_saved_pc (fi)
111 struct frame_info *fi;
116 get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
120 struct frame_info *frame;
122 enum lval_type *lval;
124 generic_get_saved_register (raw_buffer, optimized, addrp,
125 frame, regnum, lval);
129 mn10300_fix_call_dummy (dummy, sp, fun, nargs, args, type, gcc_p)
141 _initialize_mn10300_tdep ()
143 tm_print_insn = print_insn_mn10300;