From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23245 invoked by alias); 19 Apr 2013 11:37:01 -0000 Mailing-List: contact archer-commits-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: Received: (qmail 23227 invoked by uid 9514); 19 Apr 2013 11:37:01 -0000 Date: Fri, 19 Apr 2013 11:37:00 -0000 Message-ID: <20130419113701.23197.qmail@sourceware.org> From: pmuldoon@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] pmuldoon/python-backtrace: Remove whitespace X-Git-Refname: refs/heads/pmuldoon/python-backtrace X-Git-Reftype: branch X-Git-Oldrev: 44000d3952edf5b646d7a60195d69cdc7517008c X-Git-Newrev: 3949aa61d650bff8309d0a9be9553cdb277a01ac X-SW-Source: 2013-q2/txt/msg00034.txt.bz2 List-Id: The branch, pmuldoon/python-backtrace has been updated via 3949aa61d650bff8309d0a9be9553cdb277a01ac (commit) from 44000d3952edf5b646d7a60195d69cdc7517008c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 3949aa61d650bff8309d0a9be9553cdb277a01ac Author: Phil Muldoon Date: Fri Apr 19 12:36:46 2013 +0100 Remove whitespace ----------------------------------------------------------------------- Summary of changes: gdb/doc/gdb.texinfo | 2 +- gdb/python/lib/gdb/FrameDecorator.py | 6 +++--- gdb/python/py-framefilter.c | 26 +++++++++++++------------- gdb/testsuite/gdb.python/py-framefilter-mi.c | 2 +- gdb/testsuite/gdb.python/py-framefilter.c | 4 ++-- 5 files changed, 20 insertions(+), 20 deletions(-) First 500 lines of diff: diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 7ca9fa5..fab0b11 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -25096,7 +25096,7 @@ class ElidingInlineIterator: def next(self): frame = next(self.input_iterator) - + if frame.inferior_frame().type() != gdb.INLINE_FRAME: return frame diff --git a/gdb/python/lib/gdb/FrameDecorator.py b/gdb/python/lib/gdb/FrameDecorator.py index 5a80187..cacab4d 100644 --- a/gdb/python/lib/gdb/FrameDecorator.py +++ b/gdb/python/lib/gdb/FrameDecorator.py @@ -107,7 +107,7 @@ class FrameDecorator(object): if func == None: pc = frame.pc() return pc - + return str(func) def address(self): @@ -248,7 +248,7 @@ class FrameVars(object): the stored frame. Frame arguments are not fetched. If there are no frame local variables, return an empty list.""" lvars = [] - + block = self.frame.block() while block != None: @@ -261,7 +261,7 @@ class FrameVars(object): lvars.append(SymValueWrapper(sym, None)) block = block.superblock - + return lvars def fetch_frame_args(self): diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c index ff7f6b6..e608bab 100644 --- a/gdb/python/py-framefilter.c +++ b/gdb/python/py-framefilter.c @@ -247,7 +247,7 @@ py_print_value (struct ui_out *out, struct value *val, /* Never set an indent level for common_val_print if MI. */ if (ui_out_is_mi_like_p (out)) local_indent = 0; - + /* MI does not print certain values, differentiated by type, depending on what ARGS_TYPE indicates. Test type against option. For CLI print all values. */ @@ -266,7 +266,7 @@ py_print_value (struct ui_out *out, struct value *val, gdbpy_convert_exception (except); return PY_BT_ERROR; } - + if (args_type == MI_PRINT_ALL_VALUES) should_print = 1; else if (args_type == MI_PRINT_SIMPLE_VALUES @@ -314,7 +314,7 @@ get_py_iter_from_func (PyObject *filter, char *func) if (PyObject_HasAttrString (filter, func)) { PyObject *result = PyObject_CallMethod (filter, func, NULL); - + if (result != NULL) { if (result == Py_None) @@ -324,7 +324,7 @@ get_py_iter_from_func (PyObject *filter, char *func) else { PyObject *iterator = PyObject_GetIter (result); - + Py_DECREF (result); return iterator; } @@ -505,7 +505,7 @@ enumerate_args (PyObject *iter, PyObject *item; struct value_print_options opts; volatile struct gdb_exception except; - + get_user_print_options (&opts); if (args_type == CLI_SCALAR_VALUES) @@ -631,7 +631,7 @@ enumerate_args (PyObject *iter, goto error; } } - + if (py_print_single_arg (out, NULL, &entryarg, NULL, &opts, args_type, print_args_field, NULL) == PY_BT_ERROR) @@ -735,7 +735,7 @@ enumerate_locals (PyObject *iter, struct symbol *sym; volatile struct gdb_exception except; int local_indent = 8 + (8 * indent); - + make_cleanup (null_cleanup, NULL); success = extract_sym (item, &sym_name, &sym, &language); @@ -816,7 +816,7 @@ enumerate_locals (PyObject *iter, } xfree (sym_name); - + if (args_type == MI_PRINT_SIMPLE_VALUES) { if (! py_print_type (out, val)) @@ -1037,7 +1037,7 @@ py_print_frame (PyObject *filter, int flags, enum py_frame_args args_type, frame = frame_object_to_frame_info (py_inf_frame);; Py_DECREF (py_inf_frame); - + if (frame == NULL) goto error; @@ -1168,7 +1168,7 @@ py_print_frame (PyObject *filter, int flags, enum py_frame_args args_type, if (py_func != NULL) { const char *function = NULL; - + if (gdbpy_is_string (py_func)) { function = PyString_AsString (py_func); @@ -1200,7 +1200,7 @@ py_print_frame (PyObject *filter, int flags, enum py_frame_args args_type, goto error; } - + TRY_CATCH (except, RETURN_MASK_ALL) { annotate_frame_function_name (); @@ -1337,7 +1337,7 @@ py_print_frame (PyObject *filter, int flags, enum py_frame_args args_type, elided = get_py_iter_from_func (filter, "elided"); if (elided == NULL) goto error; - + make_cleanup_py_decref (elided); if (elided != Py_None) { @@ -1514,7 +1514,7 @@ apply_frame_filter (struct frame_info *frame, int flags, if (item == NULL && PyErr_Occurred ()) goto error; - + done: do_cleanups (cleanups); return success; diff --git a/gdb/testsuite/gdb.python/py-framefilter-mi.c b/gdb/testsuite/gdb.python/py-framefilter-mi.c index 21f79f1..18a1d5b 100644 --- a/gdb/testsuite/gdb.python/py-framefilter-mi.c +++ b/gdb/testsuite/gdb.python/py-framefilter-mi.c @@ -47,7 +47,7 @@ void end_func (int foo, char *bar, foobar *fb, foobar bf) } } } - + return; /* Backtrace end breakpoint */ } diff --git a/gdb/testsuite/gdb.python/py-framefilter.c b/gdb/testsuite/gdb.python/py-framefilter.c index 5add087..a5bf997 100644 --- a/gdb/testsuite/gdb.python/py-framefilter.c +++ b/gdb/testsuite/gdb.python/py-framefilter.c @@ -48,7 +48,7 @@ void end_func (int foo, char *bar, foobar *fb, foobar bf) } } } - + return; /* Backtrace end breakpoint */ } @@ -117,7 +117,7 @@ int func2(int f) bf->nothing = "Elided Bar Foo"; bf->f = 48; bf->s = 182; - + func1(); return 1; } hooks/post-receive -- Repository for Project Archer.