This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA v2 09/13] Return EXT_LANG_BT_ERROR in one more spot in py-framefilter.c
- From: Tom Tromey <tom at tromey dot com>
- To: gdb-patches at sourceware dot org
- Cc: Tom Tromey <tom at tromey dot com>
- Date: Sun, 13 Aug 2017 21:40:26 -0600
- Subject: [RFA v2 09/13] Return EXT_LANG_BT_ERROR in one more spot in py-framefilter.c
- Authentication-results: sourceware.org; auth=none
- References: <20170814034030.20863-1-tom@tromey.com>
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.
ChangeLog
2017-08-13 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(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 630e27b..e5aeb22 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2017-08-13 Tom Tromey <tom@tromey.com>
+ * python/py-framefilter.c (py_print_single_arg): Return
+ EXT_LANG_BT_ERROR from catch.
+
+2017-08-13 Tom Tromey <tom@tromey.com>
+
PR backtrace/15584:
* stack.c (backtrace_command_1): Move some code into no-filters
"if".
diff --git a/gdb/python/py-framefilter.c b/gdb/python/py-framefilter.c
index 76e637c..73f2a31 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
--
2.9.4