[RFA,v3,09/13] Return EXT_LANG_BT_ERROR in one more spot in py-framefilter.c

Message ID 20180323205512.14434-10-tom@tromey.com
State New, archived
Headers

Commit Message

Tom Tromey March 23, 2018, 8:55 p.m. UTC
  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-23  Tom Tromey  <tom@tromey.com>

	* python/py-framefilter.c (py_print_single_arg): Return
	EXT_LANG_BT_ERROR from catch.
---
 gdb/ChangeLog               | 5 +++++
 gdb/python/py-framefilter.c | 1 +
 2 files changed, 6 insertions(+)
  

Patch

diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index 0662e68941..6186ffd274 100644
--- a/gdb/python/py-framefilter.c
+++ b/gdb/python/py-framefilter.c
@@ -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