Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Andrew Cagney <ac131313@ges.redhat.com>
To: Mo DeJong <supermo@bayarea.net>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [Patch] add implementation of stack-info-frame MI command
Date: Thu, 25 Jul 2002 17:04:00 -0000	[thread overview]
Message-ID: <3D408BD9.90403@ges.redhat.com> (raw)
In-Reply-To: <20020725143758.3cbf44d1.supermo@bayarea.net>


See my post to GDB@.  I think this should be handled as an event and not 
as a command.

The user entering a command like ``up'' needs to trigger the event 
notification anyway.

enjoy,
Andrew


> While using the MI, I noticed that there is a real problem trying to find
> the current stack level. One could get the stack and look at the level
> value of the first frame or parse the results of a cli frame command,
> but these both seem ugly. What is needed is a stack-info-frame that
> returns the current stack level to complement the stack-select-frame
> which selects a stack level.
> 
> Here is what I propose:
> 
> -stack-info-frame
> ^done,level="0"
> (gdb)
> -stack-select-frame 5
> ^done
> (gdb)
> -stack-info-frame
> ^done,level="5"
> (gdb)
> 
> The stack-info-frame command is currently unimplemented
> even though it appears in the documentation, so there is
> no way this patch could break anything. The only objection
> I could think of was that folks might want the command
> to return all the info about the current frame, like the
> stack-list-frames method. That is actually not needed since
> one could always run stack-list-frames and then select
> a stack level out of the returned frames. In real code,
> it is better to query the whole stack as opposed to changing
> the stack, doing a query of the current frame, changing the
> stack, then doing a query, and so on.
> 
> I forgot to mention in my last patch that I sent in my FSF
> copyright paperwork, so that should not stand in the way
> of incorporating my patches any longer.
> 
> cheers
> Mo



  reply	other threads:[~2002-07-25 23:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-25 15:10 Mo DeJong
2002-07-25 17:04 ` Andrew Cagney [this message]
2002-07-25 17:05   ` Keith Seitz
2002-07-25 20:11     ` Mo DeJong
2002-07-25 22:33       ` Keith Seitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3D408BD9.90403@ges.redhat.com \
    --to=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=supermo@bayarea.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox