Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Cristian Zamfir <cristian.zamfir@epfl.ch>
To: gdb@sourceware.org
Subject: Python API iterate through the arguments of a frame
Date: Tue, 21 Feb 2012 15:55:00 -0000	[thread overview]
Message-ID: <3EDCC9ED-AD12-42B4-854E-3404A8EBCF70@epfl.ch> (raw)

Hi, 
I would like to write a Python script that iterates through the arguments of a frame. I was hoping I can retrieve these arguments from a Frame object,  but I did not find a way to do this, unless I know the name of the variables. Similarly, I would like to iterate through all the locals of the frame.

Is this possible with the current Python API? If not, can you please point me to where I could add additional functions to the Python API? 

Thank you, 
Cristi



             reply	other threads:[~2012-02-21 15:55 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 15:55 Cristian Zamfir [this message]
2012-02-21 19:54 ` Tom Tromey
2012-02-21 22:52   ` Cristian Zamfir
2012-02-22  1:52     ` Paul_Koning
2012-02-22  8:54     ` Joachim Protze
2012-02-22 15:07     ` Tom Tromey
2012-02-22 15:41       ` Cristian Zamfir

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=3EDCC9ED-AD12-42B4-854E-3404A8EBCF70@epfl.ch \
    --to=cristian.zamfir@epfl.ch \
    --cc=gdb@sourceware.org \
    /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