From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24360 invoked by alias); 10 Jun 2002 23:33:17 -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 24350 invoked from network); 10 Jun 2002 23:33:17 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 10 Jun 2002 23:33:17 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id B32D03EC6; Mon, 10 Jun 2002 19:33:17 -0400 (EDT) Message-ID: <3D05373D.4030207@cygnus.com> Date: Mon, 10 Jun 2002 16:33:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc3) Gecko/20020530 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb-patches@sources.redhat.com, Jim Ingham Subject: Re: [rfc/rfa:breakpoint] Use a ``frame_id'' to track frames References: <3CC34B88.6090809@cygnus.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-06/txt/msg00163.txt.bz2 > 2002-04-21 Andrew Cagney > > * infrun.c (struct inferior_status): Replace fields > selected_frame_address and selected_level with field > selected_frame_id. > (save_inferior_status): Update. Use get_frame_id. > (struct restore_selected_frame_args): Delete. > (restore_selected_frame): Update. Use frame_find_by_id. > (restore_inferior_status): Update. > > * breakpoint.h (struct breakpoint): Change type of > watchpoint_frame to frame_id. > * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove > call to get_current_frame. > (do_enable_breakpoint): Use frame_find_by_id. Remove call to > get_current_frame. > (watchpoint_check): Use frame_find_by_id. > > * frame.h (record_selected_frame): Delete declaration. > * stack.c (record_selected_frame): Delete function. > > * frame.h (struct frame_id): Define. > (get_frame_id): Declare. > (frame_find_by_id): Declare. > * frame.c (frame_find_by_id): New function. > (get_frame_id): New function. > (private ok from michaels) I've checked this in. Andrew