[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-03 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Over the weekend I dug into this further. It looks like the environment I found this bug in didn't have C++11 support and was using `std::string::length()`, which tries to perform a memory read where it's not supposed to, resulting in a segfault. On my friend's Ubuntu s

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Leslie Zhai via Phabricator via lldb-commits
xiangzhai created this revision. Hi LLVM developers, Resurrect pselect MainLoop implementation https://reviews.llvm.org/D32600 commited by Pavel, then it failed to build for Linux: /data/project/LLVM/llvm/tools/lldb/source/Host/common/MainLoop.cpp:158:10: error: no viable conversion from ret

[Lldb-commits] [PATCH] D32732: "target variable" not showing all global variable if we print any global variable before execution starts

2017-05-03 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 97569. vbalu added a comment. Herald added a subscriber: srhines. Added the test case. Repository: rL LLVM https://reviews.llvm.org/D32732 Files: packages/Python/lldbsuite/test/functionalities/target_command/TestTargetCommand.py packages/Python/lldbsu

Re: [Lldb-commits] [PATCH] Fix Ubuntu build break with gcc 5.4

2017-05-03 Thread Pavel Labath via lldb-commits
This doesn't make things any worse, but a better solution would be to figure out why cmake has not detected ppoll(2) support, as lldb on linux is useless without the signal polling stuff. If your system does have ppoll, but we're not detecting it, we will have to fix detection code. On the off chan

Re: [Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-03 Thread Pavel Labath via lldb-commits
On 3 May 2017 at 07:41, vignesh balu wrote: > you mean like this "exe = os.path.join('./newdir/','proc_attach')". I can't probably something like: os.path.join('.', 'newdir', 'proc_attach') ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. It's definitely still a bug worth fixing, we cannot rely on undefined behavior like that. Thank you very much for adding the test case. Looking at the test suite again, I think I've found a better place for the test. Could you put the test in test/testcases/expression_c

Re: [Lldb-commits] [PATCH] Fix Ubuntu build break with gcc 5.4

2017-05-03 Thread Pavel Labath via lldb-commits
It seems xiangzhai has already "cranked up a review" :) (D32787), so moving the discussion there. On 3 May 2017 at 09:57, Pavel Labath wrote: > This doesn't make things any worse, but a better solution would be to > figure out why cmake has not detected ppoll(2) support, as lldb on > linux is use

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath requested changes to this revision. labath added a subscriber: probinson. labath added a comment. This revision now requires changes to proceed. This will not compile on windows, which really is the only branch we expected to have `SIGNAL_POLLING_UNSUPPORTED` set. In this sense Pauls (cc'e

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-03 Thread vignesh balu via Phabricator via lldb-commits
vbalu updated this revision to Diff 97575. vbalu marked an inline comment as done. vbalu added a comment. modified exe path computation Repository: rL LLVM https://reviews.llvm.org/D32522 Files: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py Index: p

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Leslie Zhai via Phabricator via lldb-commits
xiangzhai added a comment. Hi Pavel, > Could one of you guys check whether you really don't have the ppoll syscall > (for example, are able to compile a simple program using ppoll (*)) It has! clang is able to compile the simple program! > If you do, then I may need a bit more help to debug th

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#744379, @xiangzhai wrote: > Hi Pavel, > > > Could one of you guys check whether you really don't have the ppoll syscall > > (for example, are able to compile a simple program using ppoll (*)) > > It has! clang is able to compile the simp

[Lldb-commits] [lldb] r302008 - Check for lack of C++ context first when demangling

2017-05-03 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed May 3 05:00:00 2017 New Revision: 302008 URL: http://llvm.org/viewvc/llvm-project?rev=302008&view=rev Log: Check for lack of C++ context first when demangling Summary: It seems that if we have no context, then it can't possibly be a method. Check that first. Reviewers

[Lldb-commits] [PATCH] D32757: Add TaskMap for iterating a function over a set of integers

2017-05-03 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer added a comment. Personally I never really liked TaskRunner (even though I was the one implemented it) because I think it adds a lot of extra complexity for fairly little gain and thinking about it a bit more I think in most use case a more targeted solution at the call site will pr

[Lldb-commits] [lldb] r302013 - Windows fix for TestConflictingDefinition makefile

2017-05-03 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed May 3 06:27:35 2017 New Revision: 302013 URL: http://llvm.org/viewvc/llvm-project?rev=302013&view=rev Log: Windows fix for TestConflictingDefinition makefile gnuwin32 rm does not like wildcards that match nothing even if we specify -f (probably because the wildcard expan

[Lldb-commits] [PATCH] D32757: Add TaskMap for iterating a function over a set of integers

2017-05-03 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. -glldb doesn't emit the Apple accelerator tables IIRC. We don't need to change the DWARF, but just add the Apple accelerator tables by modifying clang to emit them. They will be just fine with DWO as each DWO file would have a set of th

[Lldb-commits] [lldb] r302027 - Don't attempt to use mpx registers on unsupported platforms

2017-05-03 Thread Francis Ricci via lldb-commits
Author: fjricci Date: Wed May 3 10:00:04 2017 New Revision: 302027 URL: http://llvm.org/viewvc/llvm-project?rev=302027&view=rev Log: Don't attempt to use mpx registers on unsupported platforms Summary: The existing cpp-level checks using PR_MPX_ENABLE_MANAGEMENT aren't sufficient, as this isn't

[Lldb-commits] [PATCH] D32719: Don't attempt to use mpx registers on unsupported platforms

2017-05-03 Thread Francis Ricci via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302027: Don't attempt to use mpx registers on unsupported platforms (authored by fjricci). Changed prior to commit: https://reviews.llvm.org/D32719?vs=97447&id=97648#toc Repository: rL LLVM https://

[Lldb-commits] [PATCH] D30007: [lldb] Provide API to know which sanitizer generated an eStopReasonInstrumentation

2017-05-03 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek added a comment. This revision now requires changes to proceed. ping https://reviews.llvm.org/D30007 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32813: ABISysV_arm64: compute return value for large vectors correctly

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added subscribers: srhines, rengolin, aemerson. Arm64 Procedure Call Standard specifies than only vectors up to 16 bytes are stored in v0 (which makes sense, as that's the size of the register). 32-byte vector types are passed as regular structs via x8 pointer.

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Paul Robinson via Phabricator via lldb-commits
probinson added a comment. Looking at CMakeError.log, the test program does `#include ` but does not `#define _GNU_SOURCE`. The define has to be there for your example to compile on my Ubuntu. Repository: rL LLVM https://reviews.llvm.org/D32787 __

[Lldb-commits] [PATCH] D30007: [lldb] Provide API to know which sanitizer generated an eStopReasonInstrumentation

2017-05-03 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks fine to me, make sure Jim is happy as well. https://reviews.llvm.org/D30007 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lld

[Lldb-commits] [PATCH] D32732: "target variable" not showing all global variable if we print any global variable before execution starts

2017-05-03 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a reviewer: jingham. jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. I actually think the behavior you are seeing is the designed behavior, but it isn't clearly documented. Target variable is designed to help manag

[Lldb-commits] [PATCH] D30007: [lldb] Provide API to know which sanitizer generated an eStopReasonInstrumentation

2017-05-03 Thread Jim Ingham via Phabricator via lldb-commits
jingham accepted this revision. jingham added a comment. This revision is now accepted and ready to land. Sorry for the delay. That's fine. https://reviews.llvm.org/D30007 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith updated this revision to Diff 97695. scott.smith added a comment. update to use a private llvm::ThreadPool. I chose this over a 2nd global "TaskPool" because if the threads are going to be short lived, there isn't much point in having a global pool rather than a short-lived instanti

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#744974, @probinson wrote: > Looking at CMakeError.log, the test program does `#include ` but does > not `#define _GNU_SOURCE`. The define has to be there for your example to > compile on my Ubuntu. We do that in LLDBGenerateConfig.cm

[Lldb-commits] [PATCH] D32820: Parallelize demangling

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith created this revision. Use TaskMapOverInt to demangle the symbols in parallel. Defer categorization of C++ symbols until later, when it can be determined what contexts are definitely classes, and what might not be. Repository: rL LLVM https://reviews.llvm.org/D32820 Files: i

[Lldb-commits] [PATCH] D32820: Parallelize demangling

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith added a comment. This commit uses TaskMapOverInt from change https://reviews.llvm.org/D32757, which hasn't landed yet. Repository: rL LLVM https://reviews.llvm.org/D32820 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Paul Robinson via Phabricator via lldb-commits
probinson added a comment. In https://reviews.llvm.org/D32787#745099, @labath wrote: > Could it be that you just have stale cmake cache? That could easily be true. Rerunning cmake didn't fix it; short of deleting the entire build directory, is there a way to refresh the cache? Repository:

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Zachary Turner via Phabricator via lldb-commits
zturner requested changes to this revision. zturner added inline comments. This revision now requires changes to proceed. Comment at: source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp:530-560 + struct loader { +DYLDRendezvous::iterator I; +ModuleSP m; +

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp:530-560 + struct loader { +DYLDRendezvous::iterator I; +ModuleSP m; +std::shared_future f; + }; + std::vector loaders(num_to_load); + llvm::ThreadPool lo

[Lldb-commits] [PATCH] D32823: Remove an expensive lock from Timer

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith created this revision. The Timer destructor would grab a global mutex in order to update execution time. Add a class to define a category once, statically; the class adds itself to an atomic singly linked list, and thus subsequent updates only need to use an atomic rather than grab

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith added inline comments. Comment at: source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp:530-560 + struct loader { +DYLDRendezvous::iterator I; +ModuleSP m; +std::shared_future f; + }; + std::vector loaders(num_to_load); + llvm::ThreadPoo

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: source/Plugins/DynamicLoader/POSIX-DYLD/DynamicLoaderPOSIXDYLD.cpp:530-560 + struct loader { +DYLDRendezvous::iterator I; +ModuleSP m; +std::shared_future f; + }; + std::vector loaders(num_to_load); + llvm::ThreadPool lo

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#745139, @probinson wrote: > In https://reviews.llvm.org/D32787#745099, @labath wrote: > > > Could it be that you just have stale cmake cache? > > > That could easily be true. Rerunning cmake didn't fix it; short of deleting > the entire

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-03 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 97717. xiaobai added a comment. Moving test per @labath's suggestion https://reviews.llvm.org/D32421 Files: packages/Python/lldbsuite/test/expression_command/multiline/TestMultilineExpressions.py source/Host/common/Editline.cpp Index: source/Host/com

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-03 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. https://reviews.llvm.org/D32826 Repository: rL LLVM https://reviews.llvm.org/D32597 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Paul Robinson via Phabricator via lldb-commits
probinson added a comment. In https://reviews.llvm.org/D32787#745205, @labath wrote: > In https://reviews.llvm.org/D32787#745139, @probinson wrote: > > > In https://reviews.llvm.org/D32787#745099, @labath wrote: > > > > > Could it be that you just have stale cmake cache? > > > > > > That could ea

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith created this revision. Utilize atomics to update linked lists without requiring locks. Reduces the number of calls to compute the hash by not having to compute it once to determine the bucket and then again inside a separate hashtable implementation. Use xxhash for better performa

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith added a comment. Note, I don't expect you guys to want this as is, since the # of buckets can't grow, and thus for very large applications this will behave O(n) instead of O(1). Before I bother to convert this to 1M skip lists (instead of 1M singly linked lists), is this something

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Do you have performance numbers here? I am all for it if it improves performance. If this is faster than llvm::StringMap why not just fix it there? Seems like everyone could benefit if you fix it in LLVM? Repository: rL LLVM https://reviews.llvm.org/D32832 _

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Sorry missed your first note about perf. This has to be able to handle any number of strings efficiently and growing buckets is probably needed. How many buckets are you starting with here? The design probably shouldn't take up gobs of memory if it just has a few strin

Re: [Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Jim Ingham via lldb-commits
It isn't uncommon for folks to debug programs with all the debug information for the whole system available. In those cases, what looks to the user like a normal sized application is actually a very large one as far as lldb's global string pool is concerned. My experience is that whenever you

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-03 Thread Scott Smith via Phabricator via lldb-commits
scott.smith added a comment. In https://reviews.llvm.org/D32832#745361, @clayborg wrote: > Do you have performance numbers here? I am all for it if it improves > performance. If this is faster than llvm::StringMap why not just fix it > there? Seems like everyone could benefit if you fix it in L

[Lldb-commits] Buildbot numbers for the week of 04/16/2017 - 04/22/2017

2017-05-03 Thread Galina Kistanova via lldb-commits
Hello everyone, Below are some buildbot numbers for the week of 04/16/2017 - 04/22/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status from gre

[Lldb-commits] Buildbot numbers for the last week of 04/23/2017 - 04/29/2017

2017-05-03 Thread Galina Kistanova via lldb-commits
Hello everyone, Below are some buildbot numbers for the last week of 04/23/2017 - 04/29/2017. Please see the same data in attached csv files: The longest time each builder was red during the last week; "Status change ratio" by active builder (percent of builds that changed the builder status fro

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Leslie Zhai via Phabricator via lldb-commits
xiangzhai abandoned this revision. xiangzhai added a comment. > Opening the CMakeCache.txt, and deleting the HAVE_PPOLL line should > re-trigger the detection Fixed! Repository: rL LLVM https://reviews.llvm.org/D32787 ___ lldb-commits mailing l

[Lldb-commits] [PATCH] D32753: MainLoop: Add unit tests

2017-05-03 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene accepted this revision. eugene added inline comments. This revision is now accepted and ready to land. Comment at: source/Host/common/MainLoop.cpp:66 class MainLoop::RunImpl { public: Could you please add here a comment describing when kqueue/pselect/

[Lldb-commits] [PATCH] D32732: "target variable" not showing all global variable if we print any global variable before execution starts

2017-05-03 Thread vignesh balu via Phabricator via lldb-commits
vbalu added a comment. i am confused as I dont see it is similar way when i don't print global variable before strting inferior. For the c file "lldbsuite/test/functionalities/target_command/globals.c" i see "target variable" behaves differently as below. **Without printing global variable be