GNU Binutils with patches for OS216
修订版 | 57a5ccc151847dde5b301e85418e7ff8a726855d (tree) |
---|---|
时间 | 2003-05-29 22:51:01 |
作者 | Mark Kettenis <kettenis@gnu....> |
Commiter | Mark Kettenis |
* i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
"dummy-frame.h".
(i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
(_initialize_i386_cygwin_tdep): New prototype.
(i386_cygwin_init_abi): Don't set deprecated_frame_chain and
deprecated_frame_chain_valid.
@@ -1,5 +1,12 @@ | ||
1 | 1 | 2003-05-29 Mark Kettenis <kettenis@gnu.org> |
2 | 2 | |
3 | + * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and | |
4 | + "dummy-frame.h". | |
5 | + (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed. | |
6 | + (_initialize_i386_cygwin_tdep): New prototype. | |
7 | + (i386_cygwin_init_abi): Don't set deprecated_frame_chain and | |
8 | + deprecated_frame_chain_valid. | |
9 | + | |
3 | 10 | * i386-tdep.c (i386_frame_this_id): Remove inside_entry_file |
4 | 11 | check. The majority of i386 targets shouldn't need this, and it |
5 | 12 | hurts Cygwin. |
@@ -1,56 +1,30 @@ | ||
1 | 1 | /* Target-dependent code for Cygwin running on i386's, for GDB. |
2 | + | |
2 | 3 | Copyright 2003 Free Software Foundation, Inc. |
3 | 4 | |
4 | -This file is part of GDB. | |
5 | + This file is part of GDB. | |
5 | 6 | |
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. | |
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. | |
10 | 11 | |
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. | |
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. | |
15 | 16 | |
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. */ | |
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., 59 Temple Place - Suite 330, | |
20 | + Boston, MA 02111-1307, USA. */ | |
19 | 21 | |
20 | 22 | #include "defs.h" |
21 | - | |
22 | -#include "gdb_string.h" | |
23 | -#include "gdbcore.h" | |
24 | -#include "i386-tdep.h" | |
25 | 23 | #include "osabi.h" |
26 | -#include "frame.h" | |
27 | -#include "dummy-frame.h" | |
28 | - | |
29 | -static int | |
30 | -i386_cygwin_frame_chain_valid (CORE_ADDR chain, struct frame_info *thisframe) | |
31 | -{ | |
32 | - /* In the context where this is used, we get the saved PC before we've | |
33 | - successfully unwound far enough to be sure what we've got (it may | |
34 | - be a signal handler caller). If we're dealing with a signal | |
35 | - handler caller, this will return valid, which is fine. If not, | |
36 | - it'll make the correct test. */ | |
37 | - return ((get_frame_type (thisframe) == SIGTRAMP_FRAME) || chain != 0); | |
38 | -} | |
39 | -/* Return the chain-pointer for FRAME. In the case of the i386, the | |
40 | - frame's nominal address is the address of a 4-byte word containing | |
41 | - the calling frame's address. */ | |
42 | -static CORE_ADDR | |
43 | -i386_cygwin_frame_chain (struct frame_info *frame) | |
44 | -{ | |
45 | - if (pc_in_dummy_frame (get_frame_pc (frame))) | |
46 | - return get_frame_base (frame); | |
47 | 24 | |
48 | - if (get_frame_type (frame) == SIGTRAMP_FRAME | |
49 | - || i386_frameless_signal_p (frame)) | |
50 | - return get_frame_base (frame); | |
25 | +#include "gdb_string.h" | |
51 | 26 | |
52 | - return read_memory_unsigned_integer (get_frame_base (frame), 4); | |
53 | -} | |
27 | +#include "i386-tdep.h" | |
54 | 28 | |
55 | 29 | static void |
56 | 30 | i386_cygwin_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) |
@@ -58,8 +32,6 @@ i386_cygwin_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) | ||
58 | 32 | struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch); |
59 | 33 | |
60 | 34 | tdep->struct_return = reg_struct_return; |
61 | - set_gdbarch_deprecated_frame_chain (gdbarch, i386_cygwin_frame_chain); | |
62 | - set_gdbarch_deprecated_frame_chain_valid (gdbarch, i386_cygwin_frame_chain_valid); | |
63 | 35 | } |
64 | 36 | |
65 | 37 | static enum gdb_osabi |
@@ -75,6 +47,9 @@ i386_cygwin_osabi_sniffer (bfd * abfd) | ||
75 | 47 | return GDB_OSABI_UNKNOWN; |
76 | 48 | } |
77 | 49 | |
50 | +/* Provide a prototype to silence -Wmissing-prototypes. */ | |
51 | +void _initialize_i386_cygwin_tdep (void); | |
52 | + | |
78 | 53 | void |
79 | 54 | _initialize_i386_cygwin_tdep (void) |
80 | 55 | { |