diff options
author | mikem8361 <mikem@microsoft.com> | 2015-02-12 15:53:26 -0800 |
---|---|---|
committer | mikem8361 <mikem@microsoft.com> | 2015-02-12 15:53:26 -0800 |
commit | 860bb3814069e57ed956449603ef24f520c25e23 (patch) | |
tree | df689881ab97b9a3429e9cfad871fd11253c493f /src/unwinder | |
parent | 0084af0bc3f8761599e0c11b73489cfa53d810a4 (diff) | |
download | coreclr-860bb3814069e57ed956449603ef24f520c25e23.tar.gz coreclr-860bb3814069e57ed956449603ef24f520c25e23.tar.bz2 coreclr-860bb3814069e57ed956449603ef24f520c25e23.zip |
These changes are the beginning of the SOS for coreclr under lldb. It isn't finished or working yet.
The sos plug in is broken into two modules:
1) The lldb plugin (sosplugin) module that is built with the lldb h and lib files. This module dynamically loads the
sos module and finds the subcommand argument as a symbol export like windbg does for it's extensions. So
"sos IP2MD 0x100000" loads sos, finds the export "IP2MD" and calls it with the rest of the command and a
"IDebugClient" instance. This instance is a small subset of the the various dbgeng's API's implemented under
lldb without any COM to keep things simple.
OPEN ISSUE: This module's build depends on the lldb API includes and the lldb library. Need to figure
out the best way to deal with the dependency on the lldb source.
2) The sos module (sos) module that is the strike source built under linux. Currently only the IP2MD command
is built and the support/utility functions it needs. It dynamically loads the DAC (libmscordaccore.so)
and queries the IXCLRDataProcess interface via the DAC's CLRDataCreateInstance export.
OPEN ISSUE: Where and how to search for the sos/dac modules. Currently have a hard coded path to the binaries.
It probably should be the directory the plug in (sosplugin) is loaded.
Diffstat (limited to 'src/unwinder')
-rw-r--r-- | src/unwinder/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/unwinder/CMakeLists.txt b/src/unwinder/CMakeLists.txt index 0ed0160b8a..e219518686 100644 --- a/src/unwinder/CMakeLists.txt +++ b/src/unwinder/CMakeLists.txt @@ -7,6 +7,11 @@ include_directories(${CLR_DIR}/src/gc) include_directories(${CLR_DIR}/src/gcdump) include_directories(${CLR_DIR}/src/debug/daccess) +if(CLR_CMAKE_PLATFORM_UNIX) + add_compile_options(-fPIC) +endif(CLR_CMAKE_PLATFORM_UNIX) + + if(IS_64BIT_BUILD EQUAL 1) include_directories(amd64) |