aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/lib
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-01-06 11:39:29 -0500
committerSimon Marchi <simon.marchi@efficios.com>2023-01-26 14:31:33 -0500
commit4dde3b33e461e40e069c2026861b3e5ba2476604 (patch)
treec20b1128a4a5619526d3392c39c9ff5784b12344 /gdb/testsuite/lib
parent2e9a03fd2e20f9d0d3ddb340ba248bfb1d5ed521 (diff)
downloadgdb-4dde3b33e461e40e069c2026861b3e5ba2476604.zip
gdb-4dde3b33e461e40e069c2026861b3e5ba2476604.tar.gz
gdb-4dde3b33e461e40e069c2026861b3e5ba2476604.tar.bz2
gdb/testsuite/dap: remove catch from dap_read_event
This catch didn't cause me any trouble, but for the same reason as the preceding patch, I think it's a bit better to just let any exception propagate, to make for easier debugging. Change-Id: I1779e62c788b77fef2d50434edf4c3d2ec5e1c4c
Diffstat (limited to 'gdb/testsuite/lib')
-rw-r--r--gdb/testsuite/lib/dap-support.exp6
1 files changed, 1 insertions, 5 deletions
diff --git a/gdb/testsuite/lib/dap-support.exp b/gdb/testsuite/lib/dap-support.exp
index bc99f01..8c85f90 100644
--- a/gdb/testsuite/lib/dap-support.exp
+++ b/gdb/testsuite/lib/dap-support.exp
@@ -310,11 +310,7 @@ proc dap_read_event {name type args} {
set name $type
}
- if {[catch {_dap_read_event $type} result]} {
- fail $name
- return ""
- }
-
+ set result [_dap_read_event $type]
eval dap_match_values [list $name $result] $args
return $result