[Lldb-commits] [lldb] r296855 - Remove some dead code in FileSpec.

2017-03-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 00:14:38 2017 New Revision: 296855 URL: http://llvm.org/viewvc/llvm-project?rev=296855&view=rev Log: Remove some dead code in FileSpec. This in turn triggered some fallout where other files had been transitively picking up includes that they needed from FileSpec.h

[Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 90432. zturner added a comment. I basically turned the two dump methods into free functions and moved the DWARF specific function into `DWARFCallFrameInfo.cpp`. I think this is much better than before, as we don't muck with the inheritance hierarchy at all

Re: [Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Zachary Turner via lldb-commits
I was actually thinking of making the dump functions free functions that take a const DataExtractor&. This way the entire implementation could remain unchanged with the exception of replacing implicit member variable reads with reads through an explicit instance of the extractor. This way we don't

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene added inline comments. Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3766-3776 + llvm::SmallVector signals_to_ignore; + int32_t signo = m_unix_signals_sp->GetFirstSignalNumber(); + while (signo != LLDB_INVALID_SIGNAL_NUMBER) { +bool should_ignor

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90424. eugene marked an inline comment as done. eugene added a comment. Added comment to UnixSignals::m_version. Still thinking about the best way to test it all. https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/U

[Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. The EH stuff should definitely go in a specific subclass. It also seems a shame to lose the capability to Dump DataExtractors in general. The only thing the exe_scope is used for in Dump (which is what is causing you problems) is to print instructions, and to do a more

Re: [Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Zachary Turner via lldb-commits
Tbh I felt dirty calling it Ex, so thanks for calling me out on it :) I'll whip up some changes later On Thu, Mar 2, 2017 at 6:09 PM Jim Ingham via Phabricator < revi...@reviews.llvm.org> wrote: > jingham added a comment. > > Is it horrible of me to ask that we choose a name that is more descript

[Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Is it horrible of me to ask that we choose a name that is more descriptive than DataExtractorEx? That "Ex" extension to a class name is just such a punt, and I'd really rather not encourage it. The subclass you made adds the ability to: (a) Dump itself (b) Extract som

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I added a few comments. It doesn't look like you addressed Pavel's idea for testing more of the code path you're introducing. Do you plan to do that? Comment at: source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp:3766-3776 + llvm::SmallVector si

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Eugene Zemtsov via Phabricator via lldb-commits
eugene updated this revision to Diff 90407. eugene added a comment. Addressing code review commends, and moving a signal filtering method to the base Process class. https://reviews.llvm.org/D30520 Files: include/lldb/Target/Process.h include/lldb/Target/UnixSignals.h source/Plugins/Proce

[Lldb-commits] [lldb] r296834 - Python commands as first class citizens.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 16:24:01 2017 New Revision: 296834 URL: http://llvm.org/viewvc/llvm-project?rev=296834&view=rev Log: Python commands as first class citizens. This should be a necessary precursor to adding support for any future extension languages. Modified: lldb/trunk/www/

[Lldb-commits] [lldb] r296833 - Mention fetching thread lists lazily.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 16:13:45 2017 New Revision: 296833 URL: http://llvm.org/viewvc/llvm-project?rev=296833&view=rev Log: Mention fetching thread lists lazily. Modified: lldb/trunk/www/projects.html Modified: lldb/trunk/www/projects.html URL: http://llvm.org/viewvc/llvm-project/

[Lldb-commits] [lldb] r296826 - Forgot about local variable lookup.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 16:04:05 2017 New Revision: 296826 URL: http://llvm.org/viewvc/llvm-project?rev=296826&view=rev Log: Forgot about local variable lookup. Yay for coffee lines. Modified: lldb/trunk/www/projects.html Modified: lldb/trunk/www/projects.html URL: http://llvm.o

[Lldb-commits] [lldb] r296819 - Add a reference to the projects in the Get involved section.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 15:45:39 2017 New Revision: 296819 URL: http://llvm.org/viewvc/llvm-project?rev=296819&view=rev Log: Add a reference to the projects in the Get involved section. Modified: lldb/trunk/www/index.html Modified: lldb/trunk/www/index.html URL: http://llvm.org/vie

Re: [Lldb-commits] [lldb] r296814 - Added a list of outstanding projects that would benefit lldb.

2017-03-02 Thread Zachary Turner via lldb-commits
Nice list, thanks! On Thu, Mar 2, 2017 at 1:51 PM Jim Ingham via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: jingham > Date: Thu Mar 2 15:39:27 2017 > New Revision: 296814 > > URL: http://llvm.org/viewvc/llvm-project?rev=296814&view=rev > Log: > Added a list of outstanding proje

[Lldb-commits] [lldb] r296816 - Goals->Projects.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 15:42:00 2017 New Revision: 296816 URL: http://llvm.org/viewvc/llvm-project?rev=296816&view=rev Log: Goals->Projects. Modified: lldb/trunk/www/projects.html Modified: lldb/trunk/www/projects.html URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/www/projec

[Lldb-commits] [lldb] r296814 - Added a list of outstanding projects that would benefit lldb.

2017-03-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 2 15:39:27 2017 New Revision: 296814 URL: http://llvm.org/viewvc/llvm-project?rev=296814&view=rev Log: Added a list of outstanding projects that would benefit lldb. This was a list that I've had kicking around for a while, and would add to whenever some hallway con

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Note that ProcessGDBRemote (or maybe the client) keeps a history array of packets sent. Greg added that long ago so that when you enabled the packet log you would get the packet history up to the time you enabled it, and not just the new packets. That has often come

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
Interesting. Another workaround is probably to make it constexpr On Thu, Mar 2, 2017 at 7:50 AM Pavel Labath wrote: > FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\cl.exe /nologo /TP > -DGTEST_HAS_RTTI=0 -DLLDB_DISABLE_CURSES -DLLDB_DISABLE_LIBEDIT > -DLLDB_PYTHON_HOME=\"C:/Users/lldb_build/ll/prebuilt

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Pavel Labath via lldb-commits
FAILED: C:\PROGRA~2\MICROS~3.0\VC\bin\cl.exe /nologo /TP -DGTEST_HAS_RTTI=0 -DLLDB_DISABLE_CURSES -DLLDB_DISABLE_LIBEDIT -DLLDB_PYTHON_HOME=\"C:/Users/lldb_build/ll/prebuilts/python-2015/x86\" -DLLDB_USE_BUILTIN_DEMANGLER -DLLVM_BUILD_GLOBAL_ISEL -DUNICODE -D_CRT_NONSTDC_NO_DEPRECATE -D_CRT_NONST

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
What capture does it say is missing? Also what version of msvc? On Thu, Mar 2, 2017 at 7:17 AM Zachary Turner wrote: > Clang-cl > On Thu, Mar 2, 2017 at 2:51 AM Pavel Labath wrote: > > > On 2 March 2017 at 00:05, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > -Du

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
Clang-cl On Thu, Mar 2, 2017 at 2:51 AM Pavel Labath wrote: > > On 2 March 2017 at 00:05, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > -DumpValueObjectOptions::DeclPrintingHelper helper = > -[&valobj_sp, qualify_cxx_base_classes]( > -ConstStr

[Lldb-commits] [PATCH] D30457: [LLDB][MIPS] Core Dump Support

2017-03-02 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain marked an inline comment as done. nitesh.jain added a comment. The .note.ABI-tag is missing in the ELF file, generated by test/testcases/functionalities/postmortem/elf-core/make-core.sh. Need to look into it. -Thanks https://reviews.llvm.org/D30457 ___

[Lldb-commits] [PATCH] D30457: [LLDB][MIPS] Core Dump Support

2017-03-02 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain marked an inline comment as done. nitesh.jain added inline comments. Comment at: source/Plugins/Process/Utility/RegisterInfoInterface.h:32 + virtual const lldb_private::RegisterSet * + GetRegisterSet(size_t set) const {return nullptr;} labath wrot

[Lldb-commits] [PATCH] D30457: [LLDB][MIPS] Core Dump Support

2017-03-02 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain updated this revision to Diff 90328. nitesh.jain added a comment. Update diff as per suggestion. https://reviews.llvm.org/D30457 Files: source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_mips64.h source/Plugins/Process/Linux/NativeRegisterContextLinux_mips64.cpp

[Lldb-commits] [lldb] r296741 - Fix flakyness in TestGdbRemoteHostInfo

2017-03-02 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Mar 2 05:36:14 2017 New Revision: 296741 URL: http://llvm.org/viewvc/llvm-project?rev=296741&view=rev Log: Fix flakyness in TestGdbRemoteHostInfo this test was using the VPATH hack to avoid having a copy of the inferior source code. This makes the test fail if in happens

[Lldb-commits] [PATCH] D30520: Make LLDB skip server-client roundtrip for signals that don't require any actions

2017-03-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Jim's comment about putting the function in the parent class makes sense -- apart from remote stubs I guess you could also envision other ways a process class could speed up signal processing in case it know we don't care about them). Jim: do you have a idea about how t

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Pavel Labath via lldb-commits
On 2 March 2017 at 00:05, Zachary Turner via lldb-commits < lldb-commits@lists.llvm.org> wrote: > -DumpValueObjectOptions::DeclPrintingHelper helper = > -[&valobj_sp, qualify_cxx_base_classes]( > -ConstString type, ConstString var, > -const DumpValueObjectOption

[Lldb-commits] [lldb] r296738 - Fix MSVC build

2017-03-02 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Mar 2 04:35:53 2017 New Revision: 296738 URL: http://llvm.org/viewvc/llvm-project?rev=296738&view=rev Log: Fix MSVC build MSVC (at least the version I am using) does not want to implicitly capture a const bool variable. Move it into the lambda, as it is not used outside

[Lldb-commits] [PATCH] D30454: [LLDB][MIPS] Fix typo in MatchesModuleSpec()

2017-03-02 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. Attach log file F3122646: module.log https://reviews.llvm.org/D30454 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commi

[Lldb-commits] [PATCH] D30454: [LLDB][MIPS] Fix typo in MatchesModuleSpec()

2017-03-02 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. The issue was observed while parsing "vdso module" for the core file. When the DynamicLoader::LoadModuleAtAddress is called to load "vdso" module. Since "vdso" doesn't match with any of the module in the target.GetImages(), the check_alternative_file_name becomes tr