The code that was trying to get the platform string was passing the MachProcess::DeploymentInfo.platform to GetPlatformString w/o checking first whether that load command actually provided a platform number. DeploymentInfo already had a bool operator that checked if the platform had been set, so just check that first before calling GetPlatformString. NFC except a little less spam in the debugserver log output.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo