cortex_a_poll: minor code factorization to enhance readability
authorTarek BOCHKATI <tarek.bouchkati@gmail.com>
Thu, 3 Jan 2019 17:16:45 +0000 (18:16 +0100)
committerTomas Vanek <vanekt@fbl.cz>
Wed, 16 Jan 2019 10:52:43 +0000 (10:52 +0000)
commit63aa91701532451889e2bc0666cd3d81b825afff
treedf907344df64cfc97b0cd56c0327cd4ba82c24b0
parentc915e705685ac45d99050e20273f132171145eda
cortex_a_poll: minor code factorization to enhance readability

cortex_a_debug_entry and update_halt_gdb are called in two consecutive
conditions which are complementary, so externalizing the common code
makes the conditions' body lighter

With the removal of LOG_DEBUG(" ") since it does not look too informative

Change-Id: I0c54e413619576bb3af164f2dcf256c5a862c5fd
Signed-off-by: Tarek BOCHKATI <tarek.bouchkati@gmail.com>
Reviewed-on: http://openocd.zylin.com/4832
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
Tested-by: jenkins
src/target/cortex_a.c