MCPcopy Create free account
hub / github.com/SamoZ256/hydra / HandleSetActiveThread

Method HandleSetActiveThread

src/core/debugger/gdb_server.cpp:533–547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533void 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
549void GdbServer::HandleThreadStatus() {
550 SendPacket(GetThreadStatus(crnt_thread, Signal::SigTrap));

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected