[Lldb-commits] [PATCH] D44015: Fix std unique pointer not printing.

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Pretty close, just a couple of style issues. Comment at: source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp:62 if (!valobj_backend_sp) -return false; +return NULL; nullptr. Comment at: source/Plu

Re: [Lldb-commits] [lldb] r326739 - [test] Skip pexpect-based lldb-mi tests on Darwin

2018-03-06 Thread Pavel Labath via lldb-commits
For the record, our bots don't run any of the lldb-mi tests. I don't know if it is an issue with pexpect, the way we are using, or genuine issues, but I found pretty much all of lldb-mi tests flaky, and it's code too hairy to understand what is going on. On Mon, 5 Mar 2018 at 20:19, Vedant Kumar

[Lldb-commits] [PATCH] D44139: WIP: Update selected thread after loading mach core

2018-03-06 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: jingham, jasonmolenda, labath. Herald added a subscriber: llvm-commits. The OS plugins might have updated the thread list after a core file has been loaded. The physical thread in the core file may no longer be the one that should b

[Lldb-commits] [PATCH] D44139: WIP: Update selected thread after loading mach core

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I don't know much about OS plugins, but I don't see a reason why this would be mach-specific (so yes, it should probably be done for elf cores as well). Oh, and we also have windows minidumps, but I'm not sure if it should be up to you to update all of these (I'm saying

[Lldb-commits] [lldb] r326775 - [LLDB][PPC64] Fixed issues with expedited registers

2018-03-06 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Mar 6 03:54:41 2018 New Revision: 326775 URL: http://llvm.org/viewvc/llvm-project?rev=326775&view=rev Log: [LLDB][PPC64] Fixed issues with expedited registers Summary: - reg_nums were missing the end marker entry - marked FP test to be skipped for ppc64 Reviewers: labat

[Lldb-commits] [PATCH] D44015: Fix std unique pointer not printing.

2018-03-06 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy updated this revision to Diff 137153. alexandreyy added a comment. Changed NULL pointer https://reviews.llvm.org/D44015 Files: source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp Index: source/Plugins/Language/CPlusPlus/LibStdcppUniquePointer.cpp ===

[Lldb-commits] [lldb] r326777 - HostThreadPosix::Cancel: remove android-specific implementation

2018-03-06 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Mar 6 04:46:05 2018 New Revision: 326777 URL: http://llvm.org/viewvc/llvm-project?rev=326777&view=rev Log: HostThreadPosix::Cancel: remove android-specific implementation Noone is calling this function on android, so we can just use the generic llvm_unreachable "implemen

[Lldb-commits] [PATCH] D44056: [lldb] Fix "code unreachable" warning in HostThreadPosix::Cancel

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Since the android part wasn't obviously NFC, I figured I should be the one to do it. And since the pthread_cancel is not available on android, I've had to add the #else clause as well, which should fix the unreachable warning as well. So I guess you could say this got co

[Lldb-commits] [PATCH] D44074: ObjectFileMachO: split CreateSections mega-function into more manageable chunks

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I agree we should move things to the cpp file when possible, and this is possible. I'm going to update the patch before committing. Thanks for the review. https://reviews.llvm.org/D44074 ___ lldb-commits mailing list lldb-c

[Lldb-commits] [PATCH] D42955: Make Module::GetSectionList output consistent

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D42955#1027142, @clayborg wrote: > Again, we need any objects coming out of the ObjectFile to have the correct > sections. Not sure how we would accomplish that with a solution where the > dSYM file uses it own useless sections. I think we h

[Lldb-commits] [lldb] r326791 - ObjectFileMachO: split CreateSections mega-function into more manageable chunks

2018-03-06 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Mar 6 05:53:26 2018 New Revision: 326791 URL: http://llvm.org/viewvc/llvm-project?rev=326791&view=rev Log: ObjectFileMachO: split CreateSections mega-function into more manageable chunks Summary: In an effort to understand the function's operation, I've split it into log

