[Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 80992. zturner added a comment. Added a format provider for `FileSpec`. Style syntax is documented in this patch. Added some unit tests so you can see the output. To answer Greg's earlier question about printing c-strings, `formatv("'{0}' '{1}' '{2}'", (c

Re: [Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Zachary Turner via lldb-commits
Seems reasonable, I'll make a FileSpec formatter and update the patch On Fri, Dec 9, 2016 at 4:03 PM Greg Clayton via Phabricator < revi...@reviews.llvm.org> wrote: > clayborg requested changes to this revision. > clayborg added a comment. > This revision now requires changes to proceed. > > I wou

[Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. I would like to see the FileSpec having its formatv stuff done for this since it will start a whole slew of people wanting to use it and we should have an example of a class that

[Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. It is nice to be able to use StringRef and std::string as is. I was wondering if you have: StringRef null; StringRef empty(""); StringRef hello("hello") What does this show: formatv("{0} {1} {2}", null, empty, hello); I would hope for: (null) "" "hello" Whe

[Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. zturner added reviewers: labath, clayborg, jingham. zturner added a subscriber: lldb-commits. We have various functions like `Stream::Printf()`, and `Error::SetErrorStringWithFormat()`, `Log::Printf()`, and various others. I added functions that delegate to `forma

[Lldb-commits] [PATCH] D27088: [LLDB][MIPS] Fix TestLldbGdbServer failure for MIPS

2016-12-09 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. If we can parse the register info that was retrieved via the GDB remote packets and emulate the DWARF expression that would allow us to do things correctly in the test case. Anything that is agnostic will work and we probably have all the info we need. We will need to

[Lldb-commits] [lldb] r289233 - Fix i386 being able to show member variables correctly by not returning empty objective C types from the runtime.

2016-12-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Dec 9 11:54:59 2016 New Revision: 289233 URL: http://llvm.org/viewvc/llvm-project?rev=289233&view=rev Log: Fix i386 being able to show member variables correctly by not returning empty objective C types from the runtime. We don't parse ObjC v1 types from the runtime m

[Lldb-commits] [lldb] r289223 - Fix buildbots that are failing due to this test by adding all expected fails that TestMultipleDebuggers.py has.

2016-12-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Dec 9 10:25:13 2016 New Revision: 289223 URL: http://llvm.org/viewvc/llvm-project?rev=289223&view=rev Log: Fix buildbots that are failing due to this test by adding all expected fails that TestMultipleDebuggers.py has. Modified: lldb/trunk/packages/Python/lldbsu

[Lldb-commits] [lldb] r289222 - Rename multiple target test so it is unique.

2016-12-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Dec 9 10:22:10 2016 New Revision: 289222 URL: http://llvm.org/viewvc/llvm-project?rev=289222&view=rev Log: Rename multiple target test so it is unique. Modified: lldb/trunk/packages/Python/lldbsuite/test/api/multiple-targets/TestMultipleTargets.py Modified: lld

[Lldb-commits] [PATCH] D27088: [LLDB][MIPS] Fix TestLldbGdbServer failure for MIPS

2016-12-09 Thread Nitesh Jain via Phabricator via lldb-commits
nitesh.jain added a comment. Hi Greg, The patch https://reviews.llvm.org/D20357 evaluated the DwarfExpression and update the floating point register size. So should we implement SBRegisterContext and SBArchSpec to evaluate dwarf expression and update the floating point register size according

[Lldb-commits] [lldb] r289211 - [LLDB][MIPS] Fix TestWatchpointIter failure

2016-12-09 Thread Nitesh Jain via lldb-commits
Author: nitesh.jain Date: Fri Dec 9 07:54:47 2016 New Revision: 289211 URL: http://llvm.org/viewvc/llvm-project?rev=289211&view=rev Log: [LLDB][MIPS] Fix TestWatchpointIter failure Reviewers: jingham Subscribers: jaydeep, bhushan, slthakur, lldb-commits Differential Revision: https://reviews.l

[Lldb-commits] [PATCH] D27124: [LLDB][MIPS] Fix TestWatchpointIter failure

2016-12-09 Thread Nitesh Jain via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289211: [LLDB][MIPS] Fix TestWatchpointIter failure (authored by nitesh.jain). Changed prior to commit: https://reviews.llvm.org/D27124?vs=80414&id=80895#toc Repository: rL LLVM https://reviews.llvm

[Lldb-commits] [PATCH] D27085: [LLDB][MIPS] Fix TestMultipleHits for MIPS

2016-12-09 Thread Nitesh Jain via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289210: [LLDB][MIPS] Fix TestMultipleHits for MIPS (authored by nitesh.jain). Changed prior to commit: https://reviews.llvm.org/D27085?vs=79038&id=80893#toc Repository: rL LLVM https://reviews.llvm.

[Lldb-commits] [lldb] r289210 - [LLDB][MIPS] Fix TestMultipleHits for MIPS

2016-12-09 Thread Nitesh Jain via lldb-commits
Author: nitesh.jain Date: Fri Dec 9 07:44:15 2016 New Revision: 289210 URL: http://llvm.org/viewvc/llvm-project?rev=289210&view=rev Log: [LLDB][MIPS] Fix TestMultipleHits for MIPS Reviewers: clayborg, labath, zturner Subscribers: jaydeep, bhushan, slthakur, lldb-commits Differential Revision:

[Lldb-commits] [PATCH] D26542: [LLDB][MIPS] Fix some test case failures due to "elf_abi" field of qprocessInfo packet

2016-12-09 Thread Nitesh Jain via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL289209: [LLDB][MIPS] Fix some test case failures due to elf_abi field of qprocessInfo… (authored by nitesh.jain). Changed prior to commit: https://reviews.llvm.org/D26542?vs=77603&id=80892#toc Reposito

[Lldb-commits] [lldb] r289209 - [LLDB][MIPS] Fix some test case failures due to elf_abi field of qprocessInfo packet.

2016-12-09 Thread Nitesh Jain via lldb-commits
Author: nitesh.jain Date: Fri Dec 9 07:37:14 2016 New Revision: 289209 URL: http://llvm.org/viewvc/llvm-project?rev=289209&view=rev Log: [LLDB][MIPS] Fix some test case failures due to elf_abi field of qprocessInfo packet. Reviewers: jaydeep, bhushan, clayborg Subscribers: slthakur, lldb-commi

[Lldb-commits] [PATCH] D27459: Straw-man proposal for new logging syntax

2016-12-09 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I'll respond to your comments on the lldb-dev thread. Comment at: include/lldb/Core/Log.h:218-219 + << llvm::formatv( \ + "{0,-60}: ",

[Lldb-commits] [PATCH] D27459: Straw-man proposal for new logging syntax

2016-12-09 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda added a comment. A couple of thoughts / two cents. I don't mind the current if (log) { ... } style of logging, even with the PRIx64's and having to do filepath.GetPath().c_str() and all that. I like being able to do extra work in a if (log) block of code -- create a SymbolContext

[Lldb-commits] [lldb] r289199 - Fix TestMultipleTargets for on x86_64 architectures

2016-12-09 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Dec 9 04:05:07 2016 New Revision: 289199 URL: http://llvm.org/viewvc/llvm-project?rev=289199&view=rev Log: Fix TestMultipleTargets for on x86_64 architectures This test links against liblldb, so it can only run when the target arch is the same arch as liblldb. We already