From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3767 invoked by alias); 14 Oct 2003 20:51:43 -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 3760 invoked from network); 14 Oct 2003 20:51:42 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 14 Oct 2003 20:51:42 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h9EKpgM22198 for ; Tue, 14 Oct 2003 16:51:42 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h9EKpgr03196 for ; Tue, 14 Oct 2003 16:51:42 -0400 Received: from localhost.localdomain (vpn50-39.rdu.redhat.com [172.16.50.39]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h9EKpfwC015790 for ; Tue, 14 Oct 2003 16:51:41 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h9EKpaq29587 for gdb-patches@sources.redhat.com; Tue, 14 Oct 2003 13:51:36 -0700 Date: Tue, 14 Oct 2003 20:51:00 -0000 From: Kevin Buettner Message-Id: <1031014205135.ZM29586@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [PATCH] frv-tdep.c: Stop backtraces in entry func, not entry file MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00475.txt.bz2 An FR-V user reported being unable to see useful backtraces when debugging functions inside the entry file. This patch fixes that problem. I think there's a problem with inside_entry_func() itself, but that's a separate issue. (If you are in the entry file, backtraces don't stop at the entry func - they attempt to continue beyond, but they do stop shortly thereafter.) Committed. Kevin * frv-tdep.c (frv_frame_this_id): Call inside_entry_func() instead of deprecated_inside_entry_file(). Index: frv-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/frv-tdep.c,v retrieving revision 1.54 diff -u -p -r1.54 frv-tdep.c --- frv-tdep.c 14 Oct 2003 00:30:27 -0000 1.54 +++ frv-tdep.c 14 Oct 2003 20:40:18 -0000 @@ -1009,7 +1009,7 @@ frv_frame_this_id (struct frame_info *ne /* This is meant to halt the backtrace at "_start". Make sure we don't halt it at a generic dummy frame. */ - if (deprecated_inside_entry_file (func)) + if (inside_entry_func (func)) return; /* Check if the stack is empty. */