Added elf_get_kernel_image() returning the image for the kernel.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30036 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
037d4a2f46
commit
b36c8ba26a
@ -32,6 +32,7 @@ status_t elf_debug_lookup_symbol_address(addr_t address, addr_t *_baseAddress,
|
||||
status_t elf_debug_lookup_user_symbol_address(struct team* team, addr_t address,
|
||||
addr_t *_baseAddress, const char **_symbolName,
|
||||
const char **_imageName, bool *_exactMatch);
|
||||
struct elf_image_info* elf_get_kernel_image();
|
||||
status_t elf_get_image_info_for_address(addr_t address, image_info* info);
|
||||
image_id elf_create_memory_image(const char* imageName, addr_t text,
|
||||
size_t textSize, addr_t data, size_t dataSize);
|
||||
|
@ -1849,6 +1849,13 @@ unload_kernel_add_on(image_id id)
|
||||
}
|
||||
|
||||
|
||||
struct elf_image_info*
|
||||
elf_get_kernel_image()
|
||||
{
|
||||
return sKernelImage;
|
||||
}
|
||||
|
||||
|
||||
status_t
|
||||
elf_get_image_info_for_address(addr_t address, image_info* info)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user