Skip to content

Commit

Permalink
gdb_main: Fixed a clang-tidy lint about a pointless assignment left o…
Browse files Browse the repository at this point in the history
…ver from the gdb_main_loop() restructure
  • Loading branch information
dragonmux authored and esden committed Oct 29, 2023
1 parent 41bce05 commit 95f6612
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/gdb_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ int gdb_main_loop(target_controller_s *tc, char *pbuf, size_t pbuf_size, size_t

target_halt_resume(cur_target, single_step);
SET_RUN_STATE(true);
single_step = false;
/* fall through */
case '?': { /* '?': Request reason for target halt */
/*
Expand Down Expand Up @@ -438,7 +437,7 @@ static void exec_q_supported(const char *packet, const size_t length)
(void)packet;
(void)length;

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

/*
/*
* GDB will send the packet 'QStartNoAckMode' to enable NoAckMode
*
*
* To tell GDB to not use NoAckMode do the following before connnecting to the probe:
* set remote noack-packet off
*/
Expand Down

0 comments on commit 95f6612

Please sign in to comment.