[Lldb-commits] [PATCH] D44041: Only replace object file sections when non-empty

2019-08-09 Thread Francis Ricci via Phabricator via lldb-commits
fjricci abandoned this revision. fjricci added a comment. Didn’t realize I still had open revisions, haven’t worked on lldb in quite some time CHANGES SINCE LAST ACTION https://reviews.llvm.org/D44041/new/ https://reviews.llvm.org/D44041 ___

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-03-29 Thread Francis Ricci via Phabricator via lldb-commits
fjricci abandoned this revision. fjricci added a comment. I'm not going to get to this https://reviews.llvm.org/D41909 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D44042: Ensure that trailing characters aren't included in PECOFF section names

2018-03-02 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. fjricci added reviewers: clayborg, zturner, wallace. If a section name is exactly 8 characters (the maximum section name length), and the next item in the section header struct contains a non-zero value, we would append garbage data to the end of the section name

[Lldb-commits] [PATCH] D44041: Only replace object file sections when non-empty

2018-03-02 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. fjricci added reviewers: clayborg, zturner, labath. Herald added subscribers: JDevlieghere, arichardson, emaste. In order to allow some sections to exist either in split debug-info or in the main binary, don't replace non-empty sections with empty sections.

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-11 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. > SymbolVendor::FindFunctions will lazily parse functions from the debug info > and populate things inside the module, so the lock is required. Can it give up the lock while it's blocked on worker threads? Holding a lock while blocked seems like a recipe for deadlocks

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-11 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. > I think a better option would be to remove that lock and if it is needed then > lock it just for the calls where it necessary. The fact that SymbolVendor > locks a mutex inside a Module feels like a pretty bad layering violation for > me what can cause many other

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-10 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. It's definitely possible to re-design the lock holding in such a way that we can keep this locked, but I don't want to go through all the work to do that if there isn't any added value to doing so. https://reviews.llvm.org/D41909

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-10 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. Actually I don't think even that is racy, because we just get a pointer to the const char *, which is immutable anyway. https://reviews.llvm.org/D41909 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-10 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. I guess the question is whether we expect that someone will do something like change the module's filepath while we're printing a log message with that filepath in it. https://reviews.llvm.org/D41909 ___ lldb-commits

[Lldb-commits] [PATCH] D41909: Fix deadlock in dwarf logging

2018-01-10 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. fjricci added reviewers: clayborg, zturner, tberghammer. Herald added subscribers: JDevlieghere, aprantl. When dwarf parse logging is enabled (ie `log enable dwarf info`), deadlocks can occur during dwarf parsing: Thread 1: `SymbolVendor::FindFunctions` (acquires

[Lldb-commits] [PATCH] D40587: [lldb] Minor fixes in TaskPool

2017-11-29 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added inline comments. Comment at: source/Host/common/TaskPool.cpp:55 + static const unsigned g_hardware_concurrency = +std::max(1u, std::thread::hardware_concurrency()); + return g_hardware_concurrency; Is 1 the best default here when

[Lldb-commits] [PATCH] D38328: Assume git-generated patch files in build scripts

2017-09-28 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. Oh I see from the discussion on https://github.com/apple/swift-lldb/pull/252 that it was accidental - don't worry about it Repository: rL LLVM https://reviews.llvm.org/D38328 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D38328: Assume git-generated patch files in build scripts

2017-09-28 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. @jasonmolenda - just an FYI that I'm an llvm committer (I contribute frequently to compiler-rt, and used to contribute quite a bit to lldb as well). No worries about this patch though, especially given how small it is. Repository: rL LLVM

[Lldb-commits] [PATCH] D37930: Use ThreadLauncher to launch TaskPool threads

2017-09-19 Thread Francis Ricci via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL313637: Use ThreadLauncher to launch TaskPool threads (authored by fjricci). Changed prior to commit: https://reviews.llvm.org/D37930?vs=115691=115844#toc Repository: rL LLVM

[Lldb-commits] [PATCH] D37930: Use ThreadLauncher to launch TaskPool threads

2017-09-18 Thread Francis Ricci via Phabricator via lldb-commits
fjricci updated this revision to Diff 115691. fjricci added a comment. Herald added subscribers: JDevlieghere, mgorny. Move TaskPool from Utility to Host https://reviews.llvm.org/D37930 Files: include/lldb/Host/TaskPool.h include/lldb/Utility/TaskPool.h lldb.xcodeproj/project.pbxproj

[Lldb-commits] [PATCH] D37930: Use ThreadLauncher to launch TaskPool threads

2017-09-18 Thread Francis Ricci via Phabricator via lldb-commits
fjricci reopened this revision. fjricci added a comment. This revision is now accepted and ready to land. Is ThreadLauncher unavailable in this code for some reason? The link failed on linux buildbots (building lldb on Darwin was fine locally):

[Lldb-commits] [PATCH] D37930: Use ThreadLauncher to launch TaskPool threads

2017-09-18 Thread Francis Ricci via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL313537: Use ThreadLauncher to launch TaskPool threads (authored by fjricci). Changed prior to commit: https://reviews.llvm.org/D37930?vs=115484=115658#toc Repository: rL LLVM

[Lldb-commits] [PATCH] D37930: Use ThreadLauncher to launch TaskPool threads

2017-09-15 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. This allows for the stack size to be configured, which isn't possible with std::thread. Prevents overflowing the stack when performing complex operations in the task pool on darwin, where the default pthread stack size is only 512kb.

[Lldb-commits] [PATCH] D32711: Add missing 'arch' key to valid qHostInfo keys

2017-05-05 Thread Francis Ricci via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302260: Add missing 'arch' key to valid qHostInfo keys (authored by fjricci). Changed prior to commit: https://reviews.llvm.org/D32711?vs=97322=97983#toc Repository: rL LLVM

[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=97648#toc Repository: rL LLVM

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

2017-05-02 Thread Francis Ricci via Phabricator via lldb-commits
fjricci updated this revision to Diff 97447. fjricci added a comment. Move checks into cpp files https://reviews.llvm.org/D32719 Files: packages/Python/lldbsuite/test/functionalities/register/intel_xtended_registers/main.cpp

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

2017-05-02 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added a comment. Yeah, that works too, just wasn't sure which way was preferred. https://reviews.llvm.org/D32719 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2017-05-01 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. The existing cpp-level checks using PR_MPX_ENABLE_MANAGEMENT aren't sufficient, as this isn't defined for linux kernel versions below 3.19. https://reviews.llvm.org/D32719 Files:

[Lldb-commits] [PATCH] D32711: Add missing 'arch' key to valid qHostInfo keys

2017-05-01 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. 'arch' is a valid qHostInfo key, but the unit test for qHostInfo did not include it in the set of possible keys. https://reviews.llvm.org/D32711 Files: packages/Python/lldbsuite/test/tools/lldb-server/TestGdbRemoteHostInfo.py Index:

[Lldb-commits] [PATCH] D25886: [Test Suite] Properly respect --framework option

2017-04-28 Thread Francis Ricci via Phabricator via lldb-commits
fjricci added inline comments. Comment at: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py:1418 "include")), -'LD_EXTRAS': "-L%s -llldb" % lib_dir} +'LD_EXTRAS': "-L%s/../lib -llldb

[Lldb-commits] [PATCH] D31335: Allow getCompiler to return None in the test suite

2017-03-24 Thread Francis Ricci via Phabricator via lldb-commits
fjricci created this revision. Prior to r259433, getCompiler could return None without causing a test suite crash. However, passing a NoneType to realpath will cause a crash. Prevent this crash by allowing getCompiler to return None. https://reviews.llvm.org/D31335 Files: