Return EXT_LANG_BT_ERROR in one more spot in py-framefilter.c
authorTom Tromey <tom@tromey.com>
Tue, 25 Apr 2017 03:41:56 +0000 (21:41 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 27 Mar 2018 03:57:13 +0000 (21:57 -0600)
While reading py-framefilter.c, I found one spot where an exception
could be caught but then not be turned into EXT_LANG_BT_ERROR.  This
patch fixes this spot.

gdb/ChangeLog
2018-03-26  Tom Tromey  <tom@tromey.com>

* python/py-framefilter.c (py_print_single_arg): Return
EXT_LANG_BT_ERROR from catch.

gdb/ChangeLog
gdb/python/py-framefilter.c

index 4a9b87b73be5c7f2cd4b9915fac0e4f657f2af86..97da81134cb459459a2a73aaee83d81fa731b24a 100644 (file)
@@ -1,3 +1,8 @@
+2018-03-26  Tom Tromey  <tom@tromey.com>
+
+       * python/py-framefilter.c (py_print_single_arg): Return
+       EXT_LANG_BT_ERROR from catch.
+
 2018-03-26  Tom Tromey  <tom@tromey.com>
 
        PR backtrace/15584:
index 0662e689416647dab17bb7f13e91228d9cddaee5..6186ffd274513ff21c0af6067c915d00786527f1 100644 (file)
@@ -457,6 +457,7 @@ py_print_single_arg (struct ui_out *out,
   CATCH (except, RETURN_MASK_ERROR)
     {
       gdbpy_convert_exception (except);
+      retval = EXT_LANG_BT_ERROR;
     }
   END_CATCH