Added support for OSX in Mono LLDB build.
This commit is contained in:
Родитель
9849e66037
Коммит
5656fa5236
|
@ -6,6 +6,12 @@ endif()
|
|||
# for liblldb to link against
|
||||
include(${LLDB_PROJECT_ROOT}/cmake/LLDBDependencies.cmake)
|
||||
|
||||
include(${LLDB_PROJECT_ROOT}/cmake/Mono.cmake)
|
||||
|
||||
if (NOT LLDB_DISABLE_MONO)
|
||||
link_directories(${MONO_LIBRARY_DIRS})
|
||||
endif()
|
||||
|
||||
add_lldb_library(liblldb SHARED
|
||||
SBAddress.cpp
|
||||
SBAttachInfo.cpp
|
||||
|
@ -118,8 +124,6 @@ if (LLDB_WRAP_PYTHON)
|
|||
endif()
|
||||
target_link_libraries(liblldb ${cmake_2_8_12_PRIVATE} ${LLDB_SYSTEM_LIBS})
|
||||
|
||||
include(${LLDB_PROJECT_ROOT}/cmake/Mono.cmake)
|
||||
|
||||
if (NOT LLDB_DISABLE_MONO)
|
||||
target_link_libraries(liblldb PRIVATE ${MONO_LIB})
|
||||
target_link_libraries(liblldb PRIVATE ${MONO_LIBRARIES})
|
||||
endif()
|
|
@ -73,6 +73,9 @@ ScriptInterpreter::LanguageToString (lldb::ScriptLanguage language)
|
|||
case eScriptLanguagePython:
|
||||
return_value = "Python";
|
||||
break;
|
||||
case eScriptLanguageMono:
|
||||
return_value = "Mono";
|
||||
break;
|
||||
}
|
||||
|
||||
return return_value;
|
||||
|
|
|
@ -93,7 +93,7 @@ void ScriptInterpreterMono::InitializeMono()
|
|||
// static Debugger __CreateInstance(global::System.IntPtr native, bool skipVTables = false)
|
||||
Debugger &debugger = GetCommandInterpreter().GetDebugger();
|
||||
args[0] = &debugger;
|
||||
args[1] = false;
|
||||
args[1] = 0;
|
||||
|
||||
MonoObject *result;
|
||||
mono_runtime_invoke(lldbDebuggerCreateInstanceMethod, &result, args, nullptr);
|
||||
|
|
Загрузка…
Ссылка в новой задаче