From 800a2a8f125f95a8a95781a44d126ce4ceb05709 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Wed, 10 Aug 2022 01:30:45 +0100 Subject: [PATCH] gdb_main: Run clang-format over the reset command handling code --- src/gdb_main.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gdb_main.c b/src/gdb_main.c index b1f6de9..95ad707 100644 --- a/src/gdb_main.c +++ b/src/gdb_main.c @@ -313,12 +313,11 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall) case 'r': /* Reset the target system */ case 'R': /* Restart the target program */ - if(cur_target) + if (cur_target) target_reset(cur_target); - else if(last_target) { - cur_target = target_attach(last_target, - &gdb_controller); - if(cur_target) + else if (last_target) { + cur_target = target_attach(last_target, &gdb_controller); + if (cur_target) morse(NULL, false); target_reset(cur_target); }