| 814 | } |
| 815 | |
| 816 | static std::string EscapeModuleName(const std::string& name) |
| 817 | { |
| 818 | std::string result = name; |
| 819 | const std::string charsToEscape = " -'~`."; |
| 820 | auto shouldReplace = [&](char c) -> bool { |
| 821 | return charsToEscape.find(c) != std::string::npos; |
| 822 | }; |
| 823 | std::replace_if(result.begin(), result.end(), shouldReplace, '_'); |
| 824 | return result; |
| 825 | } |
| 826 | |
| 827 | DebugBreakpoint DbgEngAdapter::AddBreakpoint(const ModuleNameAndOffset& address, unsigned long breakpoint_type) |
| 828 | { |