From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23731 invoked by alias); 23 Jan 2003 07:26:50 -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 23723 invoked from network); 23 Jan 2003 07:26:49 -0000 Received: from unknown (HELO mx1.redhat.com) (172.16.49.200) by 172.16.49.205 with SMTP; 23 Jan 2003 07:26:49 -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 h0N6vtf18489 for ; Thu, 23 Jan 2003 01:57:55 -0500 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 h0N7Qna24944 for ; Thu, 23 Jan 2003 02:26:49 -0500 Received: from localhost.localdomain (vpn50-2.rdu.redhat.com [172.16.50.2]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h0N7Qm203692 for ; Thu, 23 Jan 2003 02:26:48 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h0N7QhL24778 for gdb-patches@sources.redhat.com; Thu, 23 Jan 2003 00:26:43 -0700 Date: Thu, 23 Jan 2003 07:26:00 -0000 From: Kevin Buettner Message-Id: <1030123072642.ZM24777@localhost.localdomain> To: gdb-patches@sources.redhat.com Subject: [RFA] mips-tdep.c: Fix inferior function call breakage MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-01/txt/msg00693.txt.bz2 Without the following patch in place, I've found that inferior function calls are badly broken for the mips linux targets that I've been testing. (The warning in heuristic_proc_start() is tripped and things degrade quickly from there...) Okay? * mips-tdep.c (find_proc_desc): Return early if in a dummy frame. Index: mips-tdep.c =================================================================== RCS file: /cvs/src/src/gdb/mips-tdep.c,v retrieving revision 1.160 diff -u -p -r1.160 mips-tdep.c --- mips-tdep.c 19 Jan 2003 04:06:46 -0000 1.160 +++ mips-tdep.c 23 Jan 2003 07:20:26 -0000 @@ -2350,6 +2350,9 @@ find_proc_desc (CORE_ADDR pc, struct fra mips_extra_func_info_t proc_desc; CORE_ADDR startaddr = 0; + if (pc_in_dummy_frame (pc)) + return NULL; + proc_desc = non_heuristic_proc_desc (pc, &startaddr); if (proc_desc)