]>
Commit | Line | Data |
---|---|---|
188c635f SG |
1 | /* Definitions for General Magic target. |
2 | Copyright (C) 1995 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 | ||
bfe8f516 | 20 | #include "gmagic.h" |
188c635f SG |
21 | |
22 | #define TARGET_SYMFILE_POSTREAD(OBJFILE) init_magic () | |
23 | ||
24 | #define TARGET_CREATE_INFERIOR_HOOK(PID) magic_create_inferior_hook () | |
25 | ||
26 | /* Magic Cap method stepping support. | |
27 | We use the shared library trampoline support to implement stepping over | |
28 | the method dispatcher. We consider the entire dispatcher to be one big | |
29 | trampoline, and use SKIP_TRAMPOLINE_CODE() to skip from a dispatcher | |
30 | entry point to the dispatcher exit site, or from the exit site to the | |
31 | first instruction of the dispatched-to method. */ | |
32 | ||
78570d35 | 33 | #define DYNAMIC_TRAMPOLINE_NEXTPC(pc) \ |
188c635f SG |
34 | magic_skip_dispatcher(pc) |
35 | ||
78570d35 | 36 | #if 0 |
188c635f SG |
37 | #define IN_SOLIB_CALL_TRAMPOLINE(pc, name) \ |
38 | magic_in_dispatcher(pc, name) | |
39 | ||
40 | #define IN_SOLIB_RETURN_TRAMPOLINE(pc, name) \ | |
41 | magic_in_dispatcher(pc, name) | |
78570d35 | 42 | #endif |