Skip to content

Commit

Permalink
#658 : working on the project setup
Browse files Browse the repository at this point in the history
  • Loading branch information
arakov committed Jul 9, 2024
1 parent 573124c commit 2c15100
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 16 deletions.
8 changes: 1 addition & 7 deletions doc/todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,6 @@ In development:
[development]
### EPIC: elena 6.3 ###

=== Iteration 27 (10.07.2024) ===
--------------------------------------
- #658 : create debug adapter

--------------------------------------

=== Iteration 28 ===
--------------------------------------
dev:
Expand All @@ -26,7 +20,7 @@ In development:
- elena : nested classes should not be loadable at runtime
- #667
- constructor - single dispatcher
- #658
- #658 : create debug adapter
port:
- x86-64 : vm terminal, ide vm console
-
Expand Down
21 changes: 21 additions & 0 deletions elenasrc3/dpa/dpa_session.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//---------------------------------------------------------------------------
// E L E N A P r o j e c t: ELENA Debugger Adapater
//
// This file contains the DPA Session implementations
//
// (C)2024, by Aleksey Rakov
//---------------------------------------------------------------------------

#include "dpa_session.h"

using namespace dpa;

Session :: Session()
{

}

Session :: ~Session()
{

}
8 changes: 7 additions & 1 deletion elenasrc3/dpa/session.h → elenasrc3/dpa/dpa_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,13 @@

namespace dpa
{

// --- Session ---
class Session
{
public:
Session();
virtual ~Session();
};
}

#endif
Empty file removed elenasrc3/dpa/session.cpp
Empty file.
1 change: 0 additions & 1 deletion elenasrc3/ldbg/dpaconst.h

This file was deleted.

8 changes: 7 additions & 1 deletion elenasrc3/ldbg/ldbg_session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//---------------------------------------------------------------------------

#include "ldbg_session.h"
#include "common.h"

using namespace elena_lang;

Expand All @@ -17,7 +18,12 @@ DPASessionWrapper :: DPASessionWrapper()

}

void DPASessionWrapper :: prepare()
DPASessionWrapper :: ~DPASessionWrapper()
{
freeobj(_session);
}

void DPASessionWrapper :: prepare()
{
_session = new dpa::Session();
}
3 changes: 3 additions & 0 deletions elenasrc3/ldbg/ldbg_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,13 @@ namespace elena_lang
{
class DPASessionWrapper
{
dpa::Session* _session;

public:
void prepare();

DPASessionWrapper();
virtual ~DPASessionWrapper();
};
}

Expand Down
12 changes: 6 additions & 6 deletions elenasrc3/ldbg/vs/ldbg.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\..\dpa;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -118,7 +118,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\..\dpa;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -136,7 +136,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>_DEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\..\dpa;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -154,7 +154,7 @@
<SDLCheck>true</SDLCheck>
<PreprocessorDefinitions>NDEBUG;_CONSOLE;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<ConformanceMode>true</ConformanceMode>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<AdditionalIncludeDirectories>..\..\common;..\..\engine;..\..\dpa;..\windows;..;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
Expand All @@ -169,15 +169,15 @@
<ItemGroup>
<ClCompile Include="..\ldbg_session.cpp" />
<ClCompile Include="..\windows\ldbg.cpp" />
<ClCompile Include="..\..\dpa\session.cpp" />
<ClCompile Include="..\..\dpa\dpa_session.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="..\ldbg_session.h" />
<ClInclude Include="resource.h" />
<ClInclude Include="..\dpaconst.h" />
<ClInclude Include="..\..\common\common.h" />
<ClInclude Include="..\..\dpa\dpa_common.h" />
<ClInclude Include="..\..\dpa\session.h" />
<ClInclude Include="..\..\dpa\dpa_session.h" />
</ItemGroup>
<ItemGroup>
<ResourceCompile Include="Resource.rc" />
Expand Down

0 comments on commit 2c15100

Please sign in to comment.