Skip to content

Commit

Permalink
Enclose the file name with @!"..." in DebgEngAdapter. Fix Vector35#430
Browse files Browse the repository at this point in the history
  • Loading branch information
xusheng6 committed Feb 15, 2023
1 parent 8cfe189 commit 4fffb8a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/adapters/dbgengadapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,8 @@ DebugBreakpoint DbgEngAdapter::AddBreakpoint(const ModuleNameAndOffset& address,
// DbgEng does not take a full path. It can take "hello.exe", or simply "hello". E.g., "bp helloworld+0x1338"
auto fileName = std::filesystem::path(moduleToUse).stem();
std::string breakpointCommand =
fmt::format("bp {}+0x{:x}", EscapeModuleName(fileName.string()), address.offset);
fmt::format("bp @!\"{}\"+0x{:x}", EscapeModuleName(fileName.string()), address.offset);
LogDebug("Breakpoint command: %s", breakpointCommand.c_str());
auto ret = InvokeBackendCommand(breakpointCommand);
}
else
Expand Down

0 comments on commit 4fffb8a

Please sign in to comment.