From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21135 invoked by alias); 15 Feb 2004 17:41:27 -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 21126 invoked from network); 15 Feb 2004 17:41:25 -0000 Received: from unknown (HELO miranda.se.axis.com) (193.13.178.2) by sources.redhat.com with SMTP; 15 Feb 2004 17:41:25 -0000 Received: from axis.com (ironmaiden.se.axis.com [10.13.8.120]) by miranda.se.axis.com (8.12.9/8.12.9/Debian-5local0.1) with ESMTP id i1FHfGnI030794; Sun, 15 Feb 2004 18:41:16 +0100 Message-ID: <402FAF3C.7050305@axis.com> Date: Sun, 15 Feb 2004 17:41:00 -0000 From: Orjan Friberg Organization: Axis Communications User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031007 MIME-Version: 1.0 To: Andrew Cagney CC: gdb-patches@sources.redhat.com Subject: Re: CRIS port; frame cleanup crash References: <3F392591.4050409@redhat.com> <402BCCF2.601@axis.com> <402BDCDF.5040506@gnu.org> <402E24DC.8060006@axis.com> <402E3612.50001@gnu.org> In-Reply-To: <402E3612.50001@gnu.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-02/txt/msg00379.txt.bz2 Andrew Cagney wrote: > > This frame (the caller) calls next frame (the callee). As part of that > the callers resume addresses ends up in the callee's return-address > register. The callee (next) then saves the return-address register on > the stack. Hence to get the callers (this) PC, it needs to be dug out > of the callers (next) frame's stack. Anyway, sounds like you've got it > right. Thanks a lot for the clarification. I think I'm less confused now. > Also "advance.exp", in particular the sequence: > > ./gdb advance > (gdb) break func > (gdb) run > (gdb) advance func3 > --- should break in main and not func3 > > is a good check of the frame ID. Thanks for the tip. Running advance.exp results in all PASS. (When issuing the command sequence above manually on the CRIS target and comparing with my Linux host, I end up at different locations in main (at marker1() and func (c), respectively), but advance.exp seems to indicate that either is ok.) So, at least it's not completely broken. I'll get to callfuncs.exp next for the dummy frames implementation. Thanks, Orjan -- Orjan Friberg Axis Communications