From 5a4b9fc73c6b8328aa52c2b2155ceeb9edaaf219 Mon Sep 17 00:00:00 2001 From: BugraB Date: Fri, 23 Dec 2016 07:22:43 -0700 Subject: [PATCH] Modified pause_regex to properly match the thread number. Fixes pausing issue in RubyMine. Thanks to @seraku24 --- DebugServer/UI/RDIP/RDIP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DebugServer/UI/RDIP/RDIP.cpp b/DebugServer/UI/RDIP/RDIP.cpp index b709b5ea9..c9f773e6f 100644 --- a/DebugServer/UI/RDIP/RDIP.cpp +++ b/DebugServer/UI/RDIP/RDIP.cpp @@ -267,7 +267,7 @@ void RDIP::Impl::evaluateCommand(const std::string &command) { static const std::regex continue_regex("^c(?:ont)?$", std::regex_constants::icase); static const std::regex finish_regex("^fin(?:ish)?$", std::regex_constants::icase); static const std::regex next_regex("^n(?:ext)?$", std::regex_constants::icase); - static const std::regex pause_regex("^(?:pause|i(?:nterrupt)?)$", std::regex_constants::icase); + static const std::regex pause_regex("^(?:pause(?:\\s+(\\d+))?|i(?:nterrupt)?)$", std::regex_constants::icase); static const std::regex quit_regex("^(?:q(?:uit)?|exit|detach)$", std::regex_constants::icase); static const std::regex start_regex("^start$", std::regex_constants::icase); static const std::regex step_regex("^s(?:tep)?$", std::regex_constants::icase);