2016-06-29 Tom Tromey <tom@tromey.com>
+ PR python/20129:
+ * python/lib/gdb/command/frame_filters.py (_do_enable_frame_filter)
+ (SetFrameFilterPriority._set_filter_priority): Use "frame_filter",
+ not "name".
+
+2016-06-29 Tom Tromey <tom@tromey.com>
+
PR gdb/17210:
* target.c (free_memory_read_result_vector): Take a pointer to the
VEC as an argument.
try:
ff = op_list[frame_filter]
except KeyError:
- msg = "frame-filter '" + str(name) + "' not found."
+ msg = "frame-filter '" + str(frame_filter) + "' not found."
raise gdb.GdbError(msg)
gdb.frames.set_enabled(ff, flag)
try:
ff = op_list[frame_filter]
except KeyError:
- msg = "frame-filter '" + str(name) + "' not found."
+ msg = "frame-filter '" + str(frame_filter) + "' not found."
raise gdb.GdbError(msg)
gdb.frames.set_priority(ff, priority)
+2016-06-29 Tom Tromey <tom@tromey.com>
+
+ PR python/20129:
+ * gdb.python/py-framefilter.exp: Add tests for setting priority
+ and disabling of non-existent frame filter.
+
2016-06-29 Yao Qi <yao.qi@linaro.org>
* gdb.base/catch-syscall.c [__arm__]: Set unknown_syscall to
gdb_test "info frame-filter" \
".*1000.*Yes.*Elider.*100.*Yes.*Reverse.*10.*.*No.*Object.*1.*" \
"info frame filter after setting priority"
+gdb_test "set frame-filter priority global NoSuchFilter 900" \
+ "frame-filter 'NoSuchFilter' not found." \
+ "set priority of a non-existing filter"
# Test enable/disable
gdb_test "info frame-filter" \
gdb_test "info frame-filter" \
".*1000.*Yes.*Elider.*100.*Yes.*Reverse.*10.*.*No.*Object.*1.*" \
"info frame filter after reenabling frame filter"
+gdb_test "disable frame-filter global NoSuchFilter" \
+ "frame-filter 'NoSuchFilter' not found." \
+ "disable a non-existing filter"
# Test no-filters
gdb_test "bt no-filters" \