1 /* Target machine parameters for an embedded m68k, for GDB, the GNU debugger.
2 This is for object file formats that don't have underlines on symbols.
3 Copyright 1986, 1987, 1989, 1992 Free Software Foundation, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
25 /* Longjmp info comes from the Sun-3 machine description. Might as well
28 /* Offsets (in target ints) into jmp_buf. Not defined by Sun, but at least
29 documented in a comment in <machine/setjmp.h>! */
31 #define JB_ELEMENT_SIZE 4
50 /* Figure out where the longjmp will land. Slurp the args out of the stack.
51 We expect the first arg to be a pointer to the jmp_buf structure from which
52 we extract the pc (JB_PC) that we will land at. The pc is copied into ADDR.
53 This routine returns true on success */
55 #define GET_LONGJMP_TARGET(ADDR) get_longjmp_target(ADDR)
57 /* Where is the PC after a call? */
63 extern CORE_ADDR m68k_saved_pc_after_call PARAMS ((struct frame_info *));
65 #undef SAVED_PC_AFTER_CALL
66 #define SAVED_PC_AFTER_CALL(frame) \
67 m68k_saved_pc_after_call(frame)