From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23983 invoked by alias); 21 Jan 2003 19:34:55 -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 23889 invoked from network); 21 Jan 2003 19:34:52 -0000 Received: from unknown (HELO localhost.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 21 Jan 2003 19:34:52 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 655FB3FCD; Tue, 21 Jan 2003 14:34:53 -0500 (EST) Message-ID: <3E2DA0DD.1080504@redhat.com> Date: Tue, 21 Jan 2003 19:34:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.1) Gecko/20021211 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andrew Cagney Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] Unwind the frame's PC first References: <3E2B3B22.2050201@redhat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-01/txt/msg00683.txt.bz2 > 2003-01-19 Andrew Cagney > > * frame.h (FRAME_OBSTACK_ZALLOC): Define. > * blockframe.c (backtrace_below_main): Move to "frame.c". > (frame_chain_valid): Delete check for backtrace_below_main. > (_initialize_blockframe): Delete initialization, move ``set > backtrace-below-main'' command to "frame.c". > (do_flush_frames_sfunc): Delete function. > * frame.c: Include "command.h" and "gdbcmd.h". > (frame_type_from_pc): New function. > (create_new_frame): Use frame_type_from_pc. > (legacy_get_prev_frame): New function. > (get_prev_frame): Rewrite. When an old style frame, call > legacy_get_prev_frame. Otherwize, unwind the PC first. > (_initialize_frame): Add ``set backtrace-below-main'' command. > * Makefile.in (frame.o): Update dependencies. > I've checked this in. Andrew