[Lldb-commits] [PATCH] D39010: lldb-server tests: Propagate environment variables (pr34192)

2017-10-20 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL316244: lldb-server tests: Propagate environment variables (pr34192) (authored by labath). Repository: rL LLVM https://reviews.llvm.org/D39010 Files: lldb/trunk/unittests/tools/lldb-server/tests/Tes

[Lldb-commits] [lldb] r316244 - lldb-server tests: Propagate environment variables (pr34192)

2017-10-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Oct 20 15:39:18 2017 New Revision: 316244 URL: http://llvm.org/viewvc/llvm-project?rev=316244&view=rev Log: lldb-server tests: Propagate environment variables (pr34192) Summary: Without this, the launching of the test inferior may fail if it depends on some component of t

[Lldb-commits] [PATCH] D38938: Logging: provide a way to safely disable logging in a forked process

2017-10-20 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 119710. labath added a comment. The previous fix had a problem where a more paraniod libc (e.g., android, but I suspect freebds would do that as well) would detect that the thread unlocking the mutex is not the same one as the one that locked, and refused to co

[Lldb-commits] [PATCH] D38897: Add specific ppc64le hardware watchpoint handler

2017-10-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp:284 + switch (watch_flags) { + case write_mode: +rw_mode = PPC_BREAKPOINT_TRIGGER_WRITE; anajuliapc wrote: > clayborg wrote: > > We should use t

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. Sorry for missing this back in August. I think it'd be clearer to import your python once in the startup, like -o "script import $module" \ Multiple imports are a no-op IIUC so it's harmless to re-import the module every time the breakpoint is hit (I'm guessing it

[Lldb-commits] [lldb] r316231 - Revert "Logging: Make sure logging machinery is in a consistent state after forking"

2017-10-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Oct 20 12:44:53 2017 New Revision: 316231 URL: http://llvm.org/viewvc/llvm-project?rev=316231&view=rev Log: Revert "Logging: Make sure logging machinery is in a consistent state after forking" The pthread_atfork trick breaks on android, because pthread_rwlock_unlock dete

[Lldb-commits] [PATCH] D38897: Add specific ppc64le hardware watchpoint handler

2017-10-20 Thread Ana Julia Caetano via Phabricator via lldb-commits
anajuliapc added inline comments. Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp:284 + switch (watch_flags) { + case write_mode: +rw_mode = PPC_BREAKPOINT_TRIGGER_WRITE; clayborg wrote: > We should use the lldb::WatchpointK

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I can't see anything wrong with the SB API use here. I don't feel qualified to comment on the most effective workflow for an analysis I've never had to do, however. https://reviews.llvm.org/D36347 ___ lldb-commits mailing

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. If you want to run the script from the command line, then it is necessary. If it is run from within LLDB it will just work. I like to have my LLDB python scripts work both ways. This might be better implemented as a new command that gets installed and can be used with

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D36347#902157, @clayborg wrote: > Please do convert to python. Just know that you can use "lldb -P" to get the > python path that is needed in order to do "import lldb" in the python script. > So you can try doing a "import lldb", and if that

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Please do convert to python. Just know that you can use "lldb -P" to get the python path that is needed in order to do "import lldb" in the python script. So you can try doing a "import lldb", and if that fails, catch the exception, run "lldb -P", add that path to the

[Lldb-commits] [PATCH] D38897: Add specific ppc64le hardware watchpoint handler

2017-10-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp:284 + switch (watch_flags) { + case write_mode: +rw_mode = PPC_BREAKPOINT_TRIGGER_WRITE; We should use the lldb::WatchpointKind from lldb-enume

Re: [Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Zachary Turner via lldb-commits
+jingham On Fri, Oct 20, 2017 at 6:57 AM Don Hinton via Phabricator < revi...@reviews.llvm.org> wrote: > hintonda added a comment. > > In https://reviews.llvm.org/D36347#901885, @zturner wrote: > > > One possible reason for why this never got any traction is that > `lldb-commits` wasn't added as

[Lldb-commits] [PATCH] D36347: Add new script to launch lldb and set breakpoints for diagnostics all diagnostics seen.

2017-10-20 Thread Don Hinton via Phabricator via lldb-commits
hintonda added a comment. In https://reviews.llvm.org/D36347#901885, @zturner wrote: > One possible reason for why this never got any traction is that > `lldb-commits` wasn't added as a subscriber. While it's true that the tagged > people should have chimed in, having the whole commits list wi