]> git.sur5r.net Git - openocd/commit
gdb: use strncmp rather than strstr
authorSpencer Oliver <spen@spen-soft.co.uk>
Fri, 26 Oct 2012 11:47:06 +0000 (12:47 +0100)
committerPeter Stuge <peter@stuge.se>
Sun, 28 Oct 2012 01:40:21 +0000 (01:40 +0000)
commit538a86c3395d0476d2fdcc9bddc4e9e550734c96
tree53aabde1956cc30f1d1198939375c88ad0b20d3c
parent6f65045b3791525e99d09d07b5f9d8dd5aa511e5
gdb: use strncmp rather than strstr

All the packets received will be at start of the packet buffer, so use
more efficient strncmp.

Change-Id: Ib9c45d8f53425367006b1f880c1bde27f03a6cf9
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/932
Tested-by: jenkins
Reviewed-by: Matthias Blaicher <matthias@blaicher.com>
Reviewed-by: Peter Stuge <peter@stuge.se>
src/rtos/linux.c
src/rtos/rtos.c
src/server/gdb_server.c
src/target/smp.c