Skip to content

Commit

Permalink
LibX86: Stub out Disassembler::next() for x86_64
Browse files Browse the repository at this point in the history
LibX86 doesn't currently support x86_64 opcodes which causes Profiler
to crash when clicking on any symbol in the call graph.
  • Loading branch information
gunnarbeutner authored and awesomekling committed Aug 2, 2021
1 parent 3bd1494 commit 5949037
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Userland/Libraries/LibX86/Disassembler.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ class Disassembler {
{
if (!m_stream.can_read())
return {};
#if ARCH(I386)
return Instruction::from_stream(m_stream, true, true);
#else
dbgln("FIXME: Implement disassembly support for x86_64");
return {};
#endif
}

private:
Expand Down

0 comments on commit 5949037

Please sign in to comment.