Please use GitHub pull requests for new patches. Avoid migrating existing patches. Phabricator shutdown timeline
Changeset View
Changeset View
Standalone View
Standalone View
source/Commands/CommandObjectProcess.cpp
Show First 20 Lines • Show All 215 Lines • ▼ Show 20 Lines | DoExecute (Args& launch_args, CommandReturnObject &result) | ||||
disable_aslr = (m_options.disable_aslr == eLazyBoolYes); | disable_aslr = (m_options.disable_aslr == eLazyBoolYes); | ||||
} | } | ||||
else | else | ||||
{ | { | ||||
// The user did not explicitly specify whether to disable ASLR. Fall back to the target.disable-aslr setting. | // The user did not explicitly specify whether to disable ASLR. Fall back to the target.disable-aslr setting. | ||||
disable_aslr = target->GetDisableASLR (); | disable_aslr = target->GetDisableASLR (); | ||||
} | } | ||||
m_options.launch_info = target->GetProcessLaunchInfo(); | |||||
if (disable_aslr) | if (disable_aslr) | ||||
m_options.launch_info.GetFlags().Set (eLaunchFlagDisableASLR); | m_options.launch_info.GetFlags().Set (eLaunchFlagDisableASLR); | ||||
else | else | ||||
m_options.launch_info.GetFlags().Clear (eLaunchFlagDisableASLR); | m_options.launch_info.GetFlags().Clear (eLaunchFlagDisableASLR); | ||||
if (target->GetDetachOnError()) | if (target->GetDetachOnError()) | ||||
m_options.launch_info.GetFlags().Set (eLaunchFlagDetachOnError); | m_options.launch_info.GetFlags().Set (eLaunchFlagDetachOnError); | ||||
▲ Show 20 Lines • Show All 1,703 Lines • Show Last 20 Lines |