mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 08:27:46 +00:00
UserspaceEmulator: Remember VM region names for MAP_ANONYMOUS
For some reason we only remembered the names of MAP_FILE mmap regions.
This commit is contained in:
parent
735a6482ac
commit
728d947601
3 changed files with 17 additions and 18 deletions
|
@ -36,8 +36,8 @@ class MallocTracer;
|
|||
|
||||
class MmapRegion final : public Region {
|
||||
public:
|
||||
static NonnullOwnPtr<MmapRegion> create_anonymous(u32 base, u32 size, u32 prot);
|
||||
static NonnullOwnPtr<MmapRegion> create_file_backed(u32 base, u32 size, u32 prot, int flags, int fd, off_t offset, String name = {});
|
||||
static NonnullOwnPtr<MmapRegion> create_anonymous(u32 base, u32 size, u32 prot, String name);
|
||||
static NonnullOwnPtr<MmapRegion> create_file_backed(u32 base, u32 size, u32 prot, int flags, int fd, off_t offset, String name);
|
||||
virtual ~MmapRegion() override;
|
||||
|
||||
virtual ValueWithShadow<u8> read8(u32 offset) override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue