-
Notifications
You must be signed in to change notification settings - Fork 0
regions.h
This header defines the functionality to examine the global and thread-local memory regions of the loaded binary files.
Defines a memory region.
Contains the beginning and end pointers of the memory region as well as the name of the binary file to which the memory
region belongs to.
Note
Added in version 2.2.
The beginning pointer of the represented memory region.
The end pointer of the represented memory region.
The name of the binary file this memory region belongs to.
The name of the binary file this memory region belongs to, relative to the current working directory.
Defines an array of memory region structures.
Note
Added in version 2.2.
struct region
* regions
The wrapped array of region information structures.
The amount of region information structures in this array.
struct regionInfo
regions_getLoadedRegions(void)
Returns an array containing the global memory region information structures of all currently loaded runtime images.
These memory regions represent the locations global storage is possibly found in.
The returned array must be destructed after usage with the function regions_destroyInfo
.
If callstack_autoClearCaches
is true
, the binary file names point into the cache of the library.
Note
Added in version 2.2.
struct regionInfo
regions_getTLSRegions(void)
Returns an array containing the thread-local memory region information structures of all currently loaded runtime images.
They represent the locations thread-local storage is found for the calling thread.
The returned array must be destructed after usage using the function regions_destroyInfo
.
If callstack_autoClearCaches
is true
, the binary file names point into the cache of the library.
Warning
Since thread-local storage generally is initialized on demand, calling this function may result in initializing all thread-local variables for the calling thread, including system defined variables.
Note
Added in version 2.2.
void regions_destroyInfo(const
struct regionInfo
* info)
Destroys the given region information structures array.
Note
Added in version 2.2.
Copyright (C) 2022, 2024 - 2025 mhahnFr.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".