Skip to content

Commit 95f6612

Browse files
dragonmuxesden
authored andcommitted
gdb_main: Fixed a clang-tidy lint about a pointless assignment left over from the gdb_main_loop() restructure
1 parent 41bce05 commit 95f6612

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/gdb_main.c

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ int gdb_main_loop(target_controller_s *tc, char *pbuf, size_t pbuf_size, size_t
223223

224224
target_halt_resume(cur_target, single_step);
225225
SET_RUN_STATE(true);
226-
single_step = false;
227226
/* fall through */
228227
case '?': { /* '?': Request reason for target halt */
229228
/*
@@ -438,7 +437,7 @@ static void exec_q_supported(const char *packet, const size_t length)
438437
(void)packet;
439438
(void)length;
440439

441-
/*
440+
/*
442441
* This is the first packet sent by GDB, so we can reset the NoAckMode flag here in case
443442
* the previous session was terminated abruptly with NoAckMode enabled
444443
*/
@@ -527,9 +526,9 @@ static void exec_q_thread_info(const char *packet, const size_t length)
527526
gdb_putpacketz("l");
528527
}
529528

530-
/*
529+
/*
531530
* GDB will send the packet 'QStartNoAckMode' to enable NoAckMode
532-
*
531+
*
533532
* To tell GDB to not use NoAckMode do the following before connnecting to the probe:
534533
* set remote noack-packet off
535534
*/

0 commit comments

Comments
 (0)