[Lldb-commits] [PATCH] D50384: Move Predicate.h from Host to Utility

2018-08-08 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 159649. labath added a comment. Updating the module map too (thanks). https://reviews.llvm.org/D50384 Files: include/lldb/Core/Event.h include/lldb/Core/IOHandler.h include/lldb/Host/Editline.h include/lldb/Host/Predicate.h include/lldb/Host/Socket

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz updated this revision to Diff 159654. sgraenitz added a comment. Add unit tests for RichManglingContext https://reviews.llvm.org/D50071 Files: include/lldb/Core/Mangled.h include/lldb/Core/RichManglingContext.h include/lldb/Symbol/Symtab.h include/lldb/lldb-forward.h lldb.xc

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: source/Core/RichManglingContext.cpp:133 + case PluginCxxLanguage: +m_cxx_method_str = ConstString( + get(m_cxx_method_parser)->GetBasename()); labath wrote: > I thought we were going to get rid of this Con

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Pavel Labath via Phabricator via lldb-commits
labath edited reviewers, added: zturner, davide; removed: labath. labath added a comment. I am not sure I'll have the resources to see this review through, so I'd prefer to leave this to someone else. The thoughts I have had so far are: - the patch is very big and probably runs afoul of the "yo

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Core/RichManglingContext.cpp:133 + case PluginCxxLanguage: +m_cxx_method_str = ConstString( + get(m_cxx_method_parser)->GetBasename()); sgraenitz wrote: > labath wrote: > > I thought we were going to g

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz updated this revision to Diff 159678. sgraenitz added a comment. Polishing https://reviews.llvm.org/D50071 Files: include/lldb/Core/Mangled.h include/lldb/Core/RichManglingContext.h include/lldb/Symbol/Symtab.h include/lldb/lldb-forward.h lldb.xcodeproj/project.pbxproj sou

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz marked an inline comment as done. sgraenitz added a comment. Tests, polishing and renaming (as discussed with @jingham). If you have more comments on this, please let me know. Otherwise I'd be fine with keeping it like this. https://reviews.llvm.org/D50071 _

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. I think this looks great. I am very happy with the final result. Thank you for your patience, and thanks again for taking on this task. https://reviews.llvm.org/D50071

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. To end things on a positive note: I think the test coverage is pretty good (I'm sure somebody will suggest switching to lit), and I think a VS code plugin would be a great addition to lldb. https://reviews.llvm.org/D50365 _

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Zachary Turner via lldb-commits
How does this differ from VS Code's builtin LLDB MI support? On Wed, Aug 8, 2018 at 8:15 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > To end things on a positive note: I think the test coverage is pretty good > (I'm sure somebody will suggest sw

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. How does this differ from VS Code's builtin LLDB MI support? https://reviews.llvm.org/D50365 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Zachary Turner via lldb-commits
To elaborate, if you install the C/C++ plugin, and you go to Debug -> Configurations, and you go down to the MICmdMode property, it is by default set to "gdb". But you can change this to "lldb" and it works out of the box. On Wed, Aug 8, 2018 at 8:30 AM Zachary Turner wrote: > How does this dif

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. To elaborate, if you install the C/C++ plugin, and you go to Debug -> Configurations, and you go down to the MICmdMode property, it is by default set to "gdb". But you can change this to "lldb" and it works out of the box. https://reviews.llvm.org/D50365

[Lldb-commits] [PATCH] D50384: Move Predicate.h from Host to Utility

2018-08-08 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. lgtm, although Predicate is simple enough that I wonder if one day we should try to just delete it entirely. https://reviews.llvm.org/D50384 _

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Greg Clayton via lldb-commits
It is a different protocol. The LLDB MI plugin didn't work very well as was quite flaky when I tested it a while back. Then I grabbed the CodeLLDB plugin by Vadim Chugunov and it worked very well. When I looked more closely at this plugin, it was using a javascript/typescript plug-in to launch a

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D50365#1192447, @zturner wrote: > To elaborate, if you install the C/C++ plugin, and you go to Debug -> > Configurations, and you go down to the MICmdMode property, it is by default > set to "gdb". But you can change this to "lldb" and it w

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Zachary Turner via lldb-commits
Ok sounds good then, mostly just wanted to make sure you weren't re-inventing something that already existed :) Do you plan to publish this on the VSCode marketplace? On Wed, Aug 8, 2018 at 8:38 AM Greg Clayton wrote: > It is a different protocol. The LLDB MI plugin didn't work very well as > w

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Greg Clayton via lldb-commits
> On Aug 8, 2018, at 8:40 AM, Zachary Turner wrote: > > Ok sounds good then, mostly just wanted to make sure you weren't re-inventing > something that already existed :) Do you plan to publish this on the VSCode > marketplace? I would like to. Not sure how this works with native binaries as

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. This looks really cool :-) I started doing a superficial pass but I have a hard time following what everything is doing. I think it could really help if you added more structure/abstraction. Can you also run clang-format over the new files? Comm

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Jan Korous via Phabricator via lldb-commits
jkorous added a comment. Hi Greg, this looks interesting! I got curious about your patch since I am dealing with another protocol from the same "family" - LSP. Comment at: tools/lldb-vscode/lldb-vscode.cpp:1424 +//---

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. You and Pavel have done great work getting this all straight. I don't have much to add except some trivial quibbles about variable naming, a grammar error and some other inessentials. Comment at: include/lldb/Core/Mangled.h:323-325 + /// @return +

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz updated this revision to Diff 159767. sgraenitz marked 5 inline comments as done. sgraenitz added a comment. Addressed Jim's feedback https://reviews.llvm.org/D50071 Files: include/lldb/Core/Mangled.h include/lldb/Core/RichManglingContext.h include/lldb/Symbol/Symtab.h include

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz marked an inline comment as done. sgraenitz added inline comments. Comment at: source/Core/Mangled.cpp:239-240 +//-- +namespace { + +char *GetMSVCDemangledStr(const char *M) { jingham w

