diff --git a/DevTools/ProfileViewer/DisassemblyModel.cpp b/DevTools/ProfileViewer/DisassemblyModel.cpp index 52f6552a73..e2ca4028c5 100644 --- a/DevTools/ProfileViewer/DisassemblyModel.cpp +++ b/DevTools/ProfileViewer/DisassemblyModel.cpp @@ -54,7 +54,12 @@ DisassemblyModel::DisassemblyModel(Profile& profile, ProfileNode& node) : m_profile(profile) , m_node(node) { - m_file = make(profile.executable_path()); + String path; + if (m_node.address() >= 0xc0000000) + path = "/boot/kernel"; + else + path = profile.executable_path(); + m_file = make(path); if (!m_file->is_valid()) return;