| 531 | } |
| 532 | |
| 533 | void GdbServer::HandleSetActiveThread(std::string_view command) { |
| 534 | const auto thread = |
| 535 | GET_THREAD_FROM_ID(std::stoull(command.substr(1).data(), nullptr, 16)); |
| 536 | if (thread) { |
| 537 | // TODO: check if thread is valid |
| 538 | // if (debugger.threads.contains(thread)) { |
| 539 | // crnt_thread = thread; |
| 540 | // SendPacket(GDB_OK); |
| 541 | //} else { |
| 542 | // SendPacket(GDB_ERROR); |
| 543 | //} |
| 544 | crnt_thread = thread; |
| 545 | SendPacket(GDB_OK); |
| 546 | } |
| 547 | } |
| 548 | |
| 549 | void GdbServer::HandleThreadStatus() { |
| 550 | SendPacket(GetThreadStatus(crnt_thread, Signal::SigTrap)); |
nothing calls this directly
no outgoing calls
no test coverage detected