aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGareth McMullin2015-03-26 20:42:47 -0700
committerGareth McMullin2015-03-26 20:42:47 -0700
commitbda4279028f914bb4d127fea1e3029dbc071b3a0 (patch)
treed1757f2d50dd438f13705b65a0e681117720a6b8 /src
parentf5ef8671ab18c6913a4cb44292f7054e83230218 (diff)
Send error reply and abandon target list on unhandled timeout.
Diffstat (limited to 'src')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index d1b3c86..9f37107 100644
--- a/src/main.c
+++ b/src/main.c
@@ -48,7 +48,7 @@ main(int argc, char **argv)
TRY_CATCH(e, EXCEPTION_ALL) {
gdb_main();
}
- if (e.type == EXCEPTION_ERROR) {
+ if (e.type) {
gdb_putpacketz("EFF");
target_list_free();
morse("TARGET LOST.", 1);