From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4319 invoked by alias); 29 Jan 2009 04:39:04 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 4295 invoked by uid 9723); 29 Jan 2009 04:39:04 -0000 Date: Thu, 29 Jan 2009 04:39:00 -0000 Message-ID: <20090129043904.4280.qmail@sourceware.org> 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. X-Git-Refname: refs/heads/archer-tromey-python X-Git-Reftype: branch X-Git-Oldrev: 60aebf13d249289579760ecaefb6c146785feaa5 X-Git-Newrev: e2a342709479ea43f6b6399c0df364b138f39fa4 X-SW-Source: 2009-q1/txt/msg00083.txt.bz2 List-Id: 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 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 + * python/lib/gdb/function/caller_is.py: Use `selected_frame' instead + of `newest_frame'. + +2009-01-29 Thiago Jung Bauermann + * 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.