[Lldb-commits] [PATCH] D50473: [Demangle] Add another test for ItaniumPartialDemangler

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz created this revision. sgraenitz added a reviewer: erik.pilkington. Herald added a subscriber: llvm-commits. Show the behavior of print operations in the ItaniumPartialDemangler. It's a summary of what the current integration in LLDB assumes. For new users this may be a useful example.

[Lldb-commits] [PATCH] D50271: [IRMemoryMap] Shrink Allocation make it move-only (NFC)

2018-08-08 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. Looks reasonable to me. https://reviews.llvm.org/D50271 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D50365#1191944, @labath wrote: > I am not sure I'll have the resources to see this review through, so I'd > prefer to leave this to someone else. > > The thoughts I have had so far are: > > - the patch is very big and probably runs afoul of t

[Lldb-commits] [PATCH] D50473: [Demangle] Add another test for ItaniumPartialDemangler

2018-08-08 Thread Erik Pilkington via Phabricator via lldb-commits
erik.pilkington accepted this revision. erik.pilkington added a comment. This revision is now accepted and ready to land. LGTM, thanks for doing this! Comment at: unittests/Demangle/PartialDemangleTest.cpp:188 +size_t N = OriginalSize; +char *Res = D.getFunctionName(Buf

[Lldb-commits] [PATCH] D50478: WIP: Basic tail call frame support

2018-08-08 Thread Vedant Kumar via Phabricator via lldb-commits
vsk created this revision. Herald added a subscriber: JDevlieghere. This is a prototype of tail call frame support for lldb based on compiler support from https://reviews.llvm.org/D49887. It isn't ready for review. I'm sharing the proof-of-concept to give a heads-up about this coming down the pip

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Jim Ingham via Phabricator via lldb-commits
jingham accepted this revision. jingham added a comment. Looks good. https://reviews.llvm.org/D50071 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r339290 - [IRMemoryMap] Shrink Allocation and make it move-only (NFC)

2018-08-08 Thread Vedant Kumar via lldb-commits
Author: vedantk Date: Wed Aug 8 14:26:49 2018 New Revision: 339290 URL: http://llvm.org/viewvc/llvm-project?rev=339290&view=rev Log: [IRMemoryMap] Shrink Allocation and make it move-only (NFC) Profiling data show that Allocation::operator= is hot (see the data attached to the Phab review). Reor

[Lldb-commits] [PATCH] D50271: [IRMemoryMap] Shrink Allocation make it move-only (NFC)

2018-08-08 Thread Phabricator via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339290: [IRMemoryMap] Shrink Allocation and make it move-only (NFC) (authored by vedantk, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D5027

[Lldb-commits] [lldb] r339292 - Add ConstString test FromMidOfBufferStringRef

2018-08-08 Thread Stefan Granitz via lldb-commits
Author: stefan.graenitz Date: Wed Aug 8 14:57:42 2018 New Revision: 339292 URL: http://llvm.org/viewvc/llvm-project?rev=339292&view=rev Log: Add ConstString test FromMidOfBufferStringRef Summary: It was not immediately clear to me whether or not non-null-terminated StringRef's are supported in

[Lldb-commits] [lldb] r339291 - Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Stefan Granitz via lldb-commits
Author: stefan.graenitz Date: Wed Aug 8 14:57:37 2018 New Revision: 339291 URL: http://llvm.org/viewvc/llvm-project?rev=339291&view=rev Log: Use rich mangling information in Symtab::InitNameIndexes() Summary: I set up a new review, because not all the code I touched was marked as a change in ol

[Lldb-commits] [PATCH] D50071: Use rich mangling information in Symtab::InitNameIndexes()

2018-08-08 Thread Phabricator via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339291: Use rich mangling information in Symtab::InitNameIndexes() (authored by stefan.graenitz, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.or

[Lldb-commits] [PATCH] D50334: Add ConstString test FromMidOfBufferStringRef

2018-08-08 Thread Phabricator via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB339292: Add ConstString test FromMidOfBufferStringRef (authored by stefan.graenitz, committed by ). Changed prior to commit: https://reviews.llvm.org/D50334?vs=159298&id=159806#toc Repository: rLL

[Lldb-commits] [PATCH] D50473: [Demangle] Add another test for ItaniumPartialDemangler

2018-08-08 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: unittests/Demangle/PartialDemangleTest.cpp:188 +size_t N = OriginalSize; +char *Res = D.getFunctionName(Buf, &N); +EXPECT_EQ(nullptr, Res); erik.pilkington wrote: > Does LLDB actually pass in a N that is le

[Lldb-commits] [PATCH] D50473: [Demangle] Add another test for ItaniumPartialDemangler

2018-08-08 Thread Phabricator via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL339297: [Demangle] Add another test for ItaniumPartialDemangler (authored by stefan.graenitz, committed by ). Repository: rL LLVM https://reviews.llvm.org/D50473 Files: llvm/trunk/unittests/Demangle

[Lldb-commits] [PATCH] D50481: Fix broken builtin functions in the expression command

2018-08-08 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. Calling any non-libc builtin function in the expression command currently just causes Clang to state that the function is not known. The reason for this is that we actually never initialize the list of builtin functions in the Builtin::Context. This patch just c

[Lldb-commits] [PATCH] D50481: Fix broken builtin functions in the expression command

2018-08-08 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor added a reviewer: jingham. teemperor added a comment. I didn't disable Windows on the test as it shouldn't call any function in the target process. Just because I don't want to x-fail every test on Windows. Repository: rLLDB LLDB https://reviews.llvm.org/D50481 _

Re: [Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Leonard Mosescu via lldb-commits
> > The LLDB MI plugin didn't work very well as was quite flaky when I tested > it a while back. > Just curious, what was the flaky part, the debug adapter or the LLDB MI interface? On Wed, Aug 8, 2018 at 8:40 AM, Greg Clayton via Phabricator < revi...@reviews.llvm.org> wrote: > clayborg added a

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Leonard Mosescu via Phabricator via lldb-commits
lemo added a subscriber: zturner. lemo added a comment. > The LLDB MI plugin didn't work very well as was quite flaky when I tested > it a while back. Just curious, what was the flaky part, the debug adapter or the LLDB MI interface? https://reviews.llvm.org/D50365 _

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-08 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. Haven't had time to read through the main part of the patch, but I think the changes to debugserver's JSON parser would be good additions even if you've switched away from using it. The debugserver JSON parser is a copy of lldb's with all the StringRef etc llvm cl

[Lldb-commits] [PATCH] D50492: Also display the output and error output of a failed command

2018-08-08 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. Instead of just printing the current "False is not True, ..." message when we fail to run a certain command, this patch also adds the actual command output or error output that we received to the assertion message. Repository: rLLDB LLDB https://reviews.llvm.o