diff options
author | Mike McLaughlin <mikem@microsoft.com> | 2015-02-24 15:25:57 -0800 |
---|---|---|
committer | Mike McLaughlin <mikem@microsoft.com> | 2015-03-06 14:32:22 -0800 |
commit | eaed12c0dc4e458e89ce03685c21a697787c5b67 (patch) | |
tree | d14193756a459249af619bf1aae984d875369607 /src/vm/object.h | |
parent | 52a0efc99c562e715c278eed8421f58d3ca6b327 (diff) | |
download | coreclr-eaed12c0dc4e458e89ce03685c21a697787c5b67.tar.gz coreclr-eaed12c0dc4e458e89ce03685c21a697787c5b67.tar.bz2 coreclr-eaed12c0dc4e458e89ce03685c21a697787c5b67.zip |
Add a fourth parameter to the DEFINE_DACVAR macro that is the actual fully qualified name of the static/global.
First pass at the global DAC table support for Linux. Explicitly build the table in the coreclr module instead of extract it from the pdb and put it in a resource.
Fixed the SVR gc globals in the DAC table. They had to be seperated and initialized in gceesvr.cpp.
Start on global pointer table.
PAL functions to write and read the DAC table address between processes.
The dac table is now copied from the coreclr process to the DAC/debugger process. The tables were not being built with exactly the same defines so they weren't the same size. Fixed a bug in the read memory implementation. Still assumes pid = 0.
Changed the dacTable entries to be RVAs and renabled getting the corclr module base addres (m_globalBase). Added dac table address file cleanup on coreclr shutdown.
Filled in the vtable entries in the global dac table. Changed some of the VPTR_* macros to be defined on the coreclr side (RS) to defined a constructor that is used to get the vtable in dactable.cpp. These changes required default constructors to be added to some of the classes.
Changed getting the vtable address to not invoke the destructors since the constructor used didn't do anything (like initialize variables, etc.).
Added a TODO comment about the debuggee pid not being available in the dac table address file name.
Fixed Windows build. Created a couple of new VPTR_* macros that add a default constructor only if building coreclr (not DAC) on Linux.
Comment on how these DAC table functions are temporary.
Diffstat (limited to 'src/vm/object.h')
-rw-r--r-- | src/vm/object.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/vm/object.h b/src/vm/object.h index 4930944c96..2669a54b2a 100644 --- a/src/vm/object.h +++ b/src/vm/object.h @@ -747,6 +747,7 @@ class ArrayBase : public Object friend OBJECTREF FastAllocatePrimitiveArray(MethodTable* arrayType, DWORD cElements, BOOL bAllocateInLargeHeap); friend class JIT_TrialAlloc; friend class CheckAsmOffsets; + friend struct _DacGlobals; private: // This MUST be the first field, so that it directly follows Object. This is because |