[Lldb-commits] [PATCH] D52406: Make DIE_IS_BEING_PARSED local to the current thread.

2018-09-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added a reviewer: labath. Herald added a subscriber: mgorny. JDevlieghere edited the summary of this revision. This is an attempt to realize Pavel's suggestion from https://reviews.llvm.org/D48393 In https://reviews.llvm.org/D48393#1139327, @labat

[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-09-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D48393#1139327, @labath wrote: > It's even more complicated than that, in case you really have reference > cycles, you can have multiple threads starting parsing from different points > in that cycle, and getting deadlocked waiting for t

[Lldb-commits] [PATCH] D52375: [WIP] Support multiple compile units per OSO entry in SymbolFileDWARFDebugMap

2018-09-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:430 const size_t num_ranges = -die->GetAttributeAddressRanges(dwarf, this, ranges, false); +die->GetAttributeAddressRanges(dwarf, this, ranges, true); if (num_r

[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-09-25 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Thanks for the information, Greg! In https://reviews.llvm.org/D48393#1243588, @clayborg wrote: > A little background might help here: The lldb_private::Module lock is used to > prevent multiple queries into the DWARF from stomping on each other. > > Multi-threaded

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Adds the module lock to all virtual methods from SymbolFile

2018-09-26 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: clayborg, labath, friss. JDevlieghere added a project: LLDB. Herald added a subscriber: aprantl. This patch adds locking to all the virtual entry-points in DWARFSymbolFile to prevent corruption of its data structures as a result of

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Adds the module lock to all virtual methods from SymbolFile

2018-09-26 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D52543#1246877, @clayborg wrote: > It is the SymbolVendor's job to do the locking. And in many cases it already > is. I stopped with inlined comments after a few comments as it would apply to > this entire patch. Thanks Greg. Honestly

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Adds the module lock to all virtual methods from SymbolFile

2018-09-27 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. My first observations: - We call `ResolveTypeUID` without going through the symbol vendor (similar to `GetDeclContextForUID` in the stack trace). This is easy to fix, just add locking to these functions. - The module in the symbol vendor is different from the one i

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Adds the module lock to all virtual methods from SymbolFile

2018-09-27 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 167248. JDevlieghere added a comment. - Add assertions per Greg's suggestion. https://reviews.llvm.org/D52543 Files: include/lldb/Symbol/SymbolFile.h source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp source/Symbol/SymbolFile.cpp Index: source/

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-09-28 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: clayborg, jingham, teemperor. JDevlieghere added a project: LLDB. For the reproducer feature I need to be able to export and import the current LLDB configuration. To realize this I've extended the existing functionality to print

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 167722. JDevlieghere edited the summary of this revision. JDevlieghere added a comment. - Rebase https://reviews.llvm.org/D52651 Files: include/lldb/Interpreter/OptionValue.h lit/Settings/TestExport.test source/Commands/CommandObjectSettings.cpp

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 167889. JDevlieghere added a comment. Thanks a lot for the feedback! I clearly overlooked some stuff when inspiring myself on the other CommandObject code. I've updated the diff: - Rename functionality to read and write for consistency with breakpoints

[Lldb-commits] [PATCH] D52772: [Settings] Make "settings set" without a value equivalent to "settings clear"

2018-10-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added a reviewer: LLDB. I want to make providing no value to `setting set ` equivalent to clearing that setting: `settings clear `. The motivation is https://reviews.llvm.org/D52651 that allows settings to be written to and read from a file. Not

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 167892. JDevlieghere marked 2 inline comments as done. JDevlieghere added a comment. Split off `settings set` change into separate review: https://reviews.llvm.org/D52772 https://reviews.llvm.org/D52651 Files: include/lldb/Interpreter/OptionValue.h

[Lldb-commits] [PATCH] D52772: [Settings] Make "settings set" without a value equivalent to "settings clear"

2018-10-03 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D52772#1252656, @jingham wrote: > Would it be possible for the exporter to notice empty settings and write > "settings clear" instead? I don't think we can if we want to re-use the existing dump infrastructure, unless there's a way to

[Lldb-commits] [PATCH] D52788: Add EchoCommentCommands to CommandInterpreterRunOptions in addition to the existing EchoCommands and expose both as interpreter settings.

2018-10-03 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Thanks for working on this Stefan, I'm really excited about this feature! Regarding the code, I don't have comments that weren't already brought up by the other reviewers. https://reviews.llvm.org/D52788 ___ lldb-comm

[Lldb-commits] [PATCH] D53193: [LLDB] - Add support for DW_RLE_start_end entries (.debug_rnglists)

2018-10-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. The code and test look correct, so this LGTM but I'll leave it open for now in case someone else wants to have a look too. https://reviews.llvm.org/D53193 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-10-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 170242. JDevlieghere retitled this revision from "[DWARFSymbolFile] Adds the module lock to all virtual methods from SymbolFile" to "[DWARFSymbolFile] Add the module lock where necessary and assert that we own it.". JDevlieghere edited the summary of thi

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 170252. JDevlieghere added a comment. Only clear setting when the force flag is set (as suggested offline by @jingham). https://reviews.llvm.org/D52651 Files: lit/Settings/TestSettingsSet.test source/Commands/CommandObjectSettings.cpp Index: sou

[Lldb-commits] [PATCH] D52772: [Settings] Make "settings set" without a value equivalent to "settings clear"

2018-10-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 170257. JDevlieghere added a comment. Only clear setting when the force flag is set (as suggested offline by @jingham). https://reviews.llvm.org/D52772 Files: lit/Settings/TestSettingsSet.test source/Commands/CommandObjectSettings.cpp Index: sou

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 170258. JDevlieghere added a comment. - Back to the right diff. - Use `-f` as per the other patch. https://reviews.llvm.org/D52651 Files: include/lldb/Interpreter/OptionValue.h lit/Settings/TestExport.test source/Commands/CommandObjectSettings.cp

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-10-22 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 170465. JDevlieghere marked 3 inline comments as done. JDevlieghere added a comment. Address Greg's feedback. https://reviews.llvm.org/D52543 Files: include/lldb/Symbol/SymbolFile.h source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp source/Plugi

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-10-22 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB344945: [SymbolFile] Add the module lock where necessary and assert that we own it. (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D52543?vs=170465&id=17

[Lldb-commits] [PATCH] D53532: [FileSpec] Add VFS support

2018-10-22 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: zturner, labath, clayborg. JDevlieghere added a project: LLDB. This patch adds support for virtual file systems by delegating relevant operations. By default the real file system is used so this should be NFC for all intents and p

[Lldb-commits] [PATCH] D52772: [Settings] Make "settings set" without a value equivalent to "settings clear"

2018-10-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. ping https://reviews.llvm.org/D52772 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D52772: [Settings] Make "settings set" without a value equivalent to "settings clear"

2018-10-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345207: [Settings] Add -force flag to "settings set" (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52772?vs=17025

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. @teemperor Can you have another look? https://reviews.llvm.org/D52651 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Thanks Raphael! With r345207 the empty behavior only works if you explicitly specify `-force`. I'll address the second issue before landing this. https://reviews.llvm.org/D52651 ___ lldb-commits mailing list lldb-comm

[Lldb-commits] [PATCH] D53532: [FileSpec] Add VFS support to FileSpec convenience methods.

2018-10-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Note that there's also a File class which we'll need to patch up separately together with all other uses that actually open or read a file. For this class we can do the same as we did for FileSpec: deferring relevant operations to the FileSystem class. https://re

[Lldb-commits] [PATCH] D53532: [FileSpec] Add VFS support to FileSpec convenience methods.

2018-10-25 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. While I don't disagree with the proposed approach, it needs to be highlighted that extracting all file system operations would be very intrusive. - Almost all logic in FileSpec deals with the filesystem. You can't even resolve a path without it. How do you imagine

[Lldb-commits] [PATCH] D53532: [FileSpec] Add VFS support to FileSpec convenience methods.

2018-10-25 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Thanks for the feedback! I totally agree it's a good solution and it was one of the things I considered. It didn't make it to the top of the list because it is very intrusive and changes the semantics of FileSpec quite a bit (i.e. it becomes a PathSpec as Zachary n

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-25 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345346: Add functionality to export settings (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D52651?vs=170258&id=171

[Lldb-commits] [PATCH] D52651: Add functionality to export settings

2018-10-25 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345346: Add functionality to export settings (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D52651?vs=170258&id=171231#toc Repository: rLLDB LLDB htt

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-26 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 171376. JDevlieghere retitled this revision from "[FileSpec] Add VFS support to FileSpec convenience methods." to "[FileSystem] Extend file system and have it use the VFS.". JDevlieghere edited the summary of this revision. JDevlieghere added a comment.

[Lldb-commits] [PATCH] D53785: [FileSystem] Move EnumerateDirectory from FileSpec to FileSystem.

2018-10-26 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: zturner, labath, jingham, clayborg. JDevlieghere added a project: LLDB. This patch moves the EnumerateDirectory functionality and related enums and typedefs from FileSpec to FileSystem. The long term goal is to remove this method

[Lldb-commits] [PATCH] D53788: [FileSystem] Remove GetByteSize() from FileSpec

2018-10-26 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, zturner, jingham. JDevlieghere added a project: LLDB. Herald added subscribers: arichardson, emaste. Herald added a reviewer: espindola. This patch removes the `GetByteSize` method from FileSpec and updates its uses with ca

[Lldb-commits] [PATCH] D53788: [FileSystem] Remove GetByteSize() from FileSpec

2018-10-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D53788#1278036, @zturner wrote: > I always wondered if we actually even need methods like this in `FileSystem` > given that they already exist in `llvm::sys::fs`. Is it possible to just > call the llvm methods directly, or is it still h

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 171529. JDevlieghere added a comment. Address Pavel's feedback: - Change to `Initialize` method which can only be called once. - Fix accidental change in comment. https://reviews.llvm.org/D53532 Files: include/lldb/Host/FileSystem.h include/lldb/U

[Lldb-commits] [PATCH] D53831: [FileSystem] Remove GetPermissions() and Readable() from FileSpec

2018-10-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: zturner, labath, davide. JDevlieghere added a project: LLDB. Herald added subscribers: abidh, emaste. This patch removes the `GetPermissions` and `GetReadable` methods from FileSpec and updates its uses with calls to the FileSystem

[Lldb-commits] [PATCH] D53834: [FileSystem] Remove ResolveExecutableLocation() from FileSpec

2018-10-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: zturner, labath, davide. JDevlieghere added a project: LLDB. Herald added a subscriber: emaste. This patch removes the `ResolveExecutableLocation` method from FileSpec and updates its uses with calls to the FileSystem. Repository

[Lldb-commits] [PATCH] D53845: [FileSystem] Remove Exists() from FileSpec

2018-10-29 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: zturner, labath, davide. JDevlieghere added a project: LLDB. Herald added a subscriber: emaste. This patch removes the `Exists` method from FileSpec and updates its uses with calls to the FileSystem. Repository: rLLDB LLDB htt

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-30 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D53532#1280018, @labath wrote: > In https://reviews.llvm.org/D53532#1279022, @JDevlieghere wrote: > > > Address Pavel's feedback: > > > > - Change to `Initialize` method which can only be called once. > > > I suppose this is slightly bette

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-30 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D53532#1280880, @labath wrote: > Yes, right now it certainly seems to be the case that we parse cmdline late > in the game. However, it's not clear to me whether that has to be the case. > > I can't say I have thought this through to the

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-30 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 171845. JDevlieghere added a comment. Add static initializers. https://reviews.llvm.org/D53532 Files: include/lldb/Host/FileSystem.h include/lldb/Utility/FileSpec.h source/Core/Disassembler.cpp source/Core/Module.cpp source/Core/ModuleList.cp

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-31 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345783: [FileSystem] Extend file system and have it use the VFS. (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D53

[Lldb-commits] [PATCH] D53532: [FileSystem] Extend file system and have it use the VFS.

2018-10-31 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345783: [FileSystem] Extend file system and have it use the VFS. (authored by JDevlieghere, committed by ). Herald added subscribers: teemperor, abidh. Changed prior to commit: https://reviews.llvm.o

[Lldb-commits] [PATCH] D53785: [FileSystem] Move EnumerateDirectory from FileSpec to FileSystem.

2018-10-31 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345800: [FileSystem] Move EnumerateDirectory from FileSpec to FileSystem. (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llv

[Lldb-commits] [PATCH] D53788: [FileSystem] Remove GetByteSize() from FileSpec

2018-10-31 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345812: [FileSystem] Remove GetByteSize() from FileSpec (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D53788?vs=17

[Lldb-commits] [PATCH] D53831: [FileSystem] Remove GetPermissions() and Readable() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345843: [FileSystem] Remove GetPermissions() and Readable() from FileSpec (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llv

[Lldb-commits] [PATCH] D53834: [FileSystem] Remove ResolveExecutableLocation() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 172142. https://reviews.llvm.org/D53834 Files: include/lldb/Host/FileSystem.h include/lldb/Utility/FileSpec.h source/API/SBFileSpec.cpp source/Host/common/FileSystem.cpp source/Host/common/MonitoringProcessLauncher.cpp source/Host/macosx/objc

[Lldb-commits] [PATCH] D53834: [FileSystem] Remove ResolveExecutableLocation() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D53834#1281822, @labath wrote: > Why did you change the function name? I think it would be nice to keep > "executable" or something to that effect in the name (e.g. the llvm function > has "program"), given that the underlying function c

[Lldb-commits] [PATCH] D53834: [FileSystem] Remove ResolveExecutableLocation() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345853: [FileSystem] Remove ResolveExecutableLocation() from FileSpec (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D53834?vs=172142&id=172157#toc Repo

[Lldb-commits] [PATCH] D53845: [FileSystem] Remove Exists() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345854: [FileSystem] Remove Exists() from FileSpec (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D53845?vs=171599&id=172158#toc Repository: rLLDB LLD

[Lldb-commits] [PATCH] D53845: [FileSystem] Remove Exists() from FileSpec

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345854: [FileSystem] Remove Exists() from FileSpec (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D53845?vs=171599&

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-01 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, zturner, jingham, clayborg. JDevlieghere added a project: LLDB. This patch modifies how we open `File` instances in LLDB. Rather than passing a path or FileSpec to the constructor, we now go through the virtual file system.

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54020#1285201, @labath wrote: > I am not sure what do you mean by "translating paths" in the VFS. If you mean > something like "return a `FILE *` for `/whatever/my_reproducer/vfs/bin/ls` > when I ask for `/bin/ls`", then I think that's

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: source/Host/common/FileSystem.cpp:253 +static int GetOpenFlags(uint32_t options) { + const bool read = options & File::OpenOptions::eOpenOptionRead; + const bool write = options & File::OpenOptions::eOpenOptionWrite; -

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 172382. JDevlieghere marked 3 inline comments as done. JDevlieghere added a comment. Address Pavel's feedback: - Un-const open functions. - Remove `::Empty()` again as it was redundant with `operator bool()`. - Rename `OpenFile` to just `Open`. We might

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54020#1285799, @labath wrote: > Ok, I think we're on the same page here. What I was wondering is that given > this lack of generality (this operation would only be supported on > `DiskBackedFilesystem`, and not all other kinds of file s

[Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Hi Zachary, looks like this broke GreenDragon: http://green.lab.llvm.org/green/view/LLDB/job/lldb-cmake/12087/console Can you have a look please? Repository: rLLDB LLDB https://reviews.llvm.org/D54009 ___ lldb-comm

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346049: [FileSystem] Open File instances through the FileSystem. (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D54

[Lldb-commits] [PATCH] D54020: [FileSystem] Open File instances through the FileSystem.

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB346049: [FileSystem] Open File instances through the FileSystem. (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D54020?vs=172382&id=172448#toc Repositor

[Lldb-commits] [PATCH] D54060: Remove OCaml debugger plugin

2018-11-02 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: davide, zturner, labath, tberghammer. JDevlieghere added a project: LLDB. Herald added a subscriber: mgorny. In January Davide sent an e-mail to the mailing list to suggest removing support for Go and Java. The plan was to have som

[Lldb-commits] [PATCH] D54059: Remove Java debugger plugin

2018-11-03 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54059#1286293, @teemperor wrote: > Minor detail: The revision title only mentions Java, but this revision > removes both Go and Java. Actually, this review is only for removing the Java plugin. There’s a different review for the Go pl

[Lldb-commits] [PATCH] D54060: Remove OCaml debugger plugin

2018-11-05 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346159: Remove OCaml debugger plugin (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D54060?vs=172464&id=172627#toc

[Lldb-commits] [PATCH] D54135: Add convenience method in FileSystem to check if a path/filespec is a directory.

2018-11-05 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, davide. JDevlieghere added a project: LLDB. Herald added subscribers: teemperor, emaste. Replace calls to LLVM's is_directory with calls to LLDB's FileSytem class. For this I introduced a new convenience method that, like t

[Lldb-commits] [PATCH] D54135: Add convenience method in FileSystem to check if a path/filespec is a directory.

2018-11-06 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54135#1288254, @krytarowski wrote: > Why? We already put a lot of effort into reusing code from LLVM. This is still using code from LLVM, the `FileSystem` class is just an abstraction in between: 1. It uses LLVM's virtual file system.

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: jingham, jasonmolenda. JDevlieghere added a project: LLDB. Herald added subscribers: teemperor, abidh. When debugging read-only memory we cannot use software breakpoint. We already have support for hardware breakpoints and users ca

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 173015. JDevlieghere added a comment. Fix bug for `thread until` and add test case. https://reviews.llvm.org/D54221 Files: include/lldb/API/SBBreakpoint.h include/lldb/Breakpoint/Breakpoint.h include/lldb/Target/Target.h include/lldb/Target/Thr

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54221#1290572, @labath wrote: > I recall something about linux on arm having a magic unmodifiable (even by > ptrace) page of memory, so this could be useful there too. However, it's not > clear to me how a user is going to figure out th

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 173021. JDevlieghere added a comment. Remove `ValidatePlan` implementation for `ThreadPlanPython` as I believe it's bogus. https://reviews.llvm.org/D54221 Files: include/lldb/API/SBBreakpoint.h include/lldb/Breakpoint/Breakpoint.h include/lldb/T

[Lldb-commits] [PATCH] D54135: Add convenience method in FileSystem to check if a path/filespec is a directory.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346375: [FileSystem] Add convenience method to check for directories. (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.or

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-07 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 173112. JDevlieghere marked 18 inline comments as done. JDevlieghere added a comment. Feedback from Jim https://reviews.llvm.org/D54221 Files: include/lldb/API/SBBreakpoint.h include/lldb/API/SBThreadPlan.h include/lldb/Breakpoint/Breakpoint.h

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-08 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 173191. JDevlieghere added a comment. Update tests to use SB API. https://reviews.llvm.org/D54221 Files: include/lldb/API/SBBreakpoint.h include/lldb/API/SBThreadPlan.h include/lldb/Breakpoint/Breakpoint.h include/lldb/Target/Target.h include

[Lldb-commits] [PATCH] D54272: Extract construction of DataBufferLLVM into FileSystem

2018-11-08 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, zturner, davide. JDevlieghere added a project: LLDB. This moves construction of data buffers into the FileSystem class. Like some of the previous refactorings we don't translate the path yet because the functionality hasn'

[Lldb-commits] [PATCH] D54272: Extract construction of DataBufferLLVM into FileSystem

2018-11-10 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346598: Extract construction of DataBufferLLVM into FileSystem (authored by JDevlieghere, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D5427

[Lldb-commits] [PATCH] D54385: Remove comments after header includes.

2018-11-11 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54385#1294534, @teemperor wrote: > Do we also want to get rid of the `// C Includes` comments that are in some > files? LLVM isn't using them either and just removing lines doesn't make git > blame more complicated. Yup, I'll do that

[Lldb-commits] [PATCH] D54417: Fix a crash when parsing incorrect DWARF

2018-11-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. Your explanation makes sense, good catch. Thanks for fixing this! https://reviews.llvm.org/D54417 ___ lldb-commits mailing list lldb-

[Lldb-commits] [PATCH] D54476: [CMake] Streamline code signing for debugserver

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:101 +option(LLDB_NO_DEBUGSERVER "Delete debugserver after building it, and don't try to codesign it" OFF) +option(LLDB_USE_SYSTEM_DEBUGSERVER "Neither build nor codesign debugserver. Use the

[Lldb-commits] [PATCH] D54476: [CMake] Streamline code signing for debugserver

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:118 + OUTPUT_VARIABLE xcode_dev_dir) +string(STRIP ${xcode_dev_dir} xcode_dev_dir) + sgraenitz wrote: > JDevlieghere wrote: > > Why did you make this variable name lo

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. I think we can close this after https://reviews.llvm.org/rL344945? Repository: rLLDB LLDB https://reviews.llvm.org/D52543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-14 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 174091. JDevlieghere added a comment. Feedback Jim: move argument to the end of the list. https://reviews.llvm.org/D54221 Files: include/lldb/API/SBBreakpoint.h include/lldb/API/SBThreadPlan.h include/lldb/Breakpoint/Breakpoint.h include/lldb/T

[Lldb-commits] [PATCH] D54221: Add setting to require hardware breakpoints.

2018-11-14 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB346920: Add setting to require hardware breakpoints. (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D54221?vs=174091&id=174136#toc Repository: rLLDB L

[Lldb-commits] [PATCH] D54567: Fix LLDB's lit files

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Personally I don't think we should differentiate between the lit and dotest suite when it comes to using a custom compiler. The separation between the two suits is mostly the result of what framework is easier to write your test is (or which one you're more familia

[Lldb-commits] [PATCH] D54601: Makefile.rules: Use a shared clang module cache directory.

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D54601 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[Lldb-commits] [PATCH] D54602: Use a shared module cache directory for LLDB.

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D54602 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[Lldb-commits] [PATCH] D54476: [CMake] Streamline code signing for debugserver

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. Thanks for working on this, Stefan. This LGTM. https://reviews.llvm.org/D54476 ___ lldb-commits mailing list lldb-commits@lists.llvm.

[Lldb-commits] [PATCH] D54567: Fix LLDB's lit files

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54567#1300459, @zturner wrote: > I'm not sure how hard it would be. > > One problem is that dotest supports not just choosing a compiler, but > choosing multiple compilers, as well as multiple architectures and it runs > the test suite

[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: davide, shafik, friss, jingham. JDevlieghere added a project: LLDB. Herald added subscribers: abidh, mgorny. When I landed the initial reproducer framework I knew there were some things that needed improvement. Rather than bundling

[Lldb-commits] [PATCH] D54617: [wip][Reproducers] Add file provider

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. Herald added a subscriber: mgorny. JDevlieghere added a subscriber: labath. This patch is WIP and meant to showcase how the reproducer and VFS will interact. Repository: rLLDB LLDB https://reviews.llvm.org/D54617 Files: include/lldb/Host/FileSystem.h

[Lldb-commits] [PATCH] D54617: [wip][Reproducers] Add file provider

2018-11-15 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. - Initialization of the FS needs to happen in the driver. - All file access has to go through the new FileSystem. - Needs tests. Repository: rLLDB LLDB https://reviews.llvm.org/D54617 ___ lldb-commits mailing list ll

[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 174398. JDevlieghere marked 4 inline comments as done. JDevlieghere added a comment. Address Stefan's review feedback. https://reviews.llvm.org/D54616 Files: include/lldb/API/SBDebugger.h include/lldb/Utility/Reproducer.h scripts/interface/SBDebu

[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 174399. JDevlieghere marked an inline comment as done. JDevlieghere added a comment. Missed a comment; fixed now. https://reviews.llvm.org/D54616 Files: include/lldb/API/SBDebugger.h include/lldb/Utility/Reproducer.h scripts/interface/SBDebugger.

[Lldb-commits] [PATCH] D54567: Fix LLDB's lit files

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54567#1300670, @zturner wrote: > In https://reviews.llvm.org/D54567#1300641, @JDevlieghere wrote: > > > Makes sense. Just to be clear, I'm not advocating running a product for the > > lit suite, just having one option that controls both

[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 174407. JDevlieghere added a comment. Simplify code a little, as per Stefan's (offline) suggestion. https://reviews.llvm.org/D54616 Files: include/lldb/API/SBDebugger.h include/lldb/Utility/Reproducer.h scripts/interface/SBDebugger.i source/API

[Lldb-commits] [PATCH] D54616: [Reproducers] Improve reproducer API and add unit tests.

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 174416. https://reviews.llvm.org/D54616 Files: include/lldb/API/SBDebugger.h include/lldb/Core/Debugger.h include/lldb/Utility/Reproducer.h scripts/interface/SBDebugger.i source/API/SBDebugger.cpp source/Commands/CommandObjectReproducer.cpp

[Lldb-commits] [PATCH] D54601: Makefile.rules: Use a shared clang module cache directory.

2018-11-16 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. Looks like the sed expression is not working on Windows: http://lab.llvm.org:8014/builders/lldb-x64-windows-ninja/builds/1418/steps/test/logs/stdio Repository: rLLDB LLDB https://reviews.llvm.org/D54601 ___ lldb-com

[Lldb-commits] [PATCH] D54617: [wip][Reproducers] Add file provider

2018-11-18 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54617#1302366, @labath wrote: > I am confused by differing scopes of various objects that are interacting > here. It seems you are implementing capture/replay as something that can be > flicked on/off at any point during a debug session

[Lldb-commits] [PATCH] D54682: [Driver] Extract option parsing and option processing.

2018-11-18 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: clayborg, labath, zturner, jingham. JDevlieghere added a project: LLDB. In order to deal consistently with global state in LLDB, the reproducer feature affects LLDB's initialization. For example, when replaying, the FileSystem sin

[Lldb-commits] [PATCH] D54682: [Driver] Extract option parsing and option processing.

2018-11-18 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. In https://reviews.llvm.org/D54682#1302436, @zturner wrote: > I’ve often thought we should convert LLDB’s command line parsing code over > to use either cl::opt or lib/Option. This would also solve the problem you > describe here at the same time. > > Do you think

[Lldb-commits] [PATCH] D54692: [Driver] Use libOption with tablegen.

2018-11-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added a reviewer: zturner. JDevlieghere added a project: LLDB. Herald added subscribers: jfb, mgorny. Alternative to https://reviews.llvm.org/D54682. Repository: rLLDB LLDB https://reviews.llvm.org/D54692 Files: tools/driver/CMakeLists.txt

  1   2   3   4   5   6   7   8   9   10   >