mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +00:00
LibELF: Add find_demangled_function
Also, added AK::String::index_of and fixed a bug in ELF::Loader::symbol_ptr
This commit is contained in:
parent
34f0d98e67
commit
e207de8449
7 changed files with 71 additions and 24 deletions
|
@ -26,13 +26,14 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/Demangle.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/MappedFile.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/OwnPtr.h>
|
||||
#include <AK/String.h>
|
||||
#include <LibC/sys/arch/i386/regs.h>
|
||||
#include <LibELF/Image.h>
|
||||
#include <LibELF/Loader.h>
|
||||
#include <signal.h>
|
||||
#include <stdio.h>
|
||||
#include <sys/ptrace.h>
|
||||
|
@ -69,7 +70,7 @@ public:
|
|||
template<typename Callback>
|
||||
void run(Callback callback);
|
||||
|
||||
VirtualAddress get_entry_point() const;
|
||||
const ELF::Loader& elf() const { return m_elf; }
|
||||
|
||||
enum DebugDecision {
|
||||
Continue,
|
||||
|
@ -90,8 +91,8 @@ private:
|
|||
int m_debugee_pid { -1 };
|
||||
bool m_is_debugee_dead { false };
|
||||
|
||||
NonnullOwnPtr<MappedFile> m_executable;
|
||||
NonnullOwnPtr<ELF::Image> m_elf_image;
|
||||
MappedFile m_executable;
|
||||
ELF::Loader m_elf;
|
||||
|
||||
HashMap<void*, BreakPoint> m_breakpoints;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue