public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
From: bauermann@sourceware.org
To: archer-commits@sourceware.org
Subject: [SCM]  archer-tromey-python: Use `selected' frame for caller_is and caller_matches convenience functions.
Date: Thu, 29 Jan 2009 04:39:00 -0000	[thread overview]
Message-ID: <20090129043904.4280.qmail@sourceware.org> (raw)

The branch, archer-tromey-python has been updated
       via  e2a342709479ea43f6b6399c0df364b138f39fa4 (commit)
      from  60aebf13d249289579760ecaefb6c146785feaa5 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit e2a342709479ea43f6b6399c0df364b138f39fa4
Author: Thiago Jung Bauermann <bauerman@br.ibm.com>
Date:   Thu Jan 29 02:38:05 2009 -0200

    Use `selected' frame for caller_is and caller_matches convenience functions.
    
    	* python/lib/gdb/function/caller_is.py: Use `selected_frame' instead
    	of `newest_frame'.

-----------------------------------------------------------------------

Summary of changes:
 gdb/ChangeLog                            |    5 +++++
 gdb/python/lib/gdb/function/caller_is.py |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

First 500 lines of diff:
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aadca07..3ae0e02 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
 2009-01-29  Thiago Jung Bauermann  <bauerman@br.ibm.com>
 
+	* python/lib/gdb/function/caller_is.py: Use `selected_frame' instead
+	of `newest_frame'.
+
+2009-01-29  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
 	* python/python-symbol.c (gdbpy_lookup_symbol): Turn block and domain
 	into optional parameters.
 	* python/lib/gdb/command/backtrace.py (write_symbol): Don't explicitly
diff --git a/gdb/python/lib/gdb/function/caller_is.py b/gdb/python/lib/gdb/function/caller_is.py
index 929ba26..2b9c5c7 100644
--- a/gdb/python/lib/gdb/function/caller_is.py
+++ b/gdb/python/lib/gdb/function/caller_is.py
@@ -30,7 +30,7 @@ to traverse to find the calling function.  The default is 1."""
         super (CallerIs, self).__init__ ("caller_is")
 
     def invoke (self, name, nframes = 1):
-        frame = gdb.newest_frame ()
+        frame = gdb.selected_frame ()
         while nframes > 0:
             frame = frame.older ()
             nframes = nframes - 1
@@ -48,7 +48,7 @@ to traverse to find the calling function.  The default is 1."""
         super (CallerMatches, self).__init__ ("caller_matches")
 
     def invoke (self, name, nframes = 1):
-        frame = gdb.newest_frame ()
+        frame = gdb.selected_frame ()
         while nframes > 0:
             frame = frame.older ()
             nframes = nframes - 1


hooks/post-receive
--
Repository for Project Archer.


                 reply	other threads:[~2009-01-29  4:39 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20090129043904.4280.qmail@sourceware.org \
    --to=bauermann@sourceware.org \
    --cc=archer-commits@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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).