Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. I am not saying we have to do the printf changes, I was just seeing what you think. I would like to see the StringRef variants of functions put in as part of this. https://reviews.llvm.org/D24847 ___ lldb-commits mailing

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. no printf fixes are fine. I don't mind if error cases have str().c_str() so much. https://reviews.llvm.org/D24847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. You can still leave the "const char *" versions in there for now until you get to the cleanup. No spiral if you do that. https://reviews.llvm.org/D24847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
Ok that's fine then On Thu, Sep 22, 2016 at 3:59 PM Greg Clayton wrote: > clayborg added a comment. > > You can still leave the "const char *" versions in there for now until you > get to the cleanup. No spiral if you do that. > > > https://reviews.llvm.org/D24847 > > > >

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. Yeah, don't do any calls that don't need to be converted. Just the ones you need. Should just add 2 StringRef variant functions. Don't feel the need to completely fix OptionValueString or OptionValueUInt64. We can do the full change over in a future CL. See if you can

[Lldb-commits] [lldb] r282207 - Add the ability to deserialize only breakpoints matching a given name.

2016-09-22 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Sep 22 17:20:28 2016 New Revision: 282207 URL: http://llvm.org/viewvc/llvm-project?rev=282207=rev Log: Add the ability to deserialize only breakpoints matching a given name. Also tests for this and the ThreadSpec serialization. Modified:

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
OptionValueString is actually the next item on my list. I tried it before this and it was a very big CL, But maybe with this done it will be smaller. I can try again but if the cl grows too large i think it's better to do it in a followup. If nothing else so that if a buildbot fails it's easier

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
I took a quick glance, now I remember. It uses a validator, so the validator has to either update its signature or make a copy. It's also called by SetValueFromCString, so that has to be updated or make a copy. Then it spirals out from there. So yea, the copy is still going to be there, just in a

Re: [Lldb-commits] [PATCH] D24850: add hook for calling platform-dependent pre-kill action on a timed out test

2016-09-22 Thread Todd Fiala via lldb-commits
tfiala added inline comments. Comment at: packages/Python/lldbsuite/test/dosep.py:238-245 @@ +237,10 @@ +# runner for our platform. +module_name = "lldbsuite.pre_kill_hook." + platform.system().lower() +try: +import importlib +

Re: [Lldb-commits] [PATCH] D24853: Fix windows build.It does not like mixed 'enum' and 'enum class'.

2016-09-22 Thread Andrew Ford via lldb-commits
andrewford added a comment. BTW, I don't have commit access, would appreciate if someone could submit for me assuming this is acceptable :) https://reviews.llvm.org/D24853 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

Re: [Lldb-commits] [PATCH] D21032: Eliminate differences in lldbinline-generated Makefiles and ensure they're regenerated every time

2016-09-22 Thread Eugene Zelenko via lldb-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Appear to be reverted in r272062. Repository: rL LLVM https://reviews.llvm.org/D21032 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
zturner created this revision. zturner added a reviewer: clayborg. zturner added a subscriber: lldb-commits. As before, some copies are removed, a few are introduced. When I get to Option::SetValue, those that are introduced should go away. https://reviews.llvm.org/D24847 Files:

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
I'll try the 2 additional string ref changes first and see how bad it is On Thu, Sep 22, 2016 at 3:36 PM Zachary Turner wrote: > OptionValueString is actually the next item on my list. I tried it before > this and it was a very big CL, But maybe with this done it will be

[Lldb-commits] [lldb] r282212 - Add the ability to append breakpoints to the save file.

2016-09-22 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Sep 22 18:42:42 2016 New Revision: 282212 URL: http://llvm.org/viewvc/llvm-project?rev=282212=rev Log: Add the ability to append breakpoints to the save file. Modified: lldb/trunk/include/lldb/API/SBTarget.h lldb/trunk/include/lldb/Target/Target.h

Re: [Lldb-commits] [PATCH] D24846: [CMake] Generate LLDB_REVISION at build time

2016-09-22 Thread Zachary Turner via lldb-commits
zturner added a comment. Should this be sunk into a common llvm function instead of copying from clang? I don't have a strong opinion, but are you one of the main CMake maintainers in LLVM, so whatever you think is best. https://reviews.llvm.org/D24846

[Lldb-commits] [lldb] r282205 - Serilize the thread options within the breakpoint options.

