]> git.sur5r.net Git - openocd/commitdiff
Added patch to stop SEGFAULT with missing jtag config lines. Thanks Øyvind Harboe
authorntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 Feb 2008 08:25:07 +0000 (08:25 +0000)
committerntfreak <ntfreak@b42882b7-edfa-0310-969c-e2dbd0fdcd60>
Mon, 4 Feb 2008 08:25:07 +0000 (08:25 +0000)
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

src/jtag/jtag.c

index c205d83744a1f8224d5cb200b5e46b785962194c..e413b9f33004968d0c5366ff1803586bdf45ab32 100644 (file)
@@ -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)