This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] framefilter quit: Obvious whitespacing fixes


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8d4a54e2fb7f44c20ff3ddf42ff67db6bd08bdab

commit 8d4a54e2fb7f44c20ff3ddf42ff67db6bd08bdab
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date:   Wed Feb 11 14:33:48 2015 +0100

    framefilter quit: Obvious whitespacing fixes
    
    gdb/ChangeLog
    2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
    
    	* python/py-framefilter.c (py_print_frame): Whitespacing fixes.

Diff:
---
 gdb/ChangeLog               |  4 ++++
 gdb/python/py-framefilter.c | 28 +++++++++++++---------------
 2 files changed, 17 insertions(+), 15 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 02232a5..5792057 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2015-02-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+	* python/py-framefilter.c (py_print_frame): Whitespacing fixes.
+
 2015-02-11  Pedro Alves  <palves@redhat.com>
 
 	* xcoffread.c (within_function): Delete.
diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index 97dce89..c1c2653 100644
--- a/gdb/python/py-framefilter.c
+++ b/gdb/python/py-framefilter.c
@@ -1052,7 +1052,6 @@ py_print_frame (PyObject *filter, int flags,
       goto error;
     }
 
-
   /* stack-list-variables.  */
   if (print_locals && print_args && ! print_frame_info)
     {
@@ -1077,15 +1076,15 @@ py_print_frame (PyObject *filter, int flags,
 	 and are printed with indention.  */
       if (indent > 0)
 	{
-	TRY_CATCH (except, RETURN_MASK_ALL)
-	  {
-	    ui_out_spaces (out, indent*4);
-	  }
-	if (except.reason < 0)
-	  {
-	    gdbpy_convert_exception (except);
-	    goto error;
-	  }
+	  TRY_CATCH (except, RETURN_MASK_ALL)
+	    {
+	      ui_out_spaces (out, indent*4);
+	    }
+	  if (except.reason < 0)
+	    {
+	      gdbpy_convert_exception (except);
+	      goto error;
+	    }
 	}
 
       /* The address is required for frame annotations, and also for
@@ -1175,7 +1174,7 @@ py_print_frame (PyObject *filter, int flags,
 
 	      if (gdbpy_is_string (py_func))
 		{
-		  char *function_to_free = NULL;
+		  char *function_to_free;
 
 		  function = function_to_free =
 		    python_string_to_host_string (py_func);
@@ -1208,7 +1207,6 @@ py_print_frame (PyObject *filter, int flags,
 		  goto error;
 		}
 
-
 	      TRY_CATCH (except, RETURN_MASK_ALL)
 		{
 		  annotate_frame_function_name ();
@@ -1254,8 +1252,8 @@ py_print_frame (PyObject *filter, int flags,
 
       if (PyObject_HasAttrString (filter, "filename"))
 	{
-	  PyObject *py_fn = PyObject_CallMethod (filter, "filename",
-						 NULL);
+	  PyObject *py_fn = PyObject_CallMethod (filter, "filename", NULL);
+
 	  if (py_fn != NULL)
 	    {
 	      if (py_fn != Py_None)
@@ -1344,7 +1342,7 @@ py_print_frame (PyObject *filter, int flags,
     }
 
   /* Finally recursively print elided frames, if any.  */
-  elided  = get_py_iter_from_func (filter, "elided");
+  elided = get_py_iter_from_func (filter, "elided");
   if (elided == NULL)
     goto error;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]