From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8690 invoked by alias); 1 Aug 2002 23:25:31 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 8683 invoked from network); 1 Aug 2002 23:25:29 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 1 Aug 2002 23:25:29 -0000 Received: from ges.redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 67C8F3C63; Thu, 1 Aug 2002 19:25:30 -0400 (EDT) Message-ID: <3D49C36A.9060504@ges.redhat.com> Date: Thu, 01 Aug 2002 16:25:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.0) Gecko/20020708 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Mo DeJong Cc: gdb Subject: Re: Proposed mod for stack-select-frame MI command References: <20020725202141.34b12c04.supermo@bayarea.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-08/txt/msg00006.txt.bz2 Mo, is this needed or is it just a convenience? Won't the client need to track the current stack level and hence can simply adjust/use that local copy. Andrew > Greetings > > I am been working with the MI recently and ran into a > real problem with the stack-select-frame method. > While it can be used to change the stack to a new level, > there is no way to just move up or down a level(s) like > the cli up and down commands. I am suggesting that > the implementation of the -stack-select-frame be > changed to support selection of stack frames that > are relative to the current stack frame. > > -stack-select-frame 0 > -stack-select-frame +1 > (This would move up one frame) > > -stack-select-frame +1 > -stack-select-frame -2 > (This would end up back at frame 0) > > A patch to implement this change has been posted to gdb-patches. > > cheers > Mo DeJong >