mirror of
https://github.com/SerenityOS/serenity.git
synced 2026-11-07 04:29:30 -10:00
InstructionStream, SymbolProvider and Disassembler are already generic interfaces, so we can separate those from the x86-specific code. The x86-specific code is moved to a new x86 subdirectory, which will be accompanied by other architecture-specific directories soon.
23 lines
385 B
C++
23 lines
385 B
C++
/*
|
|
* Copyright (c) 2023, kleines Filmröllchen <[email protected]>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <AK/ByteString.h>
|
|
#include <AK/Types.h>
|
|
|
|
namespace Disassembly {
|
|
|
|
class SymbolProvider {
|
|
public:
|
|
virtual ByteString symbolicate(FlatPtr, u32* offset = nullptr) const = 0;
|
|
|
|
protected:
|
|
virtual ~SymbolProvider() = default;
|
|
};
|
|
|
|
}
|