[Lldb-commits] [PATCH] D45554: Make sure deleting all breakpoints clears their sites first

2018-04-11 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene created this revision. eugene added reviewers: labath, jingham. Fixing crash after "breakpoint delete". Bug: https://bugs.llvm.org/show_bug.cgi?id=36430 https://reviews.llvm.org/D45554 Files:

[Lldb-commits] [PATCH] D45547: [Command] Implement `stats`

2018-04-11 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. In https://reviews.llvm.org/D45547#1065054, @jasonmolenda wrote: > Ah, no you couldn't set up a command alias like that. Still, if the full > name was statistics, you could type 'stat' and it would match. 'stats' > wouldn't, though. > > I do think decoupling the

[Lldb-commits] [PATCH] D45547: [Command] Implement `stats`

2018-04-11 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. Ah, no you couldn't set up a command alias like that. Still, if the full name was statistics, you could type 'stat' and it would match. 'stats' wouldn't, though. I do think decoupling the disabling action from the dumping action would be an improvement. You

[Lldb-commits] [PATCH] D45547: [Command] Implement `stats`

2018-04-11 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. My two cents, Why print the '### Start STATISTICS dump ###' header/footer when printing the results? I don't think we demarcate result output like that anywhere else in lldb. I don't think it adds anything for the user. I would probably name the command

[Lldb-commits] [PATCH] D45547: [Command] Implement `stats`

2018-04-11 Thread Davide Italiano via Phabricator via lldb-commits
davide created this revision. davide added reviewers: jingham, friss, JDevlieghere, aprantl, labath, clayborg. This allows us to collect useful metrics about lldb debugging sessions. I thought that an example would be better than a thousand words: Process 19705 stopped * thread #1, queue =

[Lldb-commits] [lldb] r329844 - Fix a thinko in CommandObjectMemoryRegion.

2018-04-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Apr 11 12:27:03 2018 New Revision: 329844 URL: http://llvm.org/viewvc/llvm-project?rev=329844=rev Log: Fix a thinko in CommandObjectMemoryRegion. Don't try to read the first argument till you've checked that there is one. Modified:

[Lldb-commits] [lldb] r329831 - [Target] Remove dead/commented out code. NFC.

2018-04-11 Thread Davide Italiano via lldb-commits
Author: davide Date: Wed Apr 11 10:53:02 2018 New Revision: 329831 URL: http://llvm.org/viewvc/llvm-project?rev=329831=rev Log: [Target] Remove dead/commented out code. NFC. Some spring cleaning before I touch this file more extensively. Modified: lldb/trunk/include/lldb/Target/Target.h

[Lldb-commits] [PATCH] D45518: [dotest] Use in-tree dsymutil on Darwin

2018-04-11 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. LGTM https://reviews.llvm.org/D45518 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D45518: [dotest] Use in-tree dsymutil on Darwin

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 142037. JDevlieghere added a comment. - Address Adrian's feedback https://reviews.llvm.org/D45518 Files: packages/Python/lldbsuite/test/dotest.py packages/Python/lldbsuite/test/dotest_args.py packages/Python/lldbsuite/test/make/Makefile.rules

[Lldb-commits] [PATCH] D45518: [dotest] Use in-tree dsymutil on Darwin

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: packages/Python/lldbsuite/test/dotest.py:306 + if args.dsymutil: +os.environ['DSYMUTIL'] = args.dsymutil + else: aprantl wrote: > I suppose we could point to llvm-dsymutil even on non-darwin

[Lldb-commits] [PATCH] D45518: [dotest] Use in-tree dsymutil on Darwin

2018-04-11 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: packages/Python/lldbsuite/test/dotest.py:306 + if args.dsymutil: +os.environ['DSYMUTIL'] = args.dsymutil + else: I suppose we could point to llvm-dsymutil even on non-darwin platforms? Might be useful

[Lldb-commits] [PATCH] D45333: WIP: [LIT] Have lit run the lldb test suite

2018-04-11 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. Sorry for getting in here late. This seems to be a great improvement on the state of the art, and given it's only enabled for the CMake build, I see little harm not going forward with it. In

[Lldb-commits] [PATCH] D45333: WIP: [LIT] Have lit run the lldb test suite

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: lit/Suite/lldbtest.py:46 +cmd = self.dotest_cmd + [testPath, '-p', testName] +print ' '.join(cmd) + labath wrote: > It looks like `executeCommand` accepts a list of args for a command as well, > so

[Lldb-commits] [PATCH] D45333: WIP: [LIT] Have lit run the lldb test suite

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. The only outstanding issue is calling `llvm-lit` with the path to the test suite. Does anybody with more lit experience know how we can solve this? https://reviews.llvm.org/D45333 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D45333: WIP: [LIT] Have lit run the lldb test suite

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 142028. JDevlieghere marked 2 inline comments as done. JDevlieghere added a comment. - Feedback Pavel - Makes `check-lldb` invoke *only* lit. https://reviews.llvm.org/D45333 Files: lit/Suite/lit.cfg lit/Suite/lit.site.cfg.in

[Lldb-commits] [PATCH] D45518: [dotest] Use in-tree dsymutil on Darwin

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: aprantl, davide, jingham, labath. Herald added a subscriber: mgorny. With the upstream implementation of dsymutil containing almost all functionality from the one shipped with Xcode, we want to use the in-tree version for running

[Lldb-commits] [lldb] r329803 - llgs: Send "rich" errors in response to vAttach packets

2018-04-11 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Apr 11 06:30:54 2018 New Revision: 329803 URL: http://llvm.org/viewvc/llvm-project?rev=329803=rev Log: llgs: Send "rich" errors in response to vAttach packets There are plenty of ways attaching can go wrong. Having the server report the exact error means we can give

[Lldb-commits] [PATCH] D45497: Don't assume the backing thread shares a Protocol ID

2018-04-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 141982. JDevlieghere added a comment. - Address Greg's comment and factor out the method. - Add a test case. https://reviews.llvm.org/D45497 Files: include/lldb/Target/ThreadList.h

Re: [Lldb-commits] [PATCH] D45170: Cleanup DWARFCompileUnit and DWARFUnit in preparation for adding DWARFTypeUnit

2018-04-11 Thread Jan Kratochvil via lldb-commits
On Wed, 11 Apr 2018 01:24:53 +0200, Jan Kratochvil wrote: > On Wed, 11 Apr 2018 00:53:20 +0200, Jan Kratochvil wrote: > > On Wed, 11 Apr 2018 00:22:45 +0200, Greg Clayton wrote: > > > If this is all in the same file, then the offsets are all in the > > > .debug_info? What am I missing? > > > >