Add CoreDisTools header
authorSwaroop Sridhar <swaroops@microsoft.com>
Wed, 23 Mar 2016 00:17:58 +0000 (17:17 -0700)
committerSwaroop Sridhar <swaroops@microsoft.com>
Tue, 5 Apr 2016 21:03:30 +0000 (14:03 -0700)
commitc69bd28f8ca769a242db8e96c11f6fdadde356a2
tree488f914fc0cbf421f86569e4d6063adb2f8b55fb
parentb54f7b545907b7b56a338a54d14b01dab937cfc1
Add CoreDisTools header

CoreCLR uses the CoreDisTools library for utilities like GCStress
and SuperPMI. To aid these utilities, this change adds the
CoreDisTools header to CoreCLR repository.

This cleans up duplication of type/enum definitions in CoreDisTools
and CoreCLR sources, and provides for a cleaner way to use the
interface.

The understanding here is that CoreCLR defines the required
CoreDisTools interface, and will publish the header into the
cmake-install directory.

Any repository can pick up this header and supply implementations
for the imported functions. [Currently the only implementation
is the one that uses LLVM disassembler in the LLILC tree].

Two other changes:
1) Define TypeDefs for exported function types in cordistools.h
   to avoid duplicating the signature in importing code.
2) Move to the libcoredistools version 1.0.1, and use the new
   interface in disassembler.cpp
src/inc/CMakeLists.txt
src/inc/coredistools.h [new file with mode: 0644]
src/vm/disassembler.cpp
src/vm/disassembler.h
tests/setup-runtime-dependencies.cmd
tests/setup-runtime-dependencies.sh