This is the mail archive of the gdb-patches@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]

[python][patch] PR python/16486 (Add wrapping hints to frame filter output)


This patch adds some wrapping hints to the output of frame filters.
Most of the hints were already there.  This patch adds the areas where
they were left out.

OK?

Cheers,

Phil

--

2014-02-21  Phil Muldoon  <pmuldoon@redhat.com>

    PR python/16486
    * python/py-framefilter.c (enumerate_args): Add wrapping hints to
    output.
    (py_print_frame): Ditto.

diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index ec38225..6d21467 100644
--- a/gdb/python/py-framefilter.c
+++ b/gdb/python/py-framefilter.c
@@ -511,6 +511,7 @@ enumerate_args (PyObject *iter,
 
   TRY_CATCH (except, RETURN_MASK_ALL)
     {
+      ui_out_wrap_hint (out, "   ");
       annotate_frame_args ();
     }
   if (except.reason < 0)
@@ -665,6 +666,7 @@ enumerate_args (PyObject *iter,
       TRY_CATCH (except, RETURN_MASK_ALL)
         {
           ui_out_text (out, ", ");
+          ui_out_wrap_hint (out, "    ");
         }
       if (except.reason < 0)
         {
@@ -1229,6 +1231,8 @@ py_print_frame (PyObject *filter, int flags,
     }
 
 
+  ui_out_wrap_hint (out, "   ");
+
   /* Frame arguments.  Check the result, and error if something went
      wrong.  */
   if (print_args)
@@ -1243,6 +1247,7 @@ py_print_frame (PyObject *filter, int flags,
       TRY_CATCH (except, RETURN_MASK_ALL)
     {
       annotate_frame_source_begin ();
+      ui_out_wrap_hint (out, "   ");
     }
       if (except.reason < 0)
     {


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