• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Keine Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision57a5ccc151847dde5b301e85418e7ff8a726855d (tree)
Zeit2003-05-29 22:51:01
AutorMark Kettenis <kettenis@gnu....>
CommiterMark Kettenis

Log Message

* 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.

Ändern Zusammenfassung

Diff

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
11 2003-05-29 Mark Kettenis <kettenis@gnu.org>
22
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+
310 * i386-tdep.c (i386_frame_this_id): Remove inside_entry_file
411 check. The majority of i386 targets shouldn't need this, and it
512 hurts Cygwin.
--- a/gdb/i386-cygwin-tdep.c
+++ b/gdb/i386-cygwin-tdep.c
@@ -1,56 +1,30 @@
11 /* Target-dependent code for Cygwin running on i386's, for GDB.
2+
23 Copyright 2003 Free Software Foundation, Inc.
34
4-This file is part of GDB.
5+ This file is part of GDB.
56
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.
1011
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.
1516
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. */
1921
2022 #include "defs.h"
21-
22-#include "gdb_string.h"
23-#include "gdbcore.h"
24-#include "i386-tdep.h"
2523 #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);
4724
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"
5126
52- return read_memory_unsigned_integer (get_frame_base (frame), 4);
53-}
27+#include "i386-tdep.h"
5428
5529 static void
5630 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)
5832 struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
5933
6034 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);
6335 }
6436
6537 static enum gdb_osabi
@@ -75,6 +47,9 @@ i386_cygwin_osabi_sniffer (bfd * abfd)
7547 return GDB_OSABI_UNKNOWN;
7648 }
7749
50+/* Provide a prototype to silence -Wmissing-prototypes. */
51+void _initialize_i386_cygwin_tdep (void);
52+
7853 void
7954 _initialize_i386_cygwin_tdep (void)
8055 {