From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16921 invoked by alias); 29 Nov 2012 15:43:02 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 16808 invoked by uid 9514); 29 Nov 2012 15:43:00 -0000 Date: Thu, 29 Nov 2012 15:43:00 -0000 Message-ID: <20121129154300.16779.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-pmuldoon-python-backtrace: Remove white spaces and fix tabs X-Git-Refname: refs/heads/archer-pmuldoon-python-backtrace X-Git-Reftype: branch X-Git-Oldrev: 7b737455d49edad038e7d1bcde71f324644e9118 X-Git-Newrev: 9c4ad516dd66a8fd201f3658fb61970ce57cd6d7 X-SW-Source: 2012-q4/txt/msg00018.txt.bz2 List-Id: The branch, archer-pmuldoon-python-backtrace has been updated via 9c4ad516dd66a8fd201f3658fb61970ce57cd6d7 (commit) from 7b737455d49edad038e7d1bcde71f324644e9118 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 9c4ad516dd66a8fd201f3658fb61970ce57cd6d7 Author: Phil Muldoon Date: Thu Nov 29 15:42:40 2012 +0000 Remove white spaces and fix tabs ----------------------------------------------------------------------- Summary of changes: gdb/doc/gdb.texinfo | 2 +- gdb/python/py-objfile.c | 3 +-- gdb/python/py-progspace.c | 2 +- gdb/testsuite/gdb.python/py-framefilter.py | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) First 500 lines of diff: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index cd18442..7911cc7 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -24545,7 +24545,7 @@ search every frame to determine if it is inlined ahead of time may be too expensive at the filtering step. The frame filter cannot know how many frames it has to iterate over, and it would have to iterate through them all. This ends up duplicating effort as @value{GDBN} -performs this iteration when it prints the frames. +performs this iteration when it prints the frames. In this example decision making can be deferred to the printing step. As each frame is printed, the frame wrapper can examine each frame in diff --git a/gdb/python/py-objfile.c b/gdb/python/py-objfile.c index 2f2e09c..16680bc 100644 --- a/gdb/python/py-objfile.c +++ b/gdb/python/py-objfile.c @@ -98,7 +98,6 @@ objfpy_new (PyTypeObject *type, PyObject *args, PyObject *keywords) Py_DECREF (self); return NULL; } - } return (PyObject *) self; } @@ -275,7 +274,7 @@ objfile_to_objfile_object (struct objfile *objfile) return NULL; } - object->frame_filters = PyDict_New (); + object->frame_filters = PyDict_New (); if (!object->frame_filters) { Py_DECREF (object->printers); diff --git a/gdb/python/py-progspace.c b/gdb/python/py-progspace.c index eac0261..8bb20b7 100644 --- a/gdb/python/py-progspace.c +++ b/gdb/python/py-progspace.c @@ -270,7 +270,7 @@ pspace_to_pspace_object (struct program_space *pspace) Py_DECREF (object); return NULL; } - + object->frame_filters = PyDict_New (); if (!object->frame_filters) { diff --git a/gdb/testsuite/gdb.python/py-framefilter.py b/gdb/testsuite/gdb.python/py-framefilter.py index 6cdf5a7..b7319a8 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.py +++ b/gdb/testsuite/gdb.python/py-framefilter.py @@ -92,7 +92,7 @@ class ElidingIterator: def next(self): frame = next(self.input_iterator) - if str(frame.function()) != 'func1': + if str(frame.function()) != 'func1': return frame # Suppose we want to return the 'func1' frame but elide the hooks/post-receive -- Repository for Project Archer.