The patch creates Unix Signals based on target architecture. For MIPS it creates MipsLinuxSignals.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Fix logic as suggested in the second inline code snippet.
source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | ||
---|---|---|
827 | UnixSignals::Create() is a static function. If this is really what you are intending to do this should be: if (error.Success()) SetUnixSignals(UnixSignals::Create(GetTarget().GetArchitecture()); But this ins't the intention here. We need to ask if the platform is connected and if so, use the unix signals returned by the platform. It is isn't use UnixSignals::Create(<arch>). So this code should be: if (error.Success()) { PlatformSP platform_sp = GetTarget().GetPlatform(): if (platform_sp && platform_sp->IsConnected()) SetUnixSignals(platform_sp->GetUnixSignals()); else SetUnixSignals(UnixSignals::Create(GetTarget().GetArchitecture()); } ` |
UnixSignals::Create() is a static function. If this is really what you are intending to do this should be:
But this ins't the intention here. We need to ask if the platform is connected and if so, use the unix signals returned by the platform. It is isn't use UnixSignals::Create(<arch>). So this code should be: