public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-tromey-python: Use `selected' frame for caller_is and caller_matches convenience functions.
@ 2009-01-29  4:39 bauermann
  0 siblings, 0 replies; only message in thread
From: bauermann @ 2009-01-29  4:39 UTC (permalink / raw)
  To: archer-commits

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.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-29  4:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-29  4:39 [SCM] archer-tromey-python: Use `selected' frame for caller_is and caller_matches convenience functions bauermann

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).