[Lldb-commits] [PATCH] D44074: ObjectFileMachO: split CreateSections mega-function into more manageable chunks

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326791: ObjectFileMachO: split CreateSections mega-function into more manageable chunks (authored by labath, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://rev

[Lldb-commits] [PATCH] D44139: WIP: Update selected thread after loading mach core

2018-03-06 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Change looks fine to me. > What's the best/easiest way to test this? You can just run: (lldb) process save-core /tmp/test.core" This will allow you to take any process and save a core file for it from lldb. Then you could obj2yaml it and check that part in. This is

[Lldb-commits] [PATCH] D44139: WIP: Update selected thread after loading mach core

2018-03-06 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere planned changes to this revision. JDevlieghere added a comment. Alright, sounds good. Thank you both for the help! Repository: rL LLVM https://reviews.llvm.org/D44139 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://l

[Lldb-commits] [PATCH] D44015: Fix std unique pointer not printing.

2018-03-06 Thread Alexandre Yukio Yamashita via Phabricator via lldb-commits
alexandreyy added a comment. Thanks, @labath @clayborg . @labath Could you please commit this patch? https://reviews.llvm.org/D44015 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commit

[Lldb-commits] [lldb] r326805 - Rewrite TestTargetSymbolsBuildidCase to be more focused

2018-03-06 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Mar 6 07:56:20 2018 New Revision: 326805 URL: http://llvm.org/viewvc/llvm-project?rev=326805&view=rev Log: Rewrite TestTargetSymbolsBuildidCase to be more focused Summary: The test was failing in remote debugging scenario with windows as a host as cmd.exe is not able to

[Lldb-commits] [PATCH] D42914: Rewrite TestTargetSymbolsBuildidCase to be more focused

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL326805: Rewrite TestTargetSymbolsBuildidCase to be more focused (authored by labath, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D42914?vs=

[Lldb-commits] [PATCH] D44041: Only replace object file sections when non-empty

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Ok, as of r326805 it should be very easy to write a test for this. You can look at the test in that commit for inspiration. Btw, do you happen to know why we have two copies of the section merging code? While working on that patch I noticed an issue that is caused (in pa

[Lldb-commits] [PATCH] D44157: [elf] Remove one copy of the section merging code

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: fjricci, jankratochvil. Herald added subscribers: arichardson, emaste. Besides being superfluous, this double merging was actually wrong and causing some sections to be added twice. The reason for that was that the code assumes sectoin IDs are

[Lldb-commits] [PATCH] D44159: Next batch of test-tree-cleaning changes

2018-03-06 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added a reviewer: aprantl. Herald added subscribers: mehdi_amini, ki.stfu. The changes here fall into several categories. - some tests were redirecting inferior stdout/err to a file. For these I make sure we use an absolute path for the file. I also create a

[Lldb-commits] [PATCH] D44164: [SymbolFilePDB] Get line number for PDBSymbolTypeEnum

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith created this revision. asmith added reviewers: zturner, lldb-commits, rnk. Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44164 Files: lit/SymbolFile/PDB/enums-layout.test source/Plugins/SymbolFile/PDB/PDBASTParser.cpp Index: source/Plugins/

[Lldb-commits] [PATCH] D44165: [SymbolFilePDB] Minor cleanup

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith created this revision. asmith added reviewers: zturner, rnk, lldb-commits. Herald added a subscriber: llvm-commits. - Remove unused code - Adding `break` statement conditionally - Ignore empty strings in FindTypeByName Repository: rL LLVM https://reviews.llvm.org/D44165 Files: sou

[Lldb-commits] [PATCH] D44166: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith created this revision. asmith added reviewers: zturner, rnk, lldb-commits. Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44166 Files: source/Plugins/SymbolFile/PDB/PDBASTParser.cpp Index: source/Plugins/SymbolFile/PDB/PDBASTParser.cpp ===

[Lldb-commits] [PATCH] D44166: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places

2018-03-06 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Test? Repository: rL LLVM https://reviews.llvm.org/D44166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D44167: [SymbolFilePDB] Add support for CVR pointer type qualifier

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith created this revision. asmith added reviewers: zturner, rnk, lldb-commits. Herald added a subscriber: llvm-commits. - Complete element type of PDBSymbolTypeArray. - Add a test to check types of multi-dimensional array and pointers with CVR. Repository: rL LLVM https://reviews.llvm.org

[Lldb-commits] [PATCH] D44165: [SymbolFilePDB] Minor cleanup

2018-03-06 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added inline comments. This revision is now accepted and ready to land. Comment at: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp:499 auto type_list = GetTypeList(); -type_list->Insert(result); +if (type_list) + type_lis

[Lldb-commits] [lldb] r326847 - Add test for lldb-mi interpreter

2018-03-06 Thread Adrian Prantl via lldb-commits
Author: adrian Date: Tue Mar 6 15:25:04 2018 New Revision: 326847 URL: http://llvm.org/viewvc/llvm-project?rev=326847&view=rev Log: Add test for lldb-mi interpreter Test that "lldb-mi --interpreter" can interpret "target list" CLI command. Patch by Alex Polyakov! Differential Revision: https:/

[Lldb-commits] [lldb] r326849 - the thread id is easier to read in base16.

2018-03-06 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Tue Mar 6 15:33:02 2018 New Revision: 326849 URL: http://llvm.org/viewvc/llvm-project?rev=326849&view=rev Log: the thread id is easier to read in base16. Modified: lldb/trunk/tools/darwin-threads/examine-threads.c Modified: lldb/trunk/tools/darwin-threads/examine-thre

[Lldb-commits] [PATCH] D44182: [SymbolFilePDB] Keep searching until the file name is found for the pdb compiland

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith created this revision. asmith added reviewers: zturner, rnk, lldb-commits. Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D44182 Files: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp Index: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp =

[Lldb-commits] [PATCH] D44165: [SymbolFilePDB] Minor cleanup

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith marked an inline comment as done. asmith added inline comments. Comment at: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp:499 auto type_list = GetTypeList(); -type_list->Insert(result); +if (type_list) + type_list->Insert(result); zturn

[Lldb-commits] [PATCH] D44166: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
asmith updated this revision to Diff 137324. asmith added a comment. Add test https://reviews.llvm.org/D44166 Files: lit/SymbolFile/PDB/Inputs/SimpleTypesTest.cpp lit/SymbolFile/PDB/typedefs.test source/Plugins/SymbolFile/PDB/PDBASTParser.cpp Index: source/Plugins/SymbolFile/PDB/PDBASTP

Re: [Lldb-commits] [PATCH] D44166: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places

2018-03-06 Thread Zachary Turner via lldb-commits
Lgtm On Tue, Mar 6, 2018 at 9:14 PM Aaron Smith via Phabricator < revi...@reviews.llvm.org> wrote: > asmith updated this revision to Diff 137324. > asmith added a comment. > > Add test > > > https://reviews.llvm.org/D44166 > > Files: > lit/SymbolFile/PDB/Inputs/SimpleTypesTest.cpp > lit/Symbol

[Lldb-commits] [PATCH] D44166: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places

2018-03-06 Thread Aaron Smith via Phabricator via lldb-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL326875: [SymbolFilePDB] Add missing Char16 and Char32 types in a few places (authored by asmith, committed by ). Changed