diff options
| author | jsmall-nvidia <jsmall@nvidia.com> | 2019-10-21 15:32:13 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-10-21 15:32:13 -0400 |
| commit | 5ca446888656da91165b7bf90b7b2195d1e1afac (patch) | |
| tree | 893a03930bc706089f28c156032ffe883ea0d2a1 /source/core/core.natvis | |
| parent | a854bf2fde6e466aa698f4132971faadc827913a (diff) | |
`Repro` functionality (#1085)
* WIP on serialize/save state.
* Relative string encoding.
* Added RelativeContainer unit test.
Split out RelativeContainer into core.
* Fix bug in RelativeString encoding.
* More work around relative container.
* Fix checks.
* Use RelativeBase for safe access.
Use malloc/free/realloc instead of List.
* Add natvis support for relative types.
* Setting up of state (not includes) writing of repro state.
* Capture after spCompile.
* Writing SourceFile and file system files.
Added -dump-repo
* First pass at loading state.
* First pass at reading repro.
* Small optimization around Safe32Ptr
* Refactor how repro data is stored - to make saving off the files more simple, by having all all backed by 'files'.
Make file loading always set up PathInfo so we get uniqueIdentifier info.
* Generate unique file names.
* Added RelativeFileSystem
Added saveFile to ISlangFileSystemExt and implemented for interfaces
Added mechanism to save of files (and manifest)
* Added ability to replace files in repo with directory holding their contents.
* Add support for entry points.
* Fix problem compiling on linux.
* Added SIMPLE_EX option, where everything on command line must be specified.
* Fix typo in unit test for relative container.
* Fix another typo in unit test for RelativeContainer.
* Fix small bugs.
* Fix release unused variable issue in slang-state-serialize.cpp
* Fix checking for SIMPLE_EX in testing, else broke COMMAND_LINE_SIMPLE.
* Fix warnings on 32 bit debug build.
* Added import-subdir-search-path-repro.slang test. Although disabled for now as writes to root of slang project.
* Remove wrong version of import-subdir-search-path-repro.slang
* Added import-subdir-search-path-repro.slang
Diffstat (limited to 'source/core/core.natvis')
| -rw-r--r-- | source/core/core.natvis | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/source/core/core.natvis b/source/core/core.natvis index 9d3f52839..2b1e3ff7e 100644 --- a/source/core/core.natvis +++ b/source/core/core.natvis @@ -62,4 +62,45 @@ <ExpandedItem>pointer</ExpandedItem> </Expand> </Type> + + +<Type Name="Slang::Safe32Ptr<*>"> + <Expand> + <ExpandedItem>($T1*)(m_base->m_data + m_offset)</ExpandedItem> + </Expand> +</Type> + +<Type Name="Slang::Relative32Ptr<*>"> + <Expand> + <ExpandedItem>(m_offset == 0x80000000) ? nullptr : ($T1*)(((char*)this) + m_offset)</ExpandedItem> + </Expand> +</Type> + + +<Type Name="Slang::Safe32Array<*>"> + <Expand> + <Item Name="[count]">m_count</Item> + <ArrayItems> + <Size>m_count</Size> + <ValuePointer>($T1*)(m_data.m_base->m_data + m_data.m_offset)</ValuePointer> + </ArrayItems> + </Expand> +</Type> + + +<Type Name="Slang::Relative32Array<*>"> + <Expand> + <Item Name="[count]">m_count</Item> + <ArrayItems> + <Size>m_count</Size> + <ValuePointer>(m_data.m_offset == 0x80000000) ? nullptr : ($T1*)(((char*)&m_data) + m_data.m_offset)</ValuePointer> + </ArrayItems> + </Expand> +</Type> + +<Type Name="Slang::RelativeString"> + <DisplayString>{(m_sizeThenContents + 1),s}</DisplayString> + <StringView>(m_sizeThenContents + 1),s</StringView> +</Type> + </AutoVisualizer> |
