diff options
Diffstat (limited to 'src/debugger/debugger.cpp')
| -rw-r--r-- | src/debugger/debugger.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/src/debugger/debugger.cpp b/src/debugger/debugger.cpp index 7a51a5c..7091c57 100644 --- a/src/debugger/debugger.cpp +++ b/src/debugger/debugger.cpp @@ -125,8 +125,7 @@ namespace Hsdbg if (sysroot.empty()) return; - const std::filesystem::path etc = - std::filesystem::path(sysroot) / "lib" / "rustlib" / "etc"; + const std::filesystem::path etc = std::filesystem::path(sysroot) / "lib" / "rustlib" / "etc"; std::error_code error; if (!std::filesystem::exists(etc / "lldb_commands", error)) @@ -135,8 +134,7 @@ namespace Hsdbg lldb::SBCommandInterpreter interpreter = debugger.GetCommandInterpreter(); lldb::SBCommandReturnObject result; - const std::string import = - std::format("command script import \"{}\"", (etc / "lldb_lookup.py").string()); + const std::string import = std::format("command script import \"{}\"", (etc / "lldb_lookup.py").string()); interpreter.HandleCommand(import.c_str(), result); if (!result.Succeeded()) @@ -146,8 +144,7 @@ namespace Hsdbg return; } - const std::string source = - std::format("command source \"{}\"", (etc / "lldb_commands").string()); + const std::string source = std::format("command source \"{}\"", (etc / "lldb_commands").string()); interpreter.HandleCommand(source.c_str(), result); if (result.Succeeded()) @@ -1391,8 +1388,7 @@ namespace Hsdbg for (size_t pair = 0; pair < pairs; ++pair) { - const auto backend_id = - static_cast<int32_t>(thread.GetStopReasonDataAtIndex(pair * 2)); + const auto backend_id = static_cast<int32_t>(thread.GetStopReasonDataAtIndex(pair * 2)); const auto trace = std::ranges::find(m_traces, backend_id, &FunctionTrace::entry_backend_id); @@ -1641,8 +1637,7 @@ namespace Hsdbg const InstrOpenCall open = stack.back(); stack.pop_back(); - const double duration = - static_cast<double>(record.timestamp_ns - open.start_ns) / 1.0e9; + const double duration = static_cast<double>(record.timestamp_ns - open.start_ns) / 1.0e9; if (open.span_index < m_timeline.size()) m_timeline[open.span_index].duration = duration; |
