summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-04 08:25:07 +0000
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-02-04 08:25:07 +0000
commit33f72055b7eab0e3925625490326ab3e9ff24388 (patch)
tree94917227a4599668488664a8ad89c0d7f1ed1eb9 /src
parent57b5028c63691dd0747874f9dd05583a5d485dce (diff)
downloadopenocd+libswd-33f72055b7eab0e3925625490326ab3e9ff24388.tar.gz
openocd+libswd-33f72055b7eab0e3925625490326ab3e9ff24388.tar.bz2
openocd+libswd-33f72055b7eab0e3925625490326ab3e9ff24388.tar.xz
openocd+libswd-33f72055b7eab0e3925625490326ab3e9ff24388.zip
Added patch to stop SEGFAULT with missing jtag config lines. Thanks Øyvind Harboe
https://lists.berlios.de/pipermail/openocd-development/2008-January/000731.html git-svn-id: svn://svn.berlios.de/openocd/trunk@280 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r--src/jtag/jtag.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c
index c205d837..e413b9f3 100644
--- a/src/jtag/jtag.c
+++ b/src/jtag/jtag.c
@@ -331,8 +331,9 @@ jtag_device_t* jtag_get_device(int num)
device = device->next;
i++;
}
-
- return NULL;
+
+ ERROR("jtag device number %d not defined", num);
+ exit(-1);
}
void* cmd_queue_alloc(size_t size)