hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/src/debugger/debugger.cpp
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-04-01 19:52:33 +0200
committerhachem <im@hachem.wtf>2026-04-01 19:52:33 +0200
commit15b9b273247099ba0eac75a5769592bf7bcb89dc (patch)
tree0a12fe8fa1b6d622361f41445eb7d4fee6b3c06a /src/debugger/debugger.cpp
parent22f3bf683913451b38a3bdc3a7992022a0e805bf (diff)
feat: ui refactor of doom and despair
Diffstat (limited to 'src/debugger/debugger.cpp')
-rw-r--r--src/debugger/debugger.cpp15
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;