Skip to content

Commit

Permalink
small change, fixed shutdown while the machine has finished
Browse files Browse the repository at this point in the history
  • Loading branch information
Fanter2033 authored and Luca Bassi committed Oct 30, 2024
1 parent 45daab8 commit 6918d88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gdb/gdb.cc
Original file line number Diff line number Diff line change
Expand Up @@ -289,9 +289,9 @@ std::string GDBServer::ReadData(const std::string &msg) {

void *MachineStep(void *vargp) {

while (true) {
while (!(*killed_ptr)) {
pthread_mutex_lock(&continue_mutex);
pthread_cond_wait(&continue_cond, &continue_mutex);
pthread_cond_wait(&continue_cond, &continue_mutex);
pthread_mutex_unlock(&continue_mutex);

if (*killed_ptr) {
Expand Down

0 comments on commit 6918d88

Please sign in to comment.