]> git.sur5r.net Git - openocd/commit
target/cortex_a: check gdb_service before dereferencing in update_halt_gdb
authorPaul Fertser <fercerpav@gmail.com>
Mon, 7 Apr 2014 08:33:53 +0000 (12:33 +0400)
committerPaul Fertser <fercerpav@gmail.com>
Mon, 14 Apr 2014 18:12:30 +0000 (18:12 +0000)
commitee54f7e9f0ad096d8db91a302c70d18d250db74b
tree4f42878381e8c46c3b1e71b8813c7f117853170a
parent85c1790beb955658fe8eeab2fe0904206aeb88a6
target/cortex_a: check gdb_service before dereferencing in update_halt_gdb

If gdb was disconnected by the moment the target entered halted state,
update_halt_gdb would segfault.

Change-Id: I67477e9199c1df097be83a49e38602f975c083f5
Reported-by: Younes REGAIEG <younes.regaieg@imag.fr>
Signed-off-by: Paul Fertser <fercerpav@gmail.com>
Reviewed-on: http://openocd.zylin.com/2098
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/cortex_a.c