2016-09-22 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Sep 22 17:00:59 2016 New Revision: 282205 URL: http://llvm.org/viewvc/llvm-project?rev=282205=rev Log: Serilize the thread options within the breakpoint options. Modified: lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We could avoid many of the copies in the printf statements by by doing something like this in a common header file: #define LLVM_STRINGREF_PRINTF_FORMAT "%*s" #define

Re: [Lldb-commits] [PATCH] D24850: add hook for calling platform-dependent pre-kill action on a timed out test

2016-09-22 Thread Todd Fiala via lldb-commits
tfiala added a comment. Greg also had the idea of having a fallback mechanism that uses a newly-spun-up lldb to attach to the to-be-killed process, and retrieves the threads and backdtraces, to dump out a compact description. That's nice in that it should work on any host that has a working

[Lldb-commits] [PATCH] D24853: Fix windows build.It does not like mixed 'enum' and 'enum class'.

2016-09-22 Thread Andrew Ford via lldb-commits
andrewford created this revision. andrewford added a reviewer: jingham. andrewford added a subscriber: lldb-commits. Change-Id: I611460cf4df58073bda64e16847e5358c3361aa7 https://reviews.llvm.org/D24853 Files: include/lldb/Breakpoint/BreakpointOptions.h Index:

[Lldb-commits] [PATCH] D24846: [CMake] Generate LLDB_REVISION at build time

2016-09-22 Thread Chris Bieneman via lldb-commits
beanz created this revision. beanz added reviewers: tfiala, zturner. beanz added a subscriber: lldb-commits. Herald added subscribers: mgorny, beanz. This alters the generation of LLDB_REVISION to be heavily based on how clang generates its version header. There are two benefits of this aproach.

[Lldb-commits] [PATCH] D24850: add hook for calling platform-dependent pre-kill action on a timed out test

2016-09-22 Thread Todd Fiala via lldb-commits
tfiala created this revision. tfiala added reviewers: clayborg, labath. tfiala added a subscriber: lldb-commits. This change introduces the concept of a platform-specific, pre-kill-hook mechanism. If a platform defines the hook, then the hook gets called right after a timeout is detected in a

Re: [Lldb-commits] [PATCH] D24846: [CMake] Generate LLDB_REVISION at build time

2016-09-22 Thread Zachary Turner via lldb-commits
If it's non trivial then then can go in first, that's fine. I'm ooo for the rest of the day, so let me test it out on Windows first On Thu, Sep 22, 2016 at 4:36 PM Chris Bieneman wrote: > beanz added a comment. > > Putting this in LLVM would be ideal, but I think doing that

Re: [Lldb-commits] [PATCH] D24846: [CMake] Generate LLDB_REVISION at build time

2016-09-22 Thread Chris Bieneman via lldb-commits
beanz added a comment. Putting this in LLVM would be ideal, but I think doing that requires a larger refactoring of how LLVM and Clang handle SCM versions. I was kinda hoping to land this and fix the lldb support, but if you'd prefer I can shelve this until after fixing LLVM & Clang.

Re: [Lldb-commits] [PATCH] D21152: Hunt for unused memory properly when dealing with processes that can tell us about memory mappings

2016-09-22 Thread Eugene Zelenko via lldb-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko added a comment. Looks like patch was part of r272301. Repository: rL LLVM https://reviews.llvm.org/D21152 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

Re: [Lldb-commits] [PATCH] D24853: Fix windows build.It does not like mixed 'enum' and 'enum class'.

2016-09-22 Thread Zachary Turner via lldb-commits
Fixed in r282226, thanks for the tip. On Thu, Sep 22, 2016 at 5:15 PM Andrew Ford via lldb-commits < lldb-commits@lists.llvm.org> wrote: > andrewford added a comment. > > BTW, I don't have commit access, would appreciate if someone could submit > for me assuming this is acceptable :) > > >

[Lldb-commits] [lldb] r282226 - Fix windows build caused by mixing enum and enum class.

2016-09-22 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Sep 22 21:54:26 2016 New Revision: 282226 URL: http://llvm.org/viewvc/llvm-project?rev=282226=rev Log: Fix windows build caused by mixing enum and enum class. Modified: lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h

Re: [Lldb-commits] [PATCH] D24846: [CMake] Generate LLDB_REVISION at build time

