From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8458 invoked by alias); 11 Dec 2002 14:38:31 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 8440 invoked from network); 11 Dec 2002 14:38:28 -0000 Received: from unknown (HELO walton.kettenis.dyndns.org) (62.163.169.250) by sources.redhat.com with SMTP; 11 Dec 2002 14:38:28 -0000 Received: from elgar.kettenis.dyndns.org (elgar.kettenis.dyndns.org [192.168.0.2]) by walton.kettenis.dyndns.org (8.12.6/8.12.5) with ESMTP id gBBEcReQ000331 for ; Wed, 11 Dec 2002 15:38:27 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: from elgar.kettenis.dyndns.org (localhost [127.0.0.1]) by elgar.kettenis.dyndns.org (8.12.6/8.12.6) with ESMTP id gBBEcRtB037956 for ; Wed, 11 Dec 2002 15:38:27 +0100 (CET) (envelope-from kettenis@elgar.kettenis.dyndns.org) Received: (from kettenis@localhost) by elgar.kettenis.dyndns.org (8.12.6/8.12.6/Submit) id gBBEcRrl037953; Wed, 11 Dec 2002 15:38:27 +0100 (CET) Date: Wed, 11 Dec 2002 06:56:00 -0000 Message-Id: <200212111438.gBBEcRrl037953@elgar.kettenis.dyndns.org> From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Get rid of DEPRECATED_PC_IN_CALL_DUMMY in i386-tdep.c X-SW-Source: 2002-12/txt/msg00357.txt.bz2 Committed. Mark Index: ChangeLog from Mark Kettenis * i386-tdep.c: Include "dummy-frame.h". (i386_frame_chain, i386_frame_saved_pc): Replace DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame. (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy. Index: i386-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/i386-tdep.c,v retrieving revision 1.102 diff -u -p -r1.102 i386-tdep.c --- i386-tdep.c 11 Dec 2002 02:26:36 -0000 1.102 +++ i386-tdep.c 11 Dec 2002 14:36:53 -0000 @@ -38,6 +38,7 @@ #include "value.h" #include "gdb_assert.h" #include "reggroups.h" +#include "dummy-frame.h" #include "i386-tdep.h" #include "i387-tdep.h" @@ -509,7 +510,7 @@ i386_frameless_signal_p (struct frame_in static CORE_ADDR i386_frame_chain (struct frame_info *frame) { - if (DEPRECATED_PC_IN_CALL_DUMMY (frame->pc, 0, 0)) + if (pc_in_dummy_frame (frame->pc)) return frame->frame; if (get_frame_type (frame) == SIGTRAMP_FRAME @@ -566,7 +567,7 @@ i386_sigtramp_saved_sp (struct frame_inf static CORE_ADDR i386_frame_saved_pc (struct frame_info *frame) { - if (DEPRECATED_PC_IN_CALL_DUMMY (frame->pc, 0, 0)) + if (pc_in_dummy_frame (frame->pc)) { ULONGEST pc; @@ -1597,8 +1598,6 @@ i386_gdbarch_init (struct gdbarch_info i set_gdbarch_register_convert_to_virtual (gdbarch, i386_register_convert_to_virtual); set_gdbarch_register_convert_to_raw (gdbarch, i386_register_convert_to_raw); - - set_gdbarch_deprecated_pc_in_call_dummy (gdbarch, deprecated_pc_in_call_dummy_at_entry_point); /* "An argument's size is increased, if necessary, to make it a multiple of [32-bit] words. This may require tail padding,