2
0
mirror of git://git.code.sf.net/p/openocd/code synced 2025-07-20 03:36:53 +10:00
openocd/src
Antonio Borneo 1fa66d3633 log: fix kept_alive() and report expired timeout
The kept_alive() function is called to inform the keep-alive code
that a keep-alive as been just kicked through some other path.
But kept_alive() erroneously resets the timeout counter without
checking if it has already expired, thus masking a potential
timeout.

Check if timeout counter has expired during kept_alive().
While there, put the timeout values in macros and explicit the
units in the timeout messages.

Change-Id: Iaf6368b44e5b5352b1cc4e7efbb2368575dcfa08
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5705
Reviewed-by: <jonatan_zeidler@gmx.de>
Tested-by: jenkins
2020-06-06 18:04:14 +01:00
..
flash nor/kinetis: add keep-alive during flash write 2020-06-06 18:03:58 +01:00
helper log: fix kept_alive() and report expired timeout 2020-06-06 18:04:14 +01:00
jtag jtag/drivers/bcm2835gpio: bcm2835gpio_init has been updated 2020-06-06 18:01:57 +01:00
pld
rtos openocd: properly use jim data types 2020-05-24 21:36:43 +01:00
server coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
svf coding style: avoid unnecessary line continuations 2020-05-09 14:39:29 +01:00
target arm_adi_v5: dap_ti_be_32_quirks_command minor simplification 2020-06-06 18:03:12 +01:00
transport swim: add new transport 2020-05-24 21:32:05 +01:00
xsvf xsvf: fix memory leak 2020-01-16 09:44:33 +00:00
hello.c
hello.h
main.c
Makefile.am
openocd.c
openocd.h