2016-09-22 Thread Todd Fiala via lldb-commits
tfiala accepted this revision. tfiala added a comment. This revision is now accepted and ready to land. Looks good. I think it's fine landing here for now based on your earlier comments about the refactoring effort to get it into LLVM/clang. I do think it's worth trying to sink it lower when

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 72234. zturner added a comment. Updated the two requested functions. I still had to make a few more changes to catch the implicit conversions into each of these functions, but it wasn't too bad. https://reviews.llvm.org/D24847 Files:

[Lldb-commits] [lldb] r282195 - Try to fix build errors on Android.

2016-09-22 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Sep 22 16:06:13 2016 New Revision: 282195 URL: http://llvm.org/viewvc/llvm-project?rev=282195=rev Log: Try to fix build errors on Android. It doesn't like the implicit conversion from T[] to ArrayRef so I'm using `llvm::makeArrayRef()`. Hopefully I got everything.

[Lldb-commits] [lldb] r282196 - [CMake] Fixing a small hack in add_lldb_library

2016-09-22 Thread Chris Bieneman via lldb-commits
Author: cbieneman Date: Thu Sep 22 16:08:27 2016 New Revision: 282196 URL: http://llvm.org/viewvc/llvm-project?rev=282196=rev Log: [CMake] Fixing a small hack in add_lldb_library This code was adding an explicit dependency on libclang because lldb needs clang headers, changing this to instead

Re: [Lldb-commits] [lldb] r282196 - [CMake] Fixing a small hack in add_lldb_library

2016-09-22 Thread Zachary Turner via lldb-commits
At the end of the day though, lldb DOES need to link against libclang. Is it still doing this? On Thu, Sep 22, 2016 at 2:17 PM Chris Bieneman via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: cbieneman > Date: Thu Sep 22 16:08:27 2016 > New Revision: 282196 > > URL:

Re: [Lldb-commits] [lldb] r282196 - [CMake] Fixing a small hack in add_lldb_library

2016-09-22 Thread Zachary Turner via lldb-commits
Ok, cool! On Thu, Sep 22, 2016 at 2:23 PM Chris Bieneman wrote: > Calls to add_dependencies don’t setup linkage, they just setup build > order, so changing this has no impact on what is linked or how. > > -Chris > > On Sep 22, 2016, at 2:21 PM, Zachary Turner

Re: [Lldb-commits] [lldb] r282196 - [CMake] Fixing a small hack in add_lldb_library

2016-09-22 Thread Chris Bieneman via lldb-commits
Calls to add_dependencies don’t setup linkage, they just setup build order, so changing this has no impact on what is linked or how. -Chris > On Sep 22, 2016, at 2:21 PM, Zachary Turner wrote: > > At the end of the day though, lldb DOES need to link against libclang. Is

Re: [Lldb-commits] [lldb] r282196 - [CMake] Fixing a small hack in add_lldb_library

2016-09-22 Thread Chris Bieneman via lldb-commits
Also of note. This implementation is “standalone” safe. If LLDB is being built without clang (against a pre-installed clang) CLANG_TABLEGEN_TARGETS will not be set, so no dependency will be setup. That same concern came up in a similar patch I submitted to Swift. -Chris > On Sep 22, 2016, at

[Lldb-commits] [lldb] r282179 - Actually, do it this way because I will want to know if I am in a host build elsewhere too

2016-09-22 Thread Enrico Granata via lldb-commits
Author: enrico Date: Thu Sep 22 12:59:58 2016 New Revision: 282179 URL: http://llvm.org/viewvc/llvm-project?rev=282179=rev Log: Actually, do it this way because I will want to know if I am in a host build elsewhere too Modified: lldb/trunk/scripts/Xcode/lldbbuild.py Modified:

[Lldb-commits] [lldb] r282178 - The host version of lldb always builds for macosx

2016-09-22 Thread Enrico Granata via lldb-commits
Author: enrico Date: Thu Sep 22 12:47:33 2016 New Revision: 282178 URL: http://llvm.org/viewvc/llvm-project?rev=282178=rev Log: The host version of lldb always builds for macosx Modified: lldb/trunk/scripts/Xcode/lldbbuild.py Modified: lldb/trunk/scripts/Xcode/lldbbuild.py URL:

Re: [Lldb-commits] [lldb] r282079 - Make lldb::Regex use StringRef.

