Re: [Lldb-commits] [PATCH] D24124: [LLDB][MIPS] Fix register read/write for 32 bit big endian system

2016-09-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. Much better. https://reviews.llvm.org/D24124 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D20835: Mark the current column when displaying the context of the current breakpoint on the terminal.

2016-09-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks good. https://reviews.llvm.org/D20835 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [lldb] r282090 - Fix failing regex tests.

2016-09-21 Thread Greg Clayton via lldb-commits
This it the perfect example of why not to use a StringRef since the string needs to be null terminated. Why did we change this? Now even if you call this function: RegularExpression r(...); r.Execute("...", ...) You will need to duplicate the string on the heap just to exec

Re: [Lldb-commits] [lldb] r282079 - Make lldb::Regex use StringRef.

2016-09-21 Thread Greg Clayton via lldb-commits
Please submit a change requests when doing these kinds of things and let people comment on the changes before committing such things. We deleted functions that were correctly using "const char *" like: bool Execute(llvm::StringRef string, Match *match = nullptr) const; bool Execute(const cha

Re: [Lldb-commits] [lldb] r282090 - Fix failing regex tests.

2016-09-21 Thread Greg Clayton via lldb-commits
> On Sep 21, 2016, at 4:43 PM, Zachary Turner wrote: > > You need to duplicate something on the heap once when you execute the regex. > And in turn you save tens or hundreds or copies on the way there because of > inefficient string usage. Where? please show this. I see the following call

Re: [Lldb-commits] [lldb] r282090 - Fix failing regex tests.

2016-09-21 Thread Greg Clayton via lldb-commits
do it efficiently. Greg > On Sep 21, 2016, at 5:13 PM, Greg Clayton via lldb-commits > wrote: > >> >> On Sep 21, 2016, at 4:43 PM, Zachary Turner wrote: >> >> You need to duplicate something on the heap once when you execute the regex. >> And in turn yo

Re: [Lldb-commits] [lldb] r282090 - Fix failing regex tests.

2016-09-21 Thread Greg Clayton via lldb-commits
ith that. > We can just cut over to using llvm::Regex where it uses the start and end > pointer. I would just like to avoid making string copies for no reason. I > don't have anything against using StringRef as long as we do it efficiently. > > Greg > > >> On Sep

Re: [Lldb-commits] [lldb] r282079 - Make lldb::Regex use StringRef.

2016-09-21 Thread Greg Clayton via lldb-commits
> On Sep 21, 2016, at 5:14 PM, Zachary Turner wrote: > > > > On Wed, Sep 21, 2016 at 5:00 PM Greg Clayton wrote: > Please submit a change requests when doing these kinds of things and let > people comment on the changes before committing such things. > > We deleted functions that were corre

Re: [Lldb-commits] [lldb] r282090 - Fix failing regex tests.

2016-09-21 Thread Greg Clayton via lldb-commits
> To be clear: if we can make StringRef work efficiently, I am fine with > > that. We can just cut over to using llvm::Regex where it uses the start and > > end pointer. I would just like to avoid making string copies for no reason. > > I don't have anything against

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We could avoid many of the copies in the printf statements by by doing something like this in a common header file: #define LLVM_STRINGREF_PRINTF_FORMAT "%*s" #define LLVM_S

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. I am not saying we have to do the printf changes, I was just seeing what you think. I would like to see the StringRef variants of functions put in as part of this. https://reviews.llvm.org/D24847 ___ lldb-commits mailing

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. Yeah, don't do any calls that don't need to be converted. Just the ones you need. Should just add 2 StringRef variant functions. Don't feel the need to completely fix OptionValueString or OptionValueUInt64. We can do the full change over in a future CL. See if you can

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. no printf fixes are fine. I don't mind if error cases have str().c_str() so much. https://reviews.llvm.org/D24847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lld

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. You can still leave the "const char *" versions in there for now until you get to the cleanup. No spiral if you do that. https://reviews.llvm.org/D24847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://list

Re: [Lldb-commits] [PATCH] D24847: Make OptionGroup::SetValue take a StringRef

2016-09-23 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D24847 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

Re: [Lldb-commits] [PATCH] D24936: Make FileSpec use StringRef.

2016-09-26 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Watch the buildbots for failures, but this looks fine. We aren't changing how the strings for filename and directory are stored, just using StringRef to deliver the arguments. https://re

Re: [Lldb-commits] [PATCH] D24952: Remove Args::m_argv

2016-09-27 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Interpreter/Args.cpp:264-265 @@ -315,3 +263,4 @@ size_t Args::GetArgumentCount() const { - if (m_argv.empty()) + if (

Re: [Lldb-commits] [PATCH] D24603: [LLDB][MIPS] fix Floating point register read/write for big endian

2016-09-27 Thread Greg Clayton via lldb-commits
clayborg added a comment. Please comment why you are manually bit twiddling due to the size of the register that can change. We don't want anyone else copying this kind of code. Another solution would be to update the offset of the register when you change the byte size so none of this would ne

Re: [Lldb-commits] [PATCH] D24952: Remove Args::m_argv

2016-09-27 Thread Greg Clayton via lldb-commits
clayborg added a comment. Ok, so just add the boolean arg to Args::GetArgumentVector and we are good to go. Comment at: source/Interpreter/Args.cpp:270-272 @@ -321,5 +269,5 @@ const char *Args::GetArgumentAtIndex(size_t idx) const { - if (idx < m_argv.size()) -return m_ar

Re: [Lldb-commits] [PATCH] D25021: [LLDB][MIPS] Fix qProcessInfo to return correct pointer size based on ELF ABI

2016-09-28 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We need to send each flag individually. See inlined comments. Comment at: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:1887 @@ -1885,1 +18

[Lldb-commits] [lldb] r282632 - Add the ability for the task port to change when a process execs.

2016-09-28 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Sep 28 16:07:34 2016 New Revision: 282632 URL: http://llvm.org/viewvc/llvm-project?rev=282632&view=rev Log: Add the ability for the task port to change when a process execs. Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/exec/TestExec.py l

Re: [Lldb-commits] [PATCH] D15437: Read macro info from .debug_macro section and use it for expression evaluation.

2015-12-11 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Can we change DebugMacroEntry to contain a std::unique_ptr instead of a shared pointer? This would save us one full pointer in each DebugMacroEntry. That is the only change I wo

Re: [Lldb-commits] [PATCH] D15437: Read macro info from .debug_macro section and use it for expression evaluation.

2015-12-11 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. In http://reviews.llvm.org/D15437#308839, @clayborg wrote: > Can we change DebugMacroEntry to contain a std::unique_ptr > instead of a shared pointer? This would save us one full pointer i

Re: [Lldb-commits] [PATCH] D15437: Read macro info from .debug_macro section and use it for expression evaluation.

2015-12-11 Thread Greg Clayton via lldb-commits
clayborg added a comment. One area of concern is if you are not tracking file, how can you get the right defines for a given source file line? If you have: main.c: #include #define FOO printf int main () { return 0; // Stop here and run: FOO("hello world\n") } #undef FO

Re: [Lldb-commits] [PATCH] D15527: Add ability to override JIT expr compiler options.

2015-12-15 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:85-97 @@ -83,1 +84,15 @@ +namespace { +void debugStringV

Re: [Lldb-commits] [lldb] r255697 - First pass at LLDBRPC.framework

2015-12-15 Thread Greg Clayton via lldb-commits
This looks like something that should be out of tree > > On Tue, Dec 15, 2015 at 3:06 PM Greg Clayton via lldb-commits > wrote: > Added: > lldb/trunk/build/Debug/LLDB.framework/Versions/A/Resources/Python/lldb/macosx/crashlog.py > URL: > http://llvm.org/viewvc/ll

[Lldb-commits] [lldb] r255699 - Removing files that I didn't mean to checkin.

2015-12-15 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Dec 15 17:11:24 2015 New Revision: 255699 URL: http://llvm.org/viewvc/llvm-project?rev=255699&view=rev Log: Removing files that I didn't mean to checkin. Removed: lldb/trunk/build/ ___ lldb-commits mailing list lldb-comm

[Lldb-commits] [lldb] r255863 - Don't strip types of their typedefs when getting function types.

2015-12-16 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Dec 16 18:58:41 2015 New Revision: 255863 URL: http://llvm.org/viewvc/llvm-project?rev=255863&view=rev Log: Don't strip types of their typedefs when getting function types. Modified: lldb/trunk/source/Symbol/ClangASTContext.cpp Modified: lldb/trunk/source/Symbol/Cl

[Lldb-commits] [lldb] r255864 - Don't demangle a name when Mangled::GetName() is called with ePreferMangled. Only demangle if this isn't the the value for the "preference" argument indicating the user

2015-12-16 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Dec 16 19:00:50 2015 New Revision: 255864 URL: http://llvm.org/viewvc/llvm-project?rev=255864&view=rev Log: Don't demangle a name when Mangled::GetName() is called with ePreferMangled. Only demangle if this isn't the the value for the "preference" argument indicating t

Re: [Lldb-commits] [PATCH] D15593: Enhance "target modules dump line " and use it to fix MI's -symbol-list-lines.

2015-12-17 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Man those options are complex. I really would like to see something more simple: "--raw" dumps the line entries as you have mentioned "--no-inlines" would omit any inline entries

Re: [Lldb-commits] [PATCH] D15593: Enhance "target modules dump line " and use it to fix MI's -symbol-list-lines.

2015-12-17 Thread Greg Clayton via lldb-commits
clayborg added a comment. Ok, so I talked with Jim on this and this is what we came up with. I would like to see no changes made to the "target modules dump line-table" command. It is dumping complete line tables. This command is not for "find any line entries that match this file anywhere incl

Re: [Lldb-commits] [PATCH] D15593: Enhance "target modules dump line " and use it to fix MI's -symbol-list-lines.

2015-12-17 Thread Greg Clayton via lldb-commits
clayborg added a comment. I do want to apologize to Dawn and Jim for not having chimed in earlier and causing Dawn some extra work. Repository: rL LLVM http://reviews.llvm.org/D15593 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http

Re: [Lldb-commits] [PATCH] D15593: Enhance "target modules dump line " and use it to fix MI's -symbol-list-lines.

2015-12-17 Thread Greg Clayton via lldb-commits
clayborg added a comment. Dawn, if you don't understand what I asked you to do, let me know and I can go and do the "source info" command for you, then you can modify this patch to just use the command I added. But it should be simple to just revert and changes to the original line table dumpin

Re: [Lldb-commits] [PATCH] D15593: Enhance "target modules dump line " and use it to fix MI's -symbol-list-lines.

2015-12-17 Thread Greg Clayton via lldb-commits
clayborg added a comment. Note that you won't need any of the options that you had added to the other command becuase the "source info" command will do what you wanted in the first place: find all line entries where a file and optional line is mentioned in any line tables. Repository: rL LL

Re: [Lldb-commits] [PATCH] D15527: Add ability to override JIT expr compiler options.

2016-01-04 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Sean should OK this as well. http://reviews.llvm.org/D15527 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://list

Re: [Lldb-commits] [PATCH] D15877: Fix for undefined behavior while updating PC value on arm-linux

2016-01-04 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D15877 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D15593: Add support for "source info" and use it to fix MI's -symbol-list-lines.

2016-01-05 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. So I am going to let this through because you have done all we asked and I really like the "source info" command! But in the future when adding things for MI, please add an API in the lldb::SB layer to do what you need. Text scraping is

Re: [Lldb-commits] [PATCH] D15886: [LLDB][MIPS32]Merge emulation of similar instructions

2016-01-05 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine. Repository: rL LLVM http://reviews.llvm.org/D15886 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D15893: Adds expectedFailureArmLinux test decorator

2016-01-05 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Seems like it would be better to mimic how @expectedFailureAndroid works. See inlined comments. Comment at: packages/Python/lldbsuite/test/functionalities/watc

Re: [Lldb-commits] [PATCH] D12809: Better scheme to lookup alternate mangled name when looking up function address.

2016-01-06 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I looked at this before, and resigned to let Sean Callanan comment on the fix since this is in his area of expertise: the expression parser. http://reviews.llvm.org/D12809 _

Re: [Lldb-commits] [PATCH] D15972: Make sure we don't send qModuleInfo packets unnecessarily.

2016-01-07 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D15972 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D15979: Fix dwarf sequence insertions

2016-01-07 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D15979 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16046: [LLDB][MIPS] Handle PIC calling convention for MIPS64

2016-01-11 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Repository: rL LLVM http://reviews.llvm.org/D16046 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D16051: [LLDB][MIPS] Merge emulation of similar instructions for MIPS64

2016-01-11 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Repository: rL LLVM http://reviews.llvm.org/D16051 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D16049: [LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS

2016-01-11 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Actually, can you add a test? Repository: rL LLVM http://reviews.llvm.org/D16049 ___ lldb-commits mailing list lldb-commits@list

Re: [Lldb-commits] [PATCH] D15893: Adds expectedFailureArmLinux test decorator

2016-01-11 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D15893 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16186: Unconditionally accept symbol sizes from .dynsym

2016-01-14 Thread Greg Clayton via lldb-commits
clayborg added a comment. So does this mean any symbols whose byte size is zero will always have a byte size of zero when parsed from a .dynsym section? What kinds of symbols have a byte size of zero in the .dynsym? Seems like function symbols should always have a valid byte size no? Why is the

Re: [Lldb-commits] [PATCH] D16049: [LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS

2016-01-14 Thread Greg Clayton via lldb-commits
clayborg added a comment. We could just teach the standard decorators to detect the type of the "archs" variable and do the right thing based off of the type. In the handler code you could have: retype = type(re.compile('hello, world')) if isinstance(archs, list): # Do what we do now

Re: [Lldb-commits] [PATCH] D16186: Unconditionally accept symbol sizes from .dynsym

2016-01-14 Thread Greg Clayton via lldb-commits
clayborg added a comment. It would be interesting to see if there are any relocations or any other hints to help make correct function bounds from a stripped (.dynsym only) ELF file. In MachO we have a LC_FUNCTION_STARTS load command (kind of like an ELF note) that contains all start addresses

Re: [Lldb-commits] [PATCH] D16186: Unconditionally accept symbol sizes from .dynsym

2016-01-14 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. In http://reviews.llvm.org/D16186#327081, @tberghammer wrote: > I looked through the sections we have in a striped elf file and non of them > have any information what would tell

Re: [Lldb-commits] [PATCH] D16186: Unconditionally accept symbol sizes from elf

2016-01-15 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Symbol/Symtab.cpp:974-978 @@ -973,5 +973,7 @@ Symbol &symbol = m_symbols[entry.data]; - -

Re: [Lldb-commits] [PATCH] D16186: Unconditionally accept symbol sizes from elf

2016-01-15 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Never mind, sorry, missed that this was in Symbol.cpp, I was still thinking of the ObjectFileELF... http://reviews.llvm.org/D16186 ___ lldb-

Re: [Lldb-commits] [PATCH] D16049: [LLDB][MIPS] A small fix in GetBreakableLoadAddress() for MIPS

2016-01-19 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Just factor the cool archs stuff into a function that others can use and this is good to go. Comment at: packages/Python/lldbsuite/test/lldbtest.py:1040-1049 @@

Re: [Lldb-commits] [PATCH] D16415: Call CalculateSymbolSizes in ObjectFilePECOFF::GetSymtab

2016-01-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. I just added PECOFF so I could make sure I had 3 clients for the ObjectFile class when I was developing it and I already have the PECOFF support in the previous tool I had written, so this

[Lldb-commits] [lldb] r258443 - Always try to read DW_TAG_typedef types from DWO files first if we can.

2016-01-21 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Jan 21 16:26:13 2016 New Revision: 258443 URL: http://llvm.org/viewvc/llvm-project?rev=258443&view=rev Log: Always try to read DW_TAG_typedef types from DWO files first if we can. A lot of C code uses code like: typedef struct { int a; } FooType; This c

Re: [Lldb-commits] [PATCH] D16508: NetBSD: Define initial RegisterContextNetBSD_x86_64

2016-01-25 Thread Greg Clayton via lldb-commits
clayborg added a comment. This kind of stuff: struct UserArea { GPR gpr; FPR fpr; DBG dbg; }; Was done on MacOSX systems because we have thread_get_state() and thread_set_state() that take a flavor (enumeration) that specifies which registers we should read

Re: [Lldb-commits] [PATCH] D16563: Set symbol types for function symbols loaded from PE/COFF

2016-01-25 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine. http://reviews.llvm.org/D16563 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16627: Add support to detect arm hard float ABI based binaries for ABISysV_arm

2016-01-27 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Change over to use a "Thread &" as argument to "bool ABISysV_arm::IsArmHardFloat(Thread *)" and this is good to go. http://reviews.llvm.org/D16627 ___

Re: [Lldb-commits] [PATCH] D16627: Add support to detect arm hard float ABI based binaries for ABISysV_arm

2016-01-27 Thread Greg Clayton via lldb-commits
clayborg added a comment. And fix all of the tberghammer's comments as well. http://reviews.llvm.org/D16627 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r259003 - A while back in revison 244716 we added support for getting the host OS version info from debugserver. We added keys to "qHostInfo" that were "osmajor", "osminor" and "

2016-01-27 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Jan 27 18:16:11 2016 New Revision: 259003 URL: http://llvm.org/viewvc/llvm-project?rev=259003&view=rev Log: A while back in revison 244716 we added support for getting the host OS version info from debugserver. We added keys to "qHostInfo" that were "osmajor", "osminor

Re: [Lldb-commits] [PATCH] D16508: NetBSD: Define initial RegisterContextNetBSD_x86_64

2016-01-28 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D16508#338046, @krytarowski wrote: > 1. I was trying to comment out `DBG` registers (as unsupported by NetBSD) > from `RegisterInfos_x86_64.h` with the following patch: > > But I get this assert being triggered: > > In file included from >

Re: [Lldb-commits] [PATCH] D16720: Set correct ThreadStopInfo in case of trace event

2016-01-29 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D16720 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16722: Remove Timer::Initialize routine

2016-01-29 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine. Zach: I don't believe that Mac supports the thread local keywords correctly yet, but I can check on that. We would need to get the OK from multiple people (MacOSX, Windows, Fre

Re: [Lldb-commits] [PATCH] D16746: Use an artifical namespace so that member vars do not hide local vars.

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good to me, but Sean should be the one to OK this for real. http://reviews.llvm.org/D16746 ___ lldb-commits mailing list lldb-commits@l

Re: [Lldb-commits] [PATCH] D16745: Fix a thinko in StackFrame::GetInScopeVariableList.

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D16745 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16508: NetBSD: Define initial RegisterContextNetBSD_x86_64

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Repository: rL LLVM http://reviews.llvm.org/D16508 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D16769: [NFC] Cleanup RangeMap.h

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine. A few things I don't like, but I can live with: - Making constructors appear all on one line does save space, but it means you can't debug very well as stepping into these cons

Re: [Lldb-commits] [PATCH] D16772: Fix single stepping over the IT instruction

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg added a comment. Looks good. A related comment about IT instructions. You need to be careful when software single stepping through instructions that are in the middle of an ITSTATE block. You can NOT use a 16 bit instruction that isn't a BKPT otherwise you change your instructions. Ar

Re: [Lldb-commits] [PATCH] D16766: [RenderScript] Use LLVM DWARF language enum

2016-02-01 Thread Greg Clayton via lldb-commits
clayborg added a comment. See inlined comments. Comment at: source/Target/Language.cpp:272 @@ -271,2 +271,3 @@ case eLanguageTypeC11: +case eLanguageTypeExtRenderScript: return true; Why is this needed? Seems like this is incorrect.

Re: [Lldb-commits] [lldb] r257926 - Implement missing GoASTContext methods

2016-02-01 Thread Greg Clayton via lldb-commits
Sorry for the delay. This is fine. In general, feel free to accept any patches that are architecture specific for architectures that aren't x86 or ARM (MIPS, hexagon for example), and for any languages that aren't C/C++/ObjC or Swift (renderscript, go). > On Feb 1, 2016, at 1:49 PM, Hans Wenn

Re: [Lldb-commits] [PATCH] D16627: Add support to detect arm hard float ABI based binaries for ABISysV_arm

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D16627 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16772: Fix single stepping over the IT instruction

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D16772#341629, @tberghammer wrote: > In http://reviews.llvm.org/D16772#340950, @clayborg wrote: > > > Looks good. > > > > A related comment about IT instructions. You need to be careful when > > software single stepping through instructions th

Re: [Lldb-commits] [PATCH] D16769: [NFC] Cleanup RangeMap.h

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg added a comment. No need to revert anything as these classes are stable now and don't need debugging. Just something to be aware of in other cases when you make future changes. http://reviews.llvm.org/D16769 ___ lldb-commits mailing list

Re: [Lldb-commits] [PATCH] D16766: [RenderScript] Use LLVM DWARF language enum

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Yes, the fix above in ClangASTContext.cpp was what I was looking for! Looks good. Repository: rL LLVM http://reviews.llvm.org/D16766 ___

Re: [Lldb-commits] [PATCH] D16814: Fix handling of the arm IT instruction in the unwinder

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. It would be nice to not pick UINT32_MAX for the unconditional condition and let each emulator picks it desired values. See inlined comments. Let me know what you think. ===

Re: [Lldb-commits] [PATCH] D16814: Fix handling of the arm IT instruction in the unwinder

2016-02-02 Thread Greg Clayton via lldb-commits
clayborg added a comment. I like that llvm::Optional idea! http://reviews.llvm.org/D16814 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D16853: Use BKPT instead of UDF for arm/thumb breakpoints

2016-02-03 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. There are immediate values you can play around with inside the BKPT instruction of both ARM and Thumb versions so that the two least significant bytes are the same: static const

Re: [Lldb-commits] [PATCH] D16840: [LLDB][MIPS] Generalise MIPS arch names

2016-02-03 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. I believe we recently switched "archs" so that we auto detect the type so you could use a regular expression. See above inlined comments. Good to go unless you want to adopt any of my inlined suggestions. Comment at:

Re: [Lldb-commits] [PATCH] D16814: Fix handling of the arm IT instruction in the unwinder

2016-02-03 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Yes, it was probably too complex. My main objection was the use of the UINT32_MAX as a magic number. Your UnconditionalCondition solution clears this up. Comme

Re: [Lldb-commits] [PATCH] D16916: [LLDB][MIPS] Fix TestExpressionInSyscall.py for MIPS

2016-02-05 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Sounds reasonable. Repository: rL LLVM http://reviews.llvm.org/D16916 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lis

Re: [Lldb-commits] [PATCH] D16975: Handle floating-point type homogeneous aggregate return values in ABISysV_arm

2016-02-08 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I am fine as long as tberghammer is happy. http://reviews.llvm.org/D16975 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.l

Re: [Lldb-commits] [PATCH] D16996: Improve the handling of missing elf symtab and missing symbol sizes

2016-02-08 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Make sure we use a consistent naming scheme for symbols that don't have names between all ObjectFile subclasses. Comment at: source/Plugins/ObjectFile/ELF/Objec

Re: [Lldb-commits] [PATCH] D17022: [LLDB][MIPS] Provide CPU string to compiler for appropriate code generation for MIPS

2016-02-09 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We should use local variable and avoid calling accessors many times. See inlined comments. I know the code was like this before, but we should fix these things as we go. ==

Re: [Lldb-commits] [PATCH] D16853: Use BKPT instead of UDF for arm/thumb breakpoints

2016-02-09 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. Most JTAG probes actually vend their own GDB server these days. If so, we will used the Z packets in order to set breakpoints, so we will be isolated from these issues. If we a

Re: [Lldb-commits] [PATCH] D16814: Fix handling of the arm IT instruction in the unwinder

2016-02-09 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D16814 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D16996: Improve the handling of missing elf symtab and missing symbol sizes

2016-02-09 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D16996 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] r260282 - Don't enable -flimit-debug-info by default for the LLDB Xcode builds. This was put in back in 2011 when -flimit-debug-info did a lot less than it does now. With llvm-ds

2016-02-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Feb 9 15:18:44 2016 New Revision: 260282 URL: http://llvm.org/viewvc/llvm-project?rev=260282&view=rev Log: Don't enable -flimit-debug-info by default for the LLDB Xcode builds. This was put in back in 2011 when -flimit-debug-info did a lot less than it does now. With

[Lldb-commits] [lldb] r260284 - If we set the DYLD_INSERT_LIBRARIES environment variable when launching debugserver, for use with /usr/lib/libgmalloc.dylib, then make sure we don't pass this environme

2016-02-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Feb 9 15:20:17 2016 New Revision: 260284 URL: http://llvm.org/viewvc/llvm-project?rev=260284&view=rev Log: If we set the DYLD_INSERT_LIBRARIES environment variable when launching debugserver, for use with /usr/lib/libgmalloc.dylib, then make sure we don't pass this en

[Lldb-commits] [lldb] r260299 - Don't complete a class type just to test if it is a class. Code in CompilerType and in clang::QualType knows how to complete a type if it needs to.

2016-02-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Feb 9 16:09:26 2016 New Revision: 260299 URL: http://llvm.org/viewvc/llvm-project?rev=260299&view=rev Log: Don't complete a class type just to test if it is a class. Code in CompilerType and in clang::QualType knows how to complete a type if it needs to. Modified:

[Lldb-commits] [lldb] r260308 - Fixed many issues that were causing differing type definition issues to show up when parsing expressions.

2016-02-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Feb 9 16:36:24 2016 New Revision: 260308 URL: http://llvm.org/viewvc/llvm-project?rev=260308&view=rev Log: Fixed many issues that were causing differing type definition issues to show up when parsing expressions. 1) Turns out we weren't correctly uniquing types for C+

Re: [Lldb-commits] [lldb] r260308 - Fixed many issues that were causing differing type definition issues to show up when parsing expressions.

2016-02-09 Thread Greg Clayton via lldb-commits
es to be what is slowing down expressions, I will need to do something about it as it is affecting our expression performance. So stay tuned, I'll follow up with a test soon. > On Feb 9, 2016, at 2:48 PM, Zachary Turner wrote: > > Any tests for this? > > On Tue, Fe

[Lldb-commits] [lldb] r260322 - Added code that was commented out during testing to stops template member functions from being added to class definitions (see revision 260308 for details).

2016-02-09 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Feb 9 17:25:54 2016 New Revision: 260322 URL: http://llvm.org/viewvc/llvm-project?rev=260322&view=rev Log: Added code that was commented out during testing to stops template member functions from being added to class definitions (see revision 260308 for details).

Re: [Lldb-commits] [PATCH] D17022: [LLDB][MIPS] Provide CPU string to compiler for appropriate code generation for MIPS

2016-02-10 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. As Zach said, you could add a function to ArchSpec like: std::string ArchSpec::GetClangTargetCPU(); and move your code from the large switch statement into there. It can return an empty string for any architecture that d

[Lldb-commits] [lldb] r260434 - Now that SymbolFileDWARF supports having types in completely separate .pcm file with "-fmodules -gmodules", each SymbolFileDWARF can reference module DWARF info by look

2016-02-10 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 10 15:28:13 2016 New Revision: 260434 URL: http://llvm.org/viewvc/llvm-project?rev=260434&view=rev Log: Now that SymbolFileDWARF supports having types in completely separate .pcm file with "-fmodules -gmodules", each SymbolFileDWARF can reference module DWARF info

Re: [Lldb-commits] [PATCH] D17022: [LLDB][MIPS] Provide CPU string to compiler for appropriate code generation for MIPS

2016-02-11 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Don't assert in ArchSpec::GetClangTargetCPU () and always call this function. See inlined comments. Comment at: source/Core/ArchSpec.cpp:558 @@ +557,3 @@ +

[Lldb-commits] [lldb] r260618 - Removed a bad assertion:

2016-02-11 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Feb 11 17:36:57 2016 New Revision: 260618 URL: http://llvm.org/viewvc/llvm-project?rev=260618&view=rev Log: Removed a bad assertion: assert(((SymbolFileDWARF*)m_ast.GetSymbolFile())->UserIDMatches(die.GetDIERef().GetUID()) && "Adding incorrect type to forward de

[Lldb-commits] [lldb] r260626 - Don't crash if we have a DIE that has a DW_AT_ranges attribute and yet the SymbolFileDWARF doesn't have a DebugRanges. If this happens print a nice error message to pro

2016-02-11 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Feb 11 18:07:16 2016 New Revision: 260626 URL: http://llvm.org/viewvc/llvm-project?rev=260626&view=rev Log: Don't crash if we have a DIE that has a DW_AT_ranges attribute and yet the SymbolFileDWARF doesn't have a DebugRanges. If this happens print a nice error message

Re: [Lldb-commits] [PATCH] D17273: refactor/cleanup ClangExpressionParser::Parse

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I will let Sean Callanan OK this one. http://reviews.llvm.org/D17273 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.o

Re: [Lldb-commits] [PATCH] D17295: Stack unwinding emulation: handle adjustment of FP

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks good to me. http://reviews.llvm.org/D17295 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17167: Fix bug with register values byte order in expression evaluation

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I will defer to Sean Callanan. Repository: rL LLVM http://reviews.llvm.org/D17167 ___ lldb-commits mailing list lldb-commits@lists.llvm.org htt

<    2   3   4   5   6   7   8   9   10   11   >