From bd5029b0462023e27021c23ae1b7c50d00876d97 Mon Sep 17 00:00:00 2001 From: Rainer Schuetze Date: Thu, 4 Dec 2014 08:46:41 +0100 Subject: * tweaked visualizer macros to display void[], limit array preview to 64 entries * added VS2013 projects + solution --- .gitignore | 4 + CHANGES | 6 ++ VERSION | 2 +- autoexp.visualizer | 59 ++++++++++---- src/cv2pdb.vcxproj | 122 ++++++++++++++++++++++++++++ src/cv2pdb.vcxproj.filters | 61 ++++++++++++++ src/cv2pdb_vs12.sln | 78 ++++++++++++++++++ src/dviewhelper/dviewhelper.vcxproj | 98 ++++++++++++++++++++++ src/dviewhelper/dviewhelper.vcxproj.filters | 14 ++++ test/Makefile | 2 +- test/cvtest.vcxproj | 73 +++++++++++++++++ test/cvtest.vcxproj.user | 4 + 12 files changed, 504 insertions(+), 19 deletions(-) create mode 100644 .gitignore create mode 100644 src/cv2pdb.vcxproj create mode 100644 src/cv2pdb.vcxproj.filters create mode 100644 src/cv2pdb_vs12.sln create mode 100644 src/dviewhelper/dviewhelper.vcxproj create mode 100644 src/dviewhelper/dviewhelper.vcxproj.filters create mode 100644 test/cvtest.vcxproj create mode 100644 test/cvtest.vcxproj.user diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2f63e8 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/bin +/src/cv2pdb_vs12.sdf +/src/cv2pdb_vs12.v12.suo +/test/obj diff --git a/CHANGES b/CHANGES index 6dde540..f6626ba 100644 --- a/CHANGES +++ b/CHANGES @@ -200,3 +200,9 @@ unreleased Version 0.22 2014-03-01 Version 0.31 * added support for local variables accessed through esp + +2014-09-24 Version 0.32 + + * DWARF: fixed relocations in .debug_line section + * tweaked visualizer macros to display void[], limit array preview to 64 entries + diff --git a/VERSION b/VERSION index bed6559..8e8c781 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -VERSION = 0.31 +VERSION = 0.32 diff --git a/autoexp.visualizer b/autoexp.visualizer index f5c664c..a5772f1 100644 --- a/autoexp.visualizer +++ b/autoexp.visualizer @@ -25,14 +25,38 @@ dchar[]|const(dchar)[]|immutable(dchar)[] { const void[]|void[] { preview ( #if ($e.ptr == 0) ( "null" ) - #else ( - #( "[", $e.length, "] ", [(void*) $e.ptr] ) + #elif($e.length > 4096) ( + #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" ) + ) + #elif($e.length > 64) ( + #( "[", $e.length, "]( ", + #array( expr:((unsigned char*)$e.ptr)[$i], size:64 ), + ",...)" + ) + ) + #else ( + #( + "[", $e.length, "](", + #array ( expr : ((unsigned char*)$e.ptr)[$i], size : $e.length ), + ")" + ) ) ) children ( - #( - length: [$e.length], - ptr: [(void*) $e.ptr] + #if($e.length > 4096) ( + #( + length: [$e.length], + ptr: [(void*) $e.ptr] + ) + ) + #else ( + #( + length: [$e.length], + #array ( + expr: ((unsigned char*)$e.ptr)[$i], + size: $e.length + ) + ) ) ) } @@ -41,19 +65,20 @@ const void[]|void[] { *[]|dArray* { preview ( #if ($e.ptr == 0) ( "null" ) - #else ( - #if($e.length > 1024) ( - #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" ) + #elif($e.length > 4096) ( + #( "[", $e.length, "] ", (void*) $e.ptr, " too large for expansion" ) + ) + #elif($e.length > 64) ( + #( "[", $e.length, "]( ", + #array( expr:($e.ptr)[$i], size:64 ), + ",...)" ) - #else ( - #( - "[", $e.length, "](", - #array ( - expr : ($e.ptr)[$i], - size : $e.length - ), - ")" - ) + ) + #else ( + #( + "[", $e.length, "](", + #array ( expr : ($e.ptr)[$i], size : $e.length ), + ")" ) ) ) diff --git a/src/cv2pdb.vcxproj b/src/cv2pdb.vcxproj new file mode 100644 index 0000000..3694a5b --- /dev/null +++ b/src/cv2pdb.vcxproj @@ -0,0 +1,122 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {5E2BD27D-446A-4C99-9829-135F7C000D90} + cv2pdb + Win32Proj + + + + Application + v120_xp + Unicode + true + + + Application + v120_xp + Unicode + + + + + + + + + + + + + <_ProjectFileVersion>12.0.21005.1 + + + ..\bin\$(Configuration)\ + ..\bin\$(Configuration)\$(ProjectName)\ + true + + + ..\bin\$(Configuration)\ + ..\bin\$(Configuration)\$(ProjectName)\ + false + + + + /wd4996 %(AdditionalOptions) + Disabled + WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebug + false + + Level3 + EditAndContinue + + + dbghelp.lib;%(AdditionalDependencies) + $(OutDir)$(ProjectName).exe + true + Console + MachineX86 + 5.1 + + + + + /wd4996 %(AdditionalOptions) + MaxSpeed + true + Speed + WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) + MultiThreaded + true + false + + Level3 + ProgramDatabase + + + true + Console + true + true + MachineX86 + true + 5.1 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/cv2pdb.vcxproj.filters b/src/cv2pdb.vcxproj.filters new file mode 100644 index 0000000..9807733 --- /dev/null +++ b/src/cv2pdb.vcxproj.filters @@ -0,0 +1,61 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cc;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + Source Files + + + \ No newline at end of file diff --git a/src/cv2pdb_vs12.sln b/src/cv2pdb_vs12.sln new file mode 100644 index 0000000..f3e203c --- /dev/null +++ b/src/cv2pdb_vs12.sln @@ -0,0 +1,78 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 2013 +VisualStudioVersion = 12.0.21005.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{7F4A9B6A-05A2-45D0-AFC3-3754B7FB77B9}" + ProjectSection(SolutionItems) = preProject + ..\autoexp.expand = ..\autoexp.expand + ..\autoexp.visualizer = ..\autoexp.visualizer + ..\CHANGES = ..\CHANGES + ..\FEATURES = ..\FEATURES + ..\INSTALL = ..\INSTALL + ..\LICENSE = ..\LICENSE + ..\Makefile = ..\Makefile + ..\README = ..\README + ..\TODO = ..\TODO + ..\VERSION = ..\VERSION + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cv2pdb", "cv2pdb.vcxproj", "{5E2BD27D-446A-4C99-9829-135F7C000D90}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "dviewhelper", "dviewhelper\dviewhelper.vcxproj", "{E4424774-A7A0-4502-8626-2723904D70EA}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "cvtest", "..\test\cvtest.vcxproj", "{CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug GDC|Win32 = Debug GDC|Win32 + Debug GDC|x64 = Debug GDC|x64 + Debug|Win32 = Debug|Win32 + Debug|x64 = Debug|x64 + Release|Win32 = Release|Win32 + Release|x64 = Release|x64 + Win32 COFF|Win32 = Win32 COFF|Win32 + Win32 COFF|x64 = Win32 COFF|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug GDC|Win32.ActiveCfg = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug GDC|Win32.Build.0 = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug GDC|x64.ActiveCfg = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug|Win32.ActiveCfg = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug|Win32.Build.0 = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Debug|x64.ActiveCfg = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Release|Win32.ActiveCfg = Release|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Release|Win32.Build.0 = Release|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Release|x64.ActiveCfg = Release|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Win32 COFF|Win32.ActiveCfg = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Win32 COFF|Win32.Build.0 = Debug|Win32 + {5E2BD27D-446A-4C99-9829-135F7C000D90}.Win32 COFF|x64.ActiveCfg = Release|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug GDC|Win32.ActiveCfg = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug GDC|Win32.Build.0 = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug GDC|x64.ActiveCfg = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug|Win32.ActiveCfg = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug|Win32.Build.0 = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Debug|x64.ActiveCfg = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Release|Win32.ActiveCfg = Release|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Release|Win32.Build.0 = Release|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Release|x64.ActiveCfg = Release|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Win32 COFF|Win32.ActiveCfg = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Win32 COFF|Win32.Build.0 = Debug|Win32 + {E4424774-A7A0-4502-8626-2723904D70EA}.Win32 COFF|x64.ActiveCfg = Release|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug GDC|Win32.ActiveCfg = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug GDC|Win32.Build.0 = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug GDC|x64.ActiveCfg = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug|Win32.ActiveCfg = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug|Win32.Build.0 = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Debug|x64.ActiveCfg = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Release|Win32.ActiveCfg = Release|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Release|Win32.Build.0 = Release|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Release|x64.ActiveCfg = Release|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Win32 COFF|Win32.ActiveCfg = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Win32 COFF|Win32.Build.0 = Debug|Win32 + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF}.Win32 COFF|x64.ActiveCfg = Release|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/src/dviewhelper/dviewhelper.vcxproj b/src/dviewhelper/dviewhelper.vcxproj new file mode 100644 index 0000000..0891430 --- /dev/null +++ b/src/dviewhelper/dviewhelper.vcxproj @@ -0,0 +1,98 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {E4424774-A7A0-4502-8626-2723904D70EA} + Win32Proj + + + + DynamicLibrary + v120 + MultiByte + + + DynamicLibrary + v120 + MultiByte + + + + + + + + + + + + + + <_ProjectFileVersion>12.0.21005.1 + + + ../../bin/$(Configuration)\ + $(OutDir)$(ProjectName)\ + true + + + ../../bin/$(Configuration)\ + $(OutDir)$(ProjectName)\ + false + + + + Disabled + WIN32;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + EnableFastChecks + MultiThreadedDebug + + Level3 + EditAndContinue + + + $(OutDir)$(ProjectName).dll + + true + Windows + false + + MachineX86 + + + + + WIN32;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + MultiThreaded + + Level3 + ProgramDatabase + + + $(OutDir)$(ProjectName).dll + true + Windows + true + true + false + + MachineX86 + + + + + + + + + \ No newline at end of file diff --git a/src/dviewhelper/dviewhelper.vcxproj.filters b/src/dviewhelper/dviewhelper.vcxproj.filters new file mode 100644 index 0000000..1014c03 --- /dev/null +++ b/src/dviewhelper/dviewhelper.vcxproj.filters @@ -0,0 +1,14 @@ + + + + + {4FC737F1-C7A5-4376-A066-2A32D752A2FF} + cpp;c;cxx;def;odl;idl;hpj;bat;asm;asmx + + + + + Source Files + + + \ No newline at end of file diff --git a/test/Makefile b/test/Makefile index 8a9b284..fdfdf84 100644 --- a/test/Makefile +++ b/test/Makefile @@ -6,7 +6,7 @@ SRC = cvtest.d DBGDIR = ..\bin\Debug RELDIR = ..\bin\Release -DMD = c:\l\dmd2.064\windows\bin\dmd.exe +DMD = c:\l\d\dmd2\windows\bin\dmd.exe # DMD = c:\l\dmd-1.045\windows\bin\dmd.exe CV2PDB_DBG = $(DBGDIR)\cv2pdb.exe diff --git a/test/cvtest.vcxproj b/test/cvtest.vcxproj new file mode 100644 index 0000000..37f117f --- /dev/null +++ b/test/cvtest.vcxproj @@ -0,0 +1,73 @@ + + + + + Debug + Win32 + + + Release + Win32 + + + + {CCC0643D-7D3F-4D5E-AE0E-C871776E86AF} + cvtest + MakeFileProj + + + + Makefile + v120 + + + Makefile + v120 + + + + + + + + + + + + + <_ProjectFileVersion>12.0.21005.1 + + + ..\bin\$(Configuration)\ + $(OutDir) + nmake -f Makefile + + + ..\bin\Debug\cvtest.exe + WIN32;_DEBUG;$(NMakePreprocessorDefinitions) + + + ..\bin\$(Configuration)\ + $(OutDir) + nmake -f Makefile release + + + ..\bin\Release\cvtest.exe + WIN32;NDEBUG;$(NMakePreprocessorDefinitions) + + + + + + + + + + {5e2bd27d-446a-4c99-9829-135f7c000d90} + false + + + + + + \ No newline at end of file diff --git a/test/cvtest.vcxproj.user b/test/cvtest.vcxproj.user new file mode 100644 index 0000000..ef5ff2a --- /dev/null +++ b/test/cvtest.vcxproj.user @@ -0,0 +1,4 @@ + + + + \ No newline at end of file -- cgit v0.12