2016-09-22 Thread Pavel Labath via lldb-commits
On 22 September 2016 at 01:00, Greg Clayton via lldb-commits wrote: > If you use a StringRef in printf, please use "%*s" and then put the count and > data pointer into the printf, so the above line would become: > > + s->Printf("source regex = \"%*s\", exact_match =

Re: [Lldb-commits] [lldb] r282079 - Make lldb::Regex use StringRef.

2016-09-22 Thread Zachary Turner via lldb-commits
+1. One of the points I outlined on my list was to use llvm streams. So that also solves the problem On Thu, Sep 22, 2016 at 4:54 AM Pavel Labath wrote: > On 22 September 2016 at 01:00, Greg Clayton via lldb-commits > wrote: > > If you use a

Re: [Lldb-commits] [PATCH] D24610: LLDB Arm Watchpoints: Use single hardware watchpoint slot to watch multiple bytes where possible

2016-09-22 Thread Pavel Labath via lldb-commits
labath accepted this revision. Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp:513-521 @@ -513,1 +512,11 @@ + + // Find out how many bytes we need to watch after 4-byte alignment boundary. + uint8_t watch_size = (addr & 0x03) + size; + + // We

[Lldb-commits] [lldb] r282171 - added environment variable-related Args gtests

2016-09-22 Thread Todd Fiala via lldb-commits
Author: tfiala Date: Thu Sep 22 11:00:01 2016 New Revision: 282171 URL: http://llvm.org/viewvc/llvm-project?rev=282171=rev Log: added environment variable-related Args gtests Also fixed up a couple misbehaving functions. It is perfectly legal to have env vars with no values (i.e. the '=' and

Re: [Lldb-commits] [lldb] r282171 - added environment variable-related Args gtests

2016-09-22 Thread Zachary Turner via lldb-commits
Thanks for the test. Is there any practical difference between "ARGS=" and "ARGS"? On Thu, Sep 22, 2016 at 9:08 AM Todd Fiala via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: tfiala > Date: Thu Sep 22 11:00:01 2016 > New Revision: 282171 > > URL:

[Lldb-commits] [lldb] r282167 - Fix TestBreakpointSerialization on windows

2016-09-22 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Sep 22 10:26:43 2016 New Revision: 282167 URL: http://llvm.org/viewvc/llvm-project?rev=282167=rev Log: Fix TestBreakpointSerialization on windows The test exposed a bug in the StructuredData Serialization code, which did not escape the backslash properly. This manifested

Re: [Lldb-commits] [lldb] r282171 - added environment variable-related Args gtests

2016-09-22 Thread Zachary Turner via lldb-commits
yea I mostly just wanted to know if we needed to specificlaly distinguish between ARG=\0 and ARG\0. Because if so the second parameter would need to be Optional since StringRef has no way to differentiate between "I don't refer to anything" versus "I refer to the empty string". (Technically it

Re: [Lldb-commits] [lldb] r282171 - added environment variable-related Args gtests

2016-09-22 Thread Todd Fiala via lldb-commits
Okay. Yeah I don't see us needing to support the equal with trailing nothing. -Todd > On Sep 22, 2016, at 9:23 AM, Zachary Turner wrote: > > yea I mostly just wanted to know if we needed to specificlaly distinguish > between ARG=\0 and ARG\0. Because if so the second

Re: [Lldb-commits] [lldb] r282171 - added environment variable-related Args gtests

2016-09-22 Thread Todd Fiala via lldb-commits
Primarily because we pass them verbatim to posix_spawn and other launchers, and there it is legitimate to not have an equal with trailing nothingness. On the Xcode side, we use a ton of environment variables. As to whether there is a difference between ARG1=\0 and ARG1\0, I'm not sure. On Thu,

[Lldb-commits] [lldb] r282172 - fix DarwinLog no-info/no-debug case

2016-09-22 Thread Todd Fiala via lldb-commits
Author: tfiala Date: Thu Sep 22 11:29:48 2016 New Revision: 282172 URL: http://llvm.org/viewvc/llvm-project?rev=282172=rev Log: fix DarwinLog no-info/no-debug case This started failing recently: TestDarwinLogSourceDebug.py It looks like the behavior of specifying the OS_ACTIVITY_MODE env var

[Lldb-commits] [PATCH] D24794: Use Clang for D language support until there is a proper language plugin for it.

2016-09-22 Thread Johan Engelen via lldb-commits
johanengelen created this revision. johanengelen added a reviewer: LLDB. johanengelen added a subscriber: lldb-commits. Binaries with Dwarf language set to "DW_LANG_D" currently do not show much information in LLDB (e.g. no local variables). With this simple change, Clang language support is