[Lldb-commits] [PATCH] D41428: [lldb] Add support to cache a PDB's global scope and fix a bug in getting the source file name for a compiland

2018-01-12 Thread Aaron Smith via Phabricator via lldb-commits
asmith updated this revision to Diff 129750. asmith retitled this revision from "[lldb] This commit adds support to cache a PDB's global scope and fixes a bug in getting the source file name for a compiland" to "[lldb] Add support to cache a PDB's global scope and fix a bug in getting the source

[Lldb-commits] [PATCH] D41428: [lldb] This commit adds support to cache a PDB's global scope and fixes a bug in getting the source file name for a compiland

2018-01-12 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. It's nice that this turned out so easy. Didn't even require modifying `lldb-test`. Comment at: lit/SymbolFile/PDB/compilands.test:9 +CHECK: {{^[0-9A-F]+}}: SymbolVendor (

[Lldb-commits] [PATCH] D41428: [lldb] This commit adds support to cache a PDB's global scope and fixes a bug in getting the source file name for a compiland

2018-01-12 Thread Aaron Smith via Phabricator via lldb-commits
asmith updated this revision to Diff 129747. asmith added a comment. Herald added a subscriber: llvm-commits. Added a lit unit test Repository: rL LLVM https://reviews.llvm.org/D41428 Files: lit/SymbolFile/PDB/Inputs/CompilandsTest.cpp lit/SymbolFile/PDB/compilands.test lit/SymbolFile/

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Lang Hames via Phabricator via lldb-commits
lhames added inline comments. Comment at: Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:2103 +static bool isOverload(clang::CXXMethodDecl *m1, clang::CXXMethodDecl *m2) { + // FIXME: This should detect covariant return types, but currently doesn't. aprantl

[Lldb-commits] [lldb] r322418 - We have two sources for path remapping information that we get out

2018-01-12 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Fri Jan 12 14:42:45 2018 New Revision: 322418 URL: http://llvm.org/viewvc/llvm-project?rev=322418&view=rev Log: We have two sources for path remapping information that we get out of a dSYM per-uuid plist that may be present (dsymutil does not create this plist, it is only ad

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. In https://reviews.llvm.org/D41962#975168, @aprantl wrote: > > there's a new skipUnlessFeature() method added to decorators.py which runs > > sysctl to detect hardware features (in this case, hw.optional.avx512f) > > How does one execute a program like `sysctl` on t

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. > there's a new skipUnlessFeature() method added to decorators.py which runs > sysctl to detect hardware features (in this case, hw.optional.avx512f) How does one execute a program like `sysctl` on the remote? I have seen code in TestLldbGdbServer.py that uses `platform

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. > Why not just look for the AVX registers by name that are only available if > they are correctly detected by the native lldb-server or debugserver? Then we > can avoid all of this. If we don't execute any instructions that crash the > program, we can stop before any sp

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. In https://reviews.llvm.org/D41997#974957, @clayborg wrote: > Very cool and close. It would be nice to function correctly without asserts, > see inlined comment. Out of curiosity, why does `lldb` roll its own assertion() mechanism instead of using the standard one? R

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Very cool and close. It would be nice to function correctly without asserts, see inlined comment. Comment at: Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:

Re: [Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Greg Clayton via lldb-commits
Why not just look for the AVX registers by name that are only available if they are correctly detected by the native lldb-server or debugserver? Then we can avoid all of this. If we don't execute any instructions that crash the program, we can stop before any specialized AVX instructions are exe

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham added inline comments. Comment at: Python/lldbsuite/test/expression_command/call-overridden-method/main.cpp:15 + Base *b = &d; + return 0; // Please test these expressions while stopped at this line: +} aprantl wrote: > the expressions are missing :-)

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. Awesome! Comment at: Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:2103 +static bool isOverload(clang::CXXMethodDecl *m1, clang::CXXMethodDecl *m2) { + // FIXME: This should detect covariant return types, but currently doesn't. Co

[Lldb-commits] [PATCH] D41997: Build virtual override tables in DWARFASTParserClang::CompleteTypeFromDWARF

2018-01-12 Thread Lang Hames via Phabricator via lldb-commits
lhames created this revision. lhames added a reviewer: davide. lhames added a project: LLDB. Herald added subscribers: llvm-commits, JDevlieghere. Failure to build the method override tables results in expression failures on the following trivial test case: class Base { public: virtual ~

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl updated this revision to Diff 129639. aprantl added a comment. Uploaded a mildly better version that is NFC on MSVC. https://reviews.llvm.org/D41962 Files: packages/Python/lldbsuite/test/functionalities/register/intel_avx/TestYMMRegister.py packages/Python/lldbsuite/test/functional

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Craig Topper via Phabricator via lldb-commits
craig.topper added a comment. __builtin_cpu_init was added to clang between 5.0 and 6.0 https://reviews.llvm.org/D41962 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. In https://reviews.llvm.org/D41962#974656, @jasonmolenda wrote: > I suppose a possible alternative would be to figure out the avx2 / avx512 > features manually based on the cpuid instead of letting the compiler do it > for us. e.g. > https://stackoverflow.com/question

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. I suppose a possible alternative would be to figure out the avx2 / avx512 features manually based on the cpuid instead of letting the compiler do it for us. e.g. https://stackoverflow.com/questions/1666093/cpuid-implementations-in-c and then checking the bits as

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. fwiw I'm working on upstreaming on zmm (avx512) patches that we have locally (there's one testsuite fail I still need to find time to fix) and the TestZMMRegister.py test that ChrisB wrote to test this is written as skip-unless-darwin, and there's a new skipUnlessF

[Lldb-commits] [PATCH] D41962: Fix TestYMMRegisters for older machines without AVX2

2018-01-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D41962#973827, @craig.topper wrote: > I don't know what platforms this needs to support. But __builtin_cpu_support > only works when compiled with clang or gcc. And it requires compiler-rt or > libgcc. I don't know if that's guaranteed to exis