mirror of
https://github.com/intel/llvm.git
synced 2026-01-20 01:58:44 +08:00
Allow Python commands to optionally take an SBExecutionContext argument in case they need to handle 'where they want to act' separately from the notion of 'currently-selected entity' that is associated to the debugger. Do this in an (hopefully) non-breaking way by running an argcount check before passing in the new argument. Update the test case to also check for this new feature. www update to follow
llvm-svn: 218834
This commit is contained in:
@@ -29,6 +29,11 @@ m_exe_ctx_sp(rhs.m_exe_ctx_sp)
|
||||
{
|
||||
}
|
||||
|
||||
SBExecutionContext::SBExecutionContext (lldb::ExecutionContextRefSP exe_ctx_ref_sp) :
|
||||
m_exe_ctx_sp(exe_ctx_ref_sp)
|
||||
{
|
||||
}
|
||||
|
||||
SBExecutionContext::SBExecutionContext (const lldb::SBTarget &target) :
|
||||
m_exe_ctx_sp(new ExecutionContextRef())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user