From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6553 invoked by alias); 3 Dec 2003 04:19: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 6541 invoked from network); 3 Dec 2003 04:19:54 -0000 Received: from unknown (HELO localhost.redhat.com) (65.49.0.121) by sources.redhat.com with SMTP; 3 Dec 2003 04:19:54 -0000 Received: from gnu.org (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id F0AA02B90; Tue, 2 Dec 2003 23:19:52 -0500 (EST) Message-ID: <3FCD6468.9020708@gnu.org> Date: Wed, 03 Dec 2003 04:19:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030820 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Joel Brobecker Cc: gdb-patches@sources.redhat.com Subject: Re: [RFA] OSF/1 - "next" over prologueless function call References: <20031202042646.GW1186@gnat.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-12/txt/msg00069.txt.bz2 > So the following test fails in infrun.c:handle_inferior_event() fails, > and GDB incorrectly thinks that we have landed at the next line of code: > > if (((stop_pc == ecs->stop_func_start /* Quick test */ > || in_prologue (stop_pc, ecs->stop_func_start)) > && !IN_SOLIB_RETURN_TRAMPOLINE (stop_pc, ecs->stop_func_name)) > || IN_SOLIB_CALL_TRAMPOLINE (stop_pc, ecs->stop_func_name) > || ecs->stop_func_name == 0) > See my recent comments further down in that file. I think GDB should be using: frame_id_unwind(current_frame) == frame_id_from_before_stepi to determine if it did a step into a function. What happens if that is used? Andrew