Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mo DeJong <supermo@bayarea.net>
To: gdb-patches@sources.redhat.com
Cc: ac131313@ges.redhat.com
Subject: Re: [Patch] add implementation of stack-info-frame MI command
Date: Thu, 25 Jul 2002 20:11:00 -0000	[thread overview]
Message-ID: <20020725192807.0599e403.supermo@bayarea.net> (raw)
In-Reply-To: <Pine.GSO.4.33.0207251700560.4104-100000@makita.cygnus.com>

On Thu, 25 Jul 2002 17:03:57 -0700 (PDT)
Keith Seitz <keiths@redhat.com> wrote:

> On Thu, 25 Jul 2002, Andrew Cagney wrote:
> 
> > See my post to GDB.  I think this should be handled as an event and not
> > as a command.
> 
> As Mo has implemented, -stack-info-frame would return the very same
> information as -stack-info-depth.

It would? I was under the impression that -stack-info-depth would return
the number of frames on the stack without taking what the current frame
is into account.

-stack-info-depth
^done,depth="3"
(gdb) 
^done depth 3

-stack-info-frame
^done,level="0"
(gdb) 
^done level 0

up
^done,frame={level="1 ",addr="0x080484a8",func="main",args=[{name="argc",value="1"},{name="argv",value="0xbffff5c4"}],file="resources.c",line="38"},line="38",file="resources.c"

-stack-info-depth
^done,depth="3"
(gdb) 

-stack-info-frame
^done,level="1"
(gdb) 


> I always thought that -stack-info-frame
> would give information about the current (or given) frame, i.e., saved pc,
> saved registers, etc.

I can't speak as to the original design goals. The existing documentation
for the command is not very clear about what it should do. I just
thought -stack-info-frame would work like -stack-select-frame in
that it would deal with an integer stack level. How is one meant to
query the stack level?

Mo


  reply	other threads:[~2002-07-26  2:28 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
2002-07-25 17:05   ` Keith Seitz
2002-07-25 20:11     ` Mo DeJong [this message]
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=20020725192807.0599e403.supermo@bayarea.net \
    --to=supermo@bayarea.net \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-patches@sources.redhat.com \
    /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