ソースを参照

gdbstub: small logic bug fix with defer_start

Gauvain "GovanifY" Roussel-Tarbouriech 6 年 前
コミット
eae2ed6b07
1 ファイル変更4 行追加2 行削除
  1. 4 2
      src/core/gdbstub/gdbstub.cpp

+ 4 - 2
src/core/gdbstub/gdbstub.cpp

@@ -1166,8 +1166,10 @@ static void RemoveBreakpoint() {
 }
 
 void HandlePacket() {
-    if (!IsConnected() && defer_start) {
-        ToggleServer(true);
+    if (!IsConnected()) {
+        if (defer_start) {
+            ToggleServer(true);
+        }
         return;
     }