This repository was archived by the owner on Apr 2, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 193
Port swift-lldb to Windows #105
Closed
Closed
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
b663e7b
Fix cmark dependency on Windows
hughbe cf6c41a
Add cmake option to choose whether to use the builtin demangler
labath 6688456
Fix clashing struct/class forward definitions
hughbe 2641cde
Fix build-errors due to missing LIBEDIT on Windows
hughbe 988c109
Fix invalid namespace qualfied UTF conversion helpers on Windows
hughbe 914821d
Fix size_t/socket conversion warnings
hughbe a57edc0
Fix some warnings compiling with clang-cl on Windows.
889247e
Fix swift-specific private variable warnings
hughbe e01a890
Ignore "moving a temporary object prevents copy elision" warning
hughbe 1b47454
Port ExpressionSourceCode.cpp to Window
hughbe File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -363,7 +363,7 @@ Error Socket::Close() { | |
| Log *log(lldb_private::GetLogIfAnyCategoriesSet(LIBLLDB_LOG_CONNECTION)); | ||
| if (log) | ||
| log->Printf("%p Socket::Close (fd = %i)", static_cast<void *>(this), | ||
| m_socket); | ||
| static_cast<int>(m_socket)); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Isn't m_socket a SOCKET on windows?: SOCKET WSAAPI socket( How does casting this to an integer help here?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Socket is defined as: The warning we therefore get is trying to convert |
||
|
|
||
| #if defined(_WIN32) | ||
| bool success = !!closesocket(m_socket); | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -362,7 +362,7 @@ class ClangExpressionDeclMap : public ClangASTSource { | |
| //---------------------------------------------------------------------- | ||
| class ParserVars { | ||
| public: | ||
| ParserVars(ClangExpressionDeclMap &decl_map) : m_decl_map(decl_map) {} | ||
| ParserVars() {} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'll let Sean Callanan comment on all expression parser changes. |
||
|
|
||
| Target *GetTarget() { | ||
| if (m_exe_ctx.GetTargetPtr()) | ||
|
|
@@ -387,7 +387,6 @@ class ClangExpressionDeclMap : public ClangASTSource { | |
| ///that receives new top-level | ||
| ///functions. | ||
| private: | ||
| ClangExpressionDeclMap &m_decl_map; | ||
| DISALLOW_COPY_AND_ASSIGN(ParserVars); | ||
| }; | ||
|
|
||
|
|
@@ -398,7 +397,7 @@ class ClangExpressionDeclMap : public ClangASTSource { | |
| //---------------------------------------------------------------------- | ||
| void EnableParserVars() { | ||
| if (!m_parser_vars.get()) | ||
| m_parser_vars.reset(new ParserVars(*this)); | ||
| m_parser_vars = llvm::make_unique<ParserVars>(); | ||
| } | ||
|
|
||
| //---------------------------------------------------------------------- | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this file differ from the LLDB llvm.org SVN top of tree and the changes here are just syncing with top of tree SVN?
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I basically fixed the build errors that I presume were caused by a bad merge - many syntax errors occured as a result - e.g. missing
{, unhandled identifiers etc. The changes to this file were copy-pasted from upstream, but the file is different.Take a look at this commit here: https://github.com/hughbe/swift-lldb/commit/8d544a47ba95533c369949fa3bf0ad01dadea0a3
It demonstrates what the diff looks like when I copy-and-paste the remaining bits of
IOHandler.cppfrom upstream. Basically, its changes in API that I didn't want to modify right now because I don't really wan't to break all the things!