Re: [Lldb-commits] [lldb] r321120 - Fix a couple of warnings (NFC)

2017-12-20 Thread Davide Italiano via lldb-commits
On Tue, Dec 19, 2017 at 11:54 PM, Adrian Prantl via lldb-commits wrote: > Author: adrian > Date: Tue Dec 19 14:54:37 2017 > New Revision: 321120 > > URL: http://llvm.org/viewvc/llvm-project?rev=321120&view=rev > Log: > Fix a couple of warnings (NFC) > Thanks for doing this! -- Davide ___

[Lldb-commits] [PATCH] D41352: debugserver: Propagate environment in launch-mode (pr35671)

2017-12-20 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 127681. labath added a comment. Herald added a subscriber: mgorny. New version: Make sure we respect variables set by --env and that they are not overridden by --forward-env (the last part relies on the fact that in the presence of multiply-defined environment

[Lldb-commits] [PATCH] D40079: Make sure DataBufferLLVM contents are writable

2017-12-20 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 127687. labath added a comment. Add the suggested MapFileData function https://reviews.llvm.org/D40079 Files: include/lldb/Interpreter/OptionValueFileSpec.h include/lldb/Symbol/ObjectFile.h include/lldb/Target/Target.h include/lldb/Utility/DataBuffer

[Lldb-commits] [PATCH] D41086: [lldb] Check that a regex is valid before searching by regex for a symbol in a pdb.

2017-12-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp:394 + if (name_str.find_first_of("[]?*.-+\\") != std::string::npos) +FindTypesByRegex(RegularExpression(name_str), max_matches, types); else clayborg wrote: > You s

[Lldb-commits] [PATCH] D41092: Enable more abilities in SymbolFilePDB

2017-12-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. This looks better. Technically it's possible to break this with some weird PDBs but I don't think it's possible to do better without using the native reader. Repository: rL LLVM https:

[Lldb-commits] [PATCH] D41428: [lldb] This commit adds support to cache a PDB's global scope and fixes a bug in getting the source file name for a compiland

2017-12-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. Since it seems like you're going to be doing some work in here, it would be great if you could update `lldb-test` to dump PDB symbol information. This would allow us to easily test all sorts of things in here. For example, you could find a PDB that returned an empty s

[Lldb-commits] [PATCH] D41427: [lldb] Fix crash when parsing the type of a function without any arguments

2017-12-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. This is another example where we could test it easily if `lldb-test` could dump this. Are you willing to take a stab at this? Repository: rL LLVM https://reviews.llvm.org/D41427 ___ lldb-commits mailing list lldb-commit

[Lldb-commits] [PATCH] D41352: debugserver: Propagate environment in launch-mode (pr35671)

2017-12-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: tools/debugserver/source/debugserver.cpp:1426 +for (i = 0; (env_entry = host_env[i]) != NULL; ++i) + remote->Context().PushEnvironment(env_entry); + } We need to check if the env var is already in the environm

[Lldb-commits] [PATCH] D40079: Make sure DataBufferLLVM contents are writable

2017-12-20 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, thanks for the making the changes. This will make future tweaks to reading of file data in object files just a single change in ObjectFile.cpp. https://reviews.llvm.org/D40079

[Lldb-commits] [PATCH] D41086: [lldb] Check that a regex is valid before searching by regex for a symbol in a pdb.

2017-12-20 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. If you load a exe file that has a PDB file, people can currently run: (lldb) type lookup "char*" If no testing is using the regular expression stuff, then just pull it out. Do we have unit tests that depend on this working? If not, lets just pull it out from the Sy

Re: [Lldb-commits] [PATCH] D41086: [lldb] Check that a regex is valid before searching by regex for a symbol in a pdb.

2017-12-20 Thread Zachary Turner via lldb-commits
That seems reasonable. Seems Aaron ran into this not because he was trying to do a regex search, but because he *wasnt* trying to do a regex search. So if he doesn’t have immediate need for a regex search, and if it’s not tested anyway, removing it seems fine On Wed, Dec 20, 2017 at 10:49 AM Greg C

[Lldb-commits] [PATCH] D41086: [lldb] Stop searching for a symbol in a pdb by regex

2017-12-20 Thread Aaron Smith via Phabricator via lldb-commits
asmith updated this revision to Diff 127803. asmith retitled this revision from "[lldb] Check that a regex is valid before searching by regex for a symbol in a pdb." to "[lldb] Stop searching for a symbol in a pdb by regex". asmith edited the summary of this revision. Repository: rL LLVM http