[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-22 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: packages/Python/lldbsuite/test/tools/lldb-server/main.cpp:74 + printf("%" PRIx64, static_cast(syscall(__NR_gettid))); #else + printf("{no-tid-support}"); Note to self - ``` #elif defined(__NetBSD__) printf("%" PR

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. clang-format did not pick up the correct formatting because we have a `.clang-format` file in `packages/Python/lldbsuite`. This was necessary because a lot of the tests would get broken, as the formatting would break our `// place breakpoint here` annotations (also, step

[Lldb-commits] [PATCH] D30172: Replace WINLOG_*** macros with LLDB_LOG

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D30172#682789, @amccarth wrote: > Maybe we have too many categories. Thanks. I was thinking about that as well. Currently there is about 110 log statements in the windows log and 8 log categories. Things wouldn't get too noisy even if we sh

[Lldb-commits] [lldb] r295822 - Replace WINLOG_*** macros with LLDB_LOG

2017-02-22 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Feb 22 04:38:02 2017 New Revision: 295822 URL: http://llvm.org/viewvc/llvm-project?rev=295822&view=rev Log: Replace WINLOG_*** macros with LLDB_LOG Summary: The main difference here is that in the WINLOG macros you can specify log categories per call, whereas here you hav

[Lldb-commits] [lldb] r295821 - Add format_provider for the MemoryRegionInfo::OptionalBool enum

2017-02-22 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Feb 22 04:37:57 2017 New Revision: 295821 URL: http://llvm.org/viewvc/llvm-project?rev=295821&view=rev Log: Add format_provider for the MemoryRegionInfo::OptionalBool enum Added: lldb/trunk/unittests/Target/MemoryRegionInfoTest.cpp Modified: lldb/trunk/include/lld

[Lldb-commits] [PATCH] D30172: Replace WINLOG_*** macros with LLDB_LOG

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL295822: Replace WINLOG_*** macros with LLDB_LOG (authored by labath). Changed prior to commit: https://reviews.llvm.org/D30172?vs=89130&id=89342#toc Repository: rL LLVM https://reviews.llvm.org/D301

[Lldb-commits] [PATCH] D30249: Clear expression when breakpoint location becomes unresolved

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. The compiled expression is not needed once the location goes away. Also, it holds a reference to the module, which prevents cleanup of the module if somebody holds a reference to the breakpoint object. This fixes the StepOverBreakpoint test on windows, but I am unsur

[Lldb-commits] [lldb] r295823 - Switch "lldb" log channel to the new registration mechanism

2017-02-22 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Feb 22 05:51:12 2017 New Revision: 295823 URL: http://llvm.org/viewvc/llvm-project?rev=295823&view=rev Log: Switch "lldb" log channel to the new registration mechanism Modified: lldb/trunk/include/lldb/Core/Log.h lldb/trunk/include/lldb/Core/Logging.h lldb/tru

[Lldb-commits] [PATCH] D30250: Switch "posix" to the new log channel registration mechanism

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. This also removes magic rename code, which caused the channel to be called "linux" when built on a linux machine, and "freebsd" when built on a freebsd one, which seems unnecessary - registering a new channel is sufficiently simple now that if we wish to log something

[Lldb-commits] [PATCH] D30251: Map ELF files as writable so we can update the relocations in them

2017-02-22 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer created this revision. Map ELF files as writable so we can update the relocations in them After this change ELF files will be mapped as private writable pages so we can cheaply update the relocations inside them without have to read them into memory and any modification we do in the m

[Lldb-commits] [PATCH] D30251: Map ELF files as writable so we can update the relocations in them

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a reviewer: zturner. labath added a comment. Adding Zachary as he was about to remove this code. The timing of this patch is a bit unfortunate, as it would complicate the removal of the code in question. If I am not mistaken, llvm's version currently does not support copy-on-write

[Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think you are still waiting to get the llvm changes sorted out, but this side of it looks fine to me (modulo a couple of nits). Comment at: lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:414 + +data_sp = std::make_shared(std::move(*Buffer));

Re: [Lldb-commits] [PATCH] D30251: Map ELF files as writable so we can update the relocations in them

2017-02-22 Thread Zachary Turner via lldb-commits
Yea if this isn't urgent, can we wait for my other changes to go in? Llvm does support mapping writable, but not through the same interface. So it should still work On Wed, Feb 22, 2017 at 6:43 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a reviewer: zturner.

Re: [Lldb-commits] [PATCH] D30251: Map ELF files as writable so we can update the relocations in them

2017-02-22 Thread Tamas Berghammer via lldb-commits
Sure, it isn't urgent at all. I created this as a resolution for the crash reported by Ramana ( http://lists.llvm.org/pipermail/lldb-dev/2017-February/012001.html) but I don't fully understand the use case he/she is working on when wanting to open a ".o" file yet (but I still wanted to get rid of a

Re: [Lldb-commits] [PATCH] D30249: Clear expression when breakpoint location becomes unresolved

2017-02-22 Thread Jim Ingham via lldb-commits
Note that the breakpoint location's site gets cleared when you disable the breakpoint or its location, as well as when you delete it. So if you have a workflow that does: "hit a breakpoint, disable it, hit another, reenable the first, hit the second" you'll end up re-evaluating the condition ex

[Lldb-commits] [PATCH] D30255: Ensure lldb-server waits for child debug servers to start up when passing them a port number to listen on.

2017-02-22 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D30255 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[Lldb-commits] [PATCH] D30250: Switch "posix" to the new log channel registration mechanism

2017-02-22 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski accepted this revision. krytarowski added a comment. This revision is now accepted and ready to land. I had locally code registering NetBSD specific log channel and this patch is removing this needless code. Thank you for this work! https://reviews.llvm.org/D30250 ___

[Lldb-commits] [PATCH] D30234: Reformat inferior's main.cpp in lldb-server test

2017-02-22 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 89404. eugene added a comment. I have added local .clang-format file. But it didn't change the way main.cpp was formated. https://reviews.llvm.org/D30234 Files: packages/Python/lldbsuite/test/tools/lldb-server/.clang-format packages/Python/lldbsuite/tes

[Lldb-commits] [PATCH] D30249: Clear expression when breakpoint location becomes unresolved

2017-02-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. > Note that the breakpoint location's site gets cleared when you disable the > breakpoint or its location, as well as when you delete it. So if you have a > workflow that does: "hit a breakpoint, disable it, hit another, reenable the > first, hit the second" you'll end

[Lldb-commits] [lldb] r295881 - Fix header documentation.

2017-02-22 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 22 15:32:16 2017 New Revision: 295881 URL: http://llvm.org/viewvc/llvm-project?rev=295881&view=rev Log: Fix header documentation. Modified: lldb/trunk/include/lldb/API/SBTarget.h Modified: lldb/trunk/include/lldb/API/SBTarget.h URL: http://llvm.org/viewvc/llvm

[Lldb-commits] [lldb] r295882 - Fix header documentation.

2017-02-22 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 22 15:32:48 2017 New Revision: 295882 URL: http://llvm.org/viewvc/llvm-project?rev=295882&view=rev Log: Fix header documentation. Modified: lldb/trunk/include/lldb/API/SBAttachInfo.h Modified: lldb/trunk/include/lldb/API/SBAttachInfo.h URL: http://llvm.org/vie

[Lldb-commits] [PATCH] D30272: Improve data formatter for libstdcpp unique_ptr

2017-02-22 Thread Tamas Berghammer via Phabricator via lldb-commits
tberghammer created this revision. Improve data formatter for libstdcpp unique_ptr - Fix infinite loop when there is a reference loop created from smart pointers - Respect pointer depth argument in frame variable command - Support dereferencing unique_ptr in the frame variable command - Support o

Re: [Lldb-commits] [PATCH] D30249: Clear expression when breakpoint location becomes unresolved

2017-02-22 Thread Jim Ingham via lldb-commits
In some classes we have a Clear method that we use to release resources from an object when we are done with it but it might not get destroyed right away. I pretty sure Greg thought that you would be adding your change to such a method; and in fact it would be fine to add a Clear method to Brea

[Lldb-commits] [lldb] r295897 - Changed builld-llvm.py to use .json files

2017-02-22 Thread Sean Callanan via lldb-commits
Author: spyffe Date: Wed Feb 22 16:57:59 2017 New Revision: 295897 URL: http://llvm.org/viewvc/llvm-project?rev=295897&view=rev Log: Changed builld-llvm.py to use .json files LLDB has many branches in a variety of repositories. The build-script.py file is subtly different for each set. This is un

[Lldb-commits] [lldb] r295907 - Fixed errors in AllocatedBlock:

2017-02-22 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 22 17:42:55 2017 New Revision: 295907 URL: http://llvm.org/viewvc/llvm-project?rev=295907&view=rev Log: Fixed errors in AllocatedBlock: - Allow zero byte size request for memory and ensure it gets a unique address - Exit the free block loop when we find an appropriat

[Lldb-commits] [PATCH] D30272: Improve data formatter for libstdcpp unique_ptr

2017-02-22 Thread Jim Ingham via Phabricator via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. It seems a little wrong to me to hook "IsPointerLikeObject" up to the ValueObject, and not to the Synthetic Child Provider for the type. After all, you are using the Synthetic Chi

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

2017-02-22 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek added a comment. @jingham 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] D30007: [lldb] Provide API to know which sanitizer generated an eStopReasonInstrumentation

2017-02-22 Thread Jim Ingham via Phabricator via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. Aargh, sorry. My queue is overflowing... I had one tiny comment about the tests. If you do that, then it will be fine to go in. Comment at: packages/Python/l

Re: [Lldb-commits] [lldb] r295897 - Changed builld-llvm.py to use .json files

2017-02-22 Thread Tim Hammerquist via lldb-commits
Hi Sean, Looks like this is breaking builds in Green Dragon (and locally for me from master branch). Can you take a look at the failures here? http://lab.llvm.org:8080/green/view/LLDB/job/lldb_build_test/26076/console Thanks! -Tim On Wed, Feb 22, 2017 at 2:57 PM, Sean Callanan via lldb-commits

Re: [Lldb-commits] [lldb] r295897 - Changed builld-llvm.py to use .json files

2017-02-22 Thread Sean Callanan via lldb-commits
I'll roll it back pending some fixes on my end. Sorry for the break. Sean > On Feb 22, 2017, at 4:40 PM, Tim Hammerquist wrote: > > Hi Sean, > > Looks like this is breaking builds in Green Dragon (and locally for me from > master branch). Can you take a look at the failures here? > > http://

[Lldb-commits] [lldb] r295915 - Reverted 295897 pending refinements and fixes for green-dragon.

2017-02-22 Thread Sean Callanan via lldb-commits
Author: spyffe Date: Wed Feb 22 18:46:30 2017 New Revision: 295915 URL: http://llvm.org/viewvc/llvm-project?rev=295915&view=rev Log: Reverted 295897 pending refinements and fixes for green-dragon. Removed: lldb/trunk/scripts/Xcode/repo.py lldb/trunk/scripts/Xcode/repos/ Modified: lldb

[Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-22 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 89453. zturner added a comment. Updated with suggestions from labath@ https://reviews.llvm.org/D30054 Files: lldb/include/lldb/Core/DataBufferHeap.h lldb/include/lldb/Core/DataBufferLLVM.h lldb/include/lldb/Core/DataBufferMemoryMap.h lldb/include/ll

[Lldb-commits] [lldb] r295922 - Changed builld-llvm.py to use .json files

2017-02-22 Thread Sean Callanan via lldb-commits
Author: spyffe Date: Wed Feb 22 20:21:34 2017 New Revision: 295922 URL: http://llvm.org/viewvc/llvm-project?rev=295922&view=rev Log: Changed builld-llvm.py to use .json files LLDB has many branches in a variety of repositories. The build-script.py file is subtly different for each set. This is un

Re: [Lldb-commits] [lldb] r295897 - Changed builld-llvm.py to use .json files

2017-02-22 Thread Sean Callanan via lldb-commits
I've recommitted with a bunch of fixes: SendingINSTALL.txt Sendingscripts/Xcode/build-llvm.py Adding scripts/Xcode/repo.py Adding scripts/Xcode/repos Adding scripts/Xcode/repos/FALLBACK Adding scripts/Xcode/repos/svn-trunk.json Transmitting file data

[Lldb-commits] [PATCH] D29669: Hardware breakpoints implementation for Arm/AArch64 targets

2017-02-22 Thread Muhammad Omair Javaid via Phabricator via lldb-commits
omjavaid added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py:78 + +while count < 4 : + labath wrote: > This is quite

[Lldb-commits] [PATCH] D30286: Implement QPassSignals GDB package in lldb-server

2017-02-22 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added a project: LLDB. Herald added a subscriber: emaste. https://reviews.llvm.org/D30286 Files: include/lldb/Host/common/NativeProcessProtocol.h packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py packages/Python/lldbsuite/test/tools/