gather information about module.. again

This commit is contained in:
2025-04-14 00:56:41 +03:00
parent 5beac7bdd8
commit 54b9ec7404
10 changed files with 212 additions and 35 deletions

View File

@@ -14,6 +14,11 @@ typedef enum {
HI_MEMORY_PRIVATE = 1 << 4
} MemoryPermissions;
typedef struct {
uptr region_start;
uptr region_end;
} MemoryRegionSpan;
typedef struct {
uptr region_start;
uptr region_end;
@@ -34,4 +39,7 @@ HiloadResult memory_find_pointer(uptr ptr,
struct sc_array_memreg *const regions,
size_t *index);
MemoryRegionSpan memory_get_module_span(const struct sc_array_memreg *const regions,
const char module_name[static 1]);
#endif // MEMORY_H_