gdb_main: Run clang-format over the reset command handling code

This commit is contained in:
dragonmux 2022-08-10 01:30:45 +01:00 committed by Piotr Esden-Tempski
parent 8cf1d2f09c
commit 800a2a8f12
1 changed files with 4 additions and 5 deletions

View File

@ -313,12 +313,11 @@ int gdb_main_loop(struct target_controller *tc, bool in_syscall)
case 'r': /* Reset the target system */ case 'r': /* Reset the target system */
case 'R': /* Restart the target program */ case 'R': /* Restart the target program */
if(cur_target) if (cur_target)
target_reset(cur_target); target_reset(cur_target);
else if(last_target) { else if (last_target) {
cur_target = target_attach(last_target, cur_target = target_attach(last_target, &gdb_controller);
&gdb_controller); if (cur_target)
if(cur_target)
morse(NULL, false); morse(NULL, false);
target_reset(cur_target); target_reset(cur_target);
} }