As per the discussions, updated signature for "ConvertMmapFlagsToPlatform" method to take "ArchSpec" as additional parameter.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
source/Plugins/Platform/Linux/PlatformLinux.cpp | ||
---|---|---|
940 ↗ | (On Diff #28328) | Please add spaces around equal sign. |
941 ↗ | (On Diff #28328) | We may need a special care for remote debugging scenario - i.e. use HostInfoBase::GetArchitecture() if IsHost() otherwise get archspec from remote target via GetRemoteSystemArchitecture |
source/Plugins/Platform/Linux/PlatformLinux.cpp | ||
---|---|---|
941 ↗ | (On Diff #28328) | We should use GetSystemArchitecture() what do this (with some additional caching) |
We probably need to pass in an architecture:
virtual uint64_t Platform:: ConvertMmapFlagsToPlatform (const ArchSpec &arch, unsigned flags);
Then have all callers specify an architecture.
source/Plugins/Platform/Linux/PlatformLinux.cpp | ||
---|---|---|
941 ↗ | (On Diff #28328) | You can't just get the Host for its architecture. We might need to change this function to take an "const ArchSpec &arch" as an argument and have the caller specify the right architecture using the current target. |
source/Target/Platform.cpp | ||
---|---|---|
1512 ↗ | (On Diff #28665) | Wouldn't this be better in PlatformLinux? What are the odds of this constant being correct on non-linux platforms? |
source/Target/Platform.cpp | ||
---|---|---|
1512 ↗ | (On Diff #28665) | Yes, this is incorrect on FreeBSD. /usr/include/sys/mman.h |