[Lldb-commits] [lldb] r259237 - Fixed a couple of places where we were getting the module from a

2016-01-29 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Jan 29 14:21:33 2016 New Revision: 259237 URL: http://llvm.org/viewvc/llvm-project?rev=259237&view=rev Log: Fixed a couple of places where we were getting the module from a section and using it w/o checking that it was valid. This can cause crashes - usually when tearing

[Lldb-commits] [lldb] r259234 - Fix this test for the the switch in default for IgnoreBreakpoints in SBFrame.EvaluateExpression.

2016-01-29 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Jan 29 14:09:30 2016 New Revision: 259234 URL: http://llvm.org/viewvc/llvm-project?rev=259234&view=rev Log: Fix this test for the the switch in default for IgnoreBreakpoints in SBFrame.EvaluateExpression. Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/c/s

[Lldb-commits] [lldb] r259396 - Add a note on how to create an empty target and use it to attach to

2016-02-01 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Feb 1 14:05:37 2016 New Revision: 259396 URL: http://llvm.org/viewvc/llvm-project?rev=259396&view=rev Log: Add a note on how to create an empty target and use it to attach to processes whose executables you don't know up front. Modified: lldb/trunk/scripts/interface

[Lldb-commits] [lldb] r259443 - We try to avoid static objects. These are on the error path for unsupported features

2016-02-01 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Feb 1 18:21:39 2016 New Revision: 259443 URL: http://llvm.org/viewvc/llvm-project?rev=259443&view=rev Log: We try to avoid static objects. These are on the error path for unsupported features in the socket, so just returning freshly constructed objects is fine. Modifi

Re: [Lldb-commits] [PATCH] D16825: [Windows] Set correct thread stop info when single-step lands on a breakpoint

2016-02-02 Thread Jim Ingham via lldb-commits
jingham added a comment. Yes, it has always been this way. Whenever we are about to start up the target - for whatever reason, we check to see if there is a breakpoint at the instruction where we are starting and if so we push a "ThreadPlanStepOverBreakpoint" which removes the breakpoint, puts

[Lldb-commits] [lldb] r259611 - The compiler may use "line number 0" to indicate compiler generated goo that it can't

2016-02-02 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Feb 2 18:07:23 2016 New Revision: 259611 URL: http://llvm.org/viewvc/llvm-project?rev=259611&view=rev Log: The compiler may use "line number 0" to indicate compiler generated goo that it can't track a source for. When we are pushing breakpoints and stepping past funct

Re: [Lldb-commits] [lldb] r259611 - The compiler may use "line number 0" to indicate compiler generated goo that it can't

2016-02-02 Thread Jim Ingham via lldb-commits
;t you write a test for this by stepping over a function call which has > this kind of code in it? > > On Tue, Feb 2, 2016 at 4:11 PM Jim Ingham via lldb-commits > wrote: > Author: jingham > Date: Tue Feb 2 18:07:23 2016 > New Revision: 259611 > > URL: http://llvm.org/v

[Lldb-commits] [lldb] r259684 - The SetStopInfo from a Mach Exception was setting the stop

2016-02-03 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Feb 3 13:45:31 2016 New Revision: 259684 URL: http://llvm.org/viewvc/llvm-project?rev=259684&view=rev Log: The SetStopInfo from a Mach Exception was setting the stop reason to None when we stop due to a trace, then noticed that we were on a breakpoint that was not valid

[Lldb-commits] [lldb] r259685 - Remove a stray ;.

2016-02-03 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Feb 3 13:49:03 2016 New Revision: 259685 URL: http://llvm.org/viewvc/llvm-project?rev=259685&view=rev Log: Remove a stray ;. Modified: lldb/trunk/source/Target/Thread.cpp Modified: lldb/trunk/source/Target/Thread.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/t

[Lldb-commits] [lldb] r259738 - Fix a little threading thinko in StartPrivateStateThread - don't pass stack variables

2016-02-03 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Feb 3 19:34:33 2016 New Revision: 259738 URL: http://llvm.org/viewvc/llvm-project?rev=259738&view=rev Log: Fix a little threading thinko in StartPrivateStateThread - don't pass stack variables as args to a pthread_create function... Modified: lldb/trunk/include/l

[Lldb-commits] [lldb] r259818 - Make HostThread SetName work on OS X. GetName doesn't currently work, the code that was in

2016-02-04 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 4 13:42:32 2016 New Revision: 259818 URL: http://llvm.org/viewvc/llvm-project?rev=259818&view=rev Log: Make HostThread SetName work on OS X. GetName doesn't currently work, the code that was in GetName actually got the queue name not the thread name and anyway didn

[Lldb-commits] [lldb] r259962 - Fix "thread backtrace -s": option was misparsed because of a missing break.

2016-02-05 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Feb 5 18:31:23 2016 New Revision: 259962 URL: http://llvm.org/viewvc/llvm-project?rev=259962&view=rev Log: Fix "thread backtrace -s": option was misparsed because of a missing break. Modified: lldb/trunk/source/Commands/CommandObjectThread.cpp Modified: lldb/trun

Re: [Lldb-commits] [lldb] r259962 - Fix "thread backtrace -s": option was misparsed because of a missing break.

2016-02-05 Thread Jim Ingham via lldb-commits
y Turner wrote: > > Sounds like we don't have a test for thread backtrace -s. I know I usually > argue against tests of the CLI, but only when they're used instead of tests > for the api. Seems like we should have at least one test for every option of > every command. &g

Re: [Lldb-commits] [lldb] r259964 - Fix an issue where certain CommandObjects (or Options thereof) were being created once, bound to a specific CommandInterpreter (and hence a specific Debugger), and

2016-02-05 Thread Jim Ingham via lldb-commits
> On Feb 5, 2016, at 4:43 PM, Enrico Granata via lldb-commits > wrote: > > Modified: lldb/trunk/source/Target/LanguageRuntime.cpp > URL: > http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Target/LanguageRuntime.cpp?rev=259964&r1=259963&r2=259964&view=diff > ===

Re: [Lldb-commits] [lldb] r259964 - Fix an issue where certain CommandObjects (or Options thereof) were being created once, bound to a specific CommandInterpreter (and hence a specific Debugger), and

2016-02-05 Thread Jim Ingham via lldb-commits
Is it ever right for a Command to add a subcommand from a different CommandInterpreter? If it is not (and I am pretty sure it isn't) then this check should be done in LoadSubCommand, where you would check the to-be-added command's interpreter against the added-to's interpreter. This would imm

Re: [Lldb-commits] [PATCH] D17027: [expression evaluator] Allow runtimes to execute custom LLVM ModulePasses over the generated IR at various stages after expression compilation.

2016-02-09 Thread Jim Ingham via lldb-commits
jingham added a comment. This seems fine as a generic instrumentation point. Obviously, the onus in on the passes, since they could totally ruin the expression evaluation if they don't do their job right... But I'm not sure there's any good way to make this not a sharp tool. But you should w

[Lldb-commits] [lldb] r260247 - Mention the --all-files option in the -p help string.

2016-02-09 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Feb 9 12:53:49 2016 New Revision: 260247 URL: http://llvm.org/viewvc/llvm-project?rev=260247&view=rev Log: Mention the --all-files option in the -p help string. Modified: lldb/trunk/source/Commands/CommandObjectBreakpoint.cpp Modified: lldb/trunk/source/Commands/Co

[Lldb-commits] [lldb] r260345 - Add a missing break.

2016-02-09 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Feb 9 19:33:58 2016 New Revision: 260345 URL: http://llvm.org/viewvc/llvm-project?rev=260345&view=rev Log: Add a missing break. Modified: lldb/trunk/tools/debugserver/source/debugserver.cpp Modified: lldb/trunk/tools/debugserver/source/debugserver.cpp URL: http://

[Lldb-commits] [lldb] r260352 - This is an idea to make "thread step-in --target" work for the common

2016-02-09 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Feb 9 21:25:24 2016 New Revision: 260352 URL: http://llvm.org/viewvc/llvm-project?rev=260352&view=rev Log: This is an idea to make "thread step-in --target" work for the common case where you have: 1 ->foo (bar(), 2baz(), 3lala()); 4 You are

Re: [Lldb-commits] [PATCH] D17027: [expression evaluator] Allow runtimes to execute custom LLVM ModulePasses over the generated IR at various stages after expression compilation.

2016-02-10 Thread Jim Ingham via lldb-commits
> On Feb 10, 2016, at 3:45 AM, Luke Drummond wrote: > > ldrumm added a comment. > > > > In http://reviews.llvm.org/D17027#347487, @jingham wrote: > >> This seems fine as a generic instrumentation point. Obviously, the onus in >> on the passes, since they could totally ruin the expression e

Re: [Lldb-commits] [lldb] r260352 - This is an idea to make "thread step-in --target" work for the common

2016-02-10 Thread Jim Ingham via lldb-commits
course of stepping", which as you point out we already have breakpoints for. The command will work as described even if bar calls foo because "step-in" always only steps one level deep and then either stops or immediately steps back out, so it would never notice the call foo-&

[Lldb-commits] [lldb] r260452 - Revert 260436. I pretty consistently upper-case the letter I use for the

2016-02-10 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Feb 10 16:30:20 2016 New Revision: 260452 URL: http://llvm.org/viewvc/llvm-project?rev=260452&view=rev Log: Revert 260436. I pretty consistently upper-case the letter I use for the short option as an aid to memory. Like it's w because of the W in throW. That helps me r

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-02-10 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. Unless something has changed since last I looked, the llvm path utilities are host specific. I didn't inspect the code where this is being used, but it is in Host/common, so unless there's an ifdef WINDOWS around it, I don't think yo

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-02-10 Thread Jim Ingham via lldb-commits
Unless something has changed since last I looked, the llvm path utilities are host specific. I didn't inspect the code where this is being used, but it is in Host/common, so unless there's an ifdef WINDOWS around it, I don't think you should use the llvm path utilities. Jim > On Feb 10, 2016,

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-02-10 Thread Jim Ingham via lldb-commits
My bad, that sees to be what it does. Jim > On Feb 10, 2016, at 4:59 PM, Zachary Turner wrote: > > zturner added a comment. > > In http://reviews.llvm.org/D17107#349421, @jingham wrote: > >> Unless something has changed since last I looked, the llvm path utilities >> are host specific. I di

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-02-10 Thread Jim Ingham via lldb-commits
jingham added a comment. My bad, that sees to be what it does. Jim Repository: rL LLVM http://reviews.llvm.org/D17107 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r260624 - When calling TypeSystemMap::Clear, objects being destroyed in the process of

2016-02-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 11 18:03:19 2016 New Revision: 260624 URL: http://llvm.org/viewvc/llvm-project?rev=260624&view=rev Log: When calling TypeSystemMap::Clear, objects being destroyed in the process of clearing the map ended up calling back into the TypeSystemMap to do lookups. Not a g

[Lldb-commits] [lldb] r260772 - Adding an SBThread::StepInto that takes an end-line, also moved the code that figures

2016-02-12 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Feb 12 18:31:47 2016 New Revision: 260772 URL: http://llvm.org/viewvc/llvm-project?rev=260772&view=rev Log: Adding an SBThread::StepInto that takes an end-line, also moved the code that figures out the address range for the step to SymbolContext. Modified: lldb/trun

[Lldb-commits] [lldb] r260909 - Refinement of r260624. It is possible somebody might try to add to the map

2016-02-15 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Feb 15 14:04:15 2016 New Revision: 260909 URL: http://llvm.org/viewvc/llvm-project?rev=260909&view=rev Log: Refinement of r260624. It is possible somebody might try to add to the map while we are finalizing its elements. Prevent that. Modified: lldb/trunk/include

Re: [Lldb-commits] [PATCH] D17274: improve readability and performance of ClangExpressionParser::FindFunctionInModule

2016-02-15 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. Other than that is looks fine. Comment at: source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp:559-560 @@ -558,5 +558,4 @@ -static bool FindFunctionInModule (ConstString &mangled_name, -

[Lldb-commits] [lldb] r261183 - Add usage instructions for TypeSystemMap::AddToMap.

2016-02-17 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Feb 17 19:28:22 2016 New Revision: 261183 URL: http://llvm.org/viewvc/llvm-project?rev=261183&view=rev Log: Add usage instructions for TypeSystemMap::AddToMap. Modified: lldb/trunk/include/lldb/Symbol/TypeSystem.h Modified: lldb/trunk/include/lldb/Symbol/TypeSystem.

[Lldb-commits] [lldb] r261279 - Make sure code that is in the middle of figuring out the correct architecture

2016-02-18 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 18 17:58:45 2016 New Revision: 261279 URL: http://llvm.org/viewvc/llvm-project?rev=261279&view=rev Log: Make sure code that is in the middle of figuring out the correct architecture on attach uses the architecture it has figured out, rather than the Target's architect

Re: [Lldb-commits] [lldb] r261356 - Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in some files in source/Commands; other minor fixes.

2016-02-19 Thread Jim Ingham via lldb-commits
Please don't make this sort of change. With the code as originally written, I can set a breakpoint on the returns "true" or "false" case separately, and stop there if I am doing that experiment, whereas your change makes that impossible. Neither one is particularly harder to read than the othe

Re: [Lldb-commits] [lldb] r261593 - Fix Clang-tidy modernize-use-nullptr and modernize-use-default warnings in source/Commands/CommandObjectCommands.cpp; other minor fixes.

2016-02-23 Thread Jim Ingham via lldb-commits
+1 We put the header file first immediately after the header comment in the .cpp file. The reason is that if you put the .cpp file's associated .h file in the project include headers section, then it would be easy to accidentally put another "project include" in front of the associated one (f

Re: [Lldb-commits] [PATCH] D17535: [LLDB][MIPS] Single step atomic sequences

2016-02-23 Thread Jim Ingham via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. IIUC, what you are doing here is when lldb-server gets a "step instruction" request that would step into one of these atomic regions, it sets a bunch of breakpoints on it's end (no

Re: [Lldb-commits] [PATCH] D17535: [LLDB][MIPS] Single step atomic sequences

2016-02-24 Thread Jim Ingham via lldb-commits
Yes, exactly. Jim > On Feb 24, 2016, at 4:11 AM, Tamas Berghammer wrote: > > tberghammer added a comment. > > In http://reviews.llvm.org/D17535#360519, @bhushan wrote: > >> In MIPS, we can not put a breakpoint in middle of an atomic sequence. >> If we do so (and that breakpoint is hit) then c

Re: [Lldb-commits] [PATCH] D17535: [LLDB][MIPS] Single step atomic sequences

2016-02-24 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. Yes, exactly. Jim Repository: rL LLVM http://reviews.llvm.org/D17535 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-comm

[Lldb-commits] [lldb] r261953 - Add the "block" keyword to "thread step-in -e", and an alias that uses it: "sif " - i.e. step-into-function

2016-02-25 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 25 19:37:30 2016 New Revision: 261953 URL: http://llvm.org/viewvc/llvm-project?rev=261953&view=rev Log: Add the "block" keyword to "thread step-in -e", and an alias that uses it: "sif " - i.e. step-into-function to allow you to step through a complex calling sequence

Re: [Lldb-commits] [lldb] r261969 - Clear alias argument vector for 'p' alias.

2016-02-26 Thread Jim Ingham via lldb-commits
Ah, thanks, I missed that! Jim > On Feb 25, 2016, at 7:36 PM, Chaoren Lin via lldb-commits > wrote: > > Author: chaoren > Date: Thu Feb 25 21:36:27 2016 > New Revision: 261969 > > URL: http://llvm.org/viewvc/llvm-project?rev=261969&view=rev > Log: > Clear alias argument vector for 'p' alias.

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-02-26 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. It's okay to short-circuit this here, but why was PrivateResume not returning an error when the process was not alive. That error should have gotten propagated to the caller, obviating the need for this short-circuit. http://review

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-02-26 Thread Jim Ingham via lldb-commits
jingham requested changes to this revision. jingham added a reviewer: jingham. jingham added a comment. This revision now requires changes to proceed. I agree with Zachary, it would be better to put it in PrivateResume before the call to WillResume. Having this happen in Process::PrivateResume a

[Lldb-commits] [lldb] r262051 - SymbolFileDWARFDebugMap::FindTypes didn't obey the max_matches flag,

2016-02-26 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Feb 26 13:33:11 2016 New Revision: 262051 URL: http://llvm.org/viewvc/llvm-project?rev=262051&view=rev Log: SymbolFileDWARFDebugMap::FindTypes didn't obey the max_matches flag, but kept looking through .o files even after it had found as many matches as were requested.

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-02-26 Thread Jim Ingham via lldb-commits
jingham added a comment. I don't think you can manipulate the public run lock in PrivateResume like this. PrivateResume gets run in a bunch of places (like calling functions) that are way below the level the public run lock. You probably need to catch errors from PrivateResume in Resume and r

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-02-29 Thread Jim Ingham via lldb-commits
The straightforward way to do specify a complex command line for debugging is: lldb —arch=x86_64 — /bin/ls -IAF everything after the — are arguments to the program. This also allows you to cut & paste whole command lines. It works by the trick that if you haven’t specified a file before the —

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-01 Thread Jim Ingham via lldb-commits
There's an lldb-private-forward.h that you can use for this purpose if you wish. Jim > On Mar 1, 2016, at 10:32 AM, Zachary Turner via lldb-commits > wrote: > > > > On Tue, Mar 1, 2016 at 10:10 AM Greg Clayton wrote: > clayborg requested changes to this revision. > clayborg added a comment.

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-02 Thread Jim Ingham via lldb-commits
jingham added a comment. IIUC, we can't get out of the business of supporting the HostGetOpt on freebsd & windows since we can't use the llvm version for the command line. So I don't see that it much eases the support burden. The differences in the help output don't seem significant, which do

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Jim Ingham via lldb-commits
Fixed with r262543 Jim > On Mar 2, 2016, at 5:10 PM, Ying Chen via lldb-commits > wrote: > > chying added a subscriber: chying. > chying added a comment. > > Seems this patch breaks OSX build. I guess the new files were not added to > xcode project file. > Could you please take a look? > htt

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. Fixed with r262543 Jim http://reviews.llvm.org/D17363 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17848: Add reverse file remapping for breakpoint set

2016-03-03 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. This looks fine to me. http://reviews.llvm.org/D17848 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17848: Add reverse file remapping for breakpoint set

2016-03-03 Thread Jim Ingham via lldb-commits
jingham added a comment. At some point we should deal with the loss of information when we resolve re-mapped paths. For instance, here I set a breakpoint by the moved source location's full path, and that gets remapped to the build location. That's lovely since it makes the breakpoint take, b

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-03 Thread Jim Ingham via lldb-commits
> On Mar 2, 2016, at 10:18 AM, Greg Clayton wrote: > > So this is nice that you cleaned up this one place where we can use LLVM's > option parsing stuff, but it now makes the driver inconsistent with the rest > of LLDB. It also makes it so you have to link some LLVM .a files into the > lldb c

Re: [Lldb-commits] [PATCH] D17860: Fix "ninja check-lldb" crash in IRExecutionUnit.cpp

2016-03-08 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. I don't think this is right. It is possible to have a sc.symbol be nullptr, but sc.function be valid. So the check for sc.symbol will reject the valid information in the function. Note, the code in the function is also wrong, sinc

Re: [Lldb-commits] [PATCH] D17860: Fix "ninja check-lldb" crash in IRExecutionUnit.cpp

2016-03-08 Thread Jim Ingham via lldb-commits
jingham added a comment. Greg suggests adding something to SymbolContext to get the start address of the function that handles this possibility. GetAddressRange sort of does this, but only if the SymbolContext doesn't have a block or line entry. http://reviews.llvm.org/D17860 _

Re: [Lldb-commits] [lldb] r262863 - Change over the broadcaster/listener process to hold shared or weak pointers

2016-03-08 Thread Jim Ingham via lldb-commits
Thanks, Tamas, sorry I missed that. Looks like everything is green again. Jim > On Mar 8, 2016, at 5:39 AM, Tamas Berghammer wrote: > > I committed in a fix as rL262925 (initialization order issue in a log line) > > On Tue, Mar 8, 2016 at 3:04 AM Jim Ingham via lldb-commits

Re: [Lldb-commits] [PATCH] D17860: Fix "ninja check-lldb" crash in IRExecutionUnit.cpp

2016-03-08 Thread Jim Ingham via lldb-commits
> On Mar 8, 2016, at 2:46 PM, Ted Woodward wrote: > > ted added a comment. > > The change is to guard against the case where candidate_sc.symbol is nullptr. > > candidate_sc.function is only used when load_address != LLDB_INVALID_ADDRESS, > but load_address is set on line 802: > > load_addr

Re: [Lldb-commits] [PATCH] D17970: Implement ObjectFilePECOFF::GetEntryPointAddress.

2016-03-08 Thread Jim Ingham via lldb-commits
We use the entry point address as the place to stop when we call functions by hand in the target. That's one place which is legit TEXT, but we are pretty sure the code you are calling will never call. So if the entry point address isn't set correctly we probably won't be able to call any funct

Re: [Lldb-commits] [PATCH] D17970: Implement ObjectFilePECOFF::GetEntryPointAddress.

2016-03-08 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. We use the entry point address as the place to stop when we call functions by hand in the target. That's one place which is legit TEXT, but we are pretty sure the code you are calling will never call. So if the entry point address

[Lldb-commits] [lldb] r263049 - Add an "offset" option to "break set -n" and "break set -f -l".

2016-03-09 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Mar 9 12:59:13 2016 New Revision: 263049 URL: http://llvm.org/viewvc/llvm-project?rev=263049&view=rev Log: Add an "offset" option to "break set -n" and "break set -f -l". That way you can set offset breakpoints that will move as the function they are contained in move

Re: [Lldb-commits] [PATCH] D17860: Fix "ninja check-lldb" crash in IRExecutionUnit.cpp

2016-03-09 Thread Jim Ingham via lldb-commits
Right. If we have both, the symbol should be faster and won't potentially drag in more debug info, so we should use it. If the two have different addresses that's a more fundamental problem we shouldn't try to patch over here. We should only use the function if it's all we have. Note also, i

Re: [Lldb-commits] Improving the documentation

2016-03-09 Thread Jim Ingham via lldb-commits
In the case of something like SBAddress, I think it would be better to have a class header that explains file/load addresses and section offset addresses. Then you can just use the terms in the function documentation, and they can be shorter and more explicit. Trying to define terms inline like

Re: [Lldb-commits] [PATCH] D18005: Fixed ValueObject::GetExpressionPath() for paths including anonymous struct/union

2016-03-09 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. The source change looks fine, but Greg's the owner of this code so I'll let him say yes for sure. But don't call the test case "ExpressionPath". The expression parser is different from frame variable. I understand that your intent

Re: [Lldb-commits] [PATCH] D18005: Fixed ValueObject::GetExpressionPath() for paths including anonymous struct/union

2016-03-09 Thread Jim Ingham via lldb-commits
jingham added a comment. There's actually already a test for handling C anonymous unions in lang/c/anonymous. That tests the expression parser and some direct SBValue queries at present. It would be appropriate to add your test as another test case in here. Repository: rL LLVM http://rev

Re: [Lldb-commits] [PATCH] D18005: Fixed ValueObject::GetExpressionPath() for paths including anonymous struct/union

2016-03-09 Thread Jim Ingham via lldb-commits
jingham added a comment. The part of frame variable you are testing here - namely the parsing of these "frame variable" paths, can also be directly accessed with SBValue::GetValueForExpressionPath (aargh, shouldn't have called that "expression" should we? Too late to change now.) Anyway, you

Re: [Lldb-commits] [PATCH] D17860: Fix "ninja check-lldb" crash in IRExecutionUnit.cpp

2016-03-09 Thread Jim Ingham via lldb-commits
jingham added a comment. That seems fine to me. Thanks for putting up with the niggling... http://reviews.llvm.org/D17860 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] Improving the documentation

2016-03-09 Thread Jim Ingham via lldb-commits
The relation between section offsets and files is stronger than you are stating here. You say: +/// Represents an address. An address may refer to code or data from an +/// existing module, or it may refer to something on the stack or heap. +/// That part is good, but you should use that in th

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-03-10 Thread Jim Ingham via lldb-commits
jingham accepted this revision. jingham added a comment. This revision is now accepted and ready to land. I marked a comment left over from a previous draft of the patch that isn't needed. Other than that, this looks fine. Comment at: source/Target/Process.cpp:3561-3562 @@ +35

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-03-10 Thread Jim Ingham via lldb-commits
jingham added a comment. More precisely, the "Public running lock..." part of the comment. http://reviews.llvm.org/D17635 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r263183 - Fix SBDebugger.GetOutputFileHandle() on OS X.

2016-03-10 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 10 19:57:45 2016 New Revision: 263183 URL: http://llvm.org/viewvc/llvm-project?rev=263183&view=rev Log: Fix SBDebugger.GetOutputFileHandle() on OS X. The swig typemaps had some magic for output File *'s on OS X that made: SBDebugger.GetOutputFileHandle() actually

Re: [Lldb-commits] [PATCH] D18075: Fix deadlock due to thread list locking in 'bt all' with obj-c

2016-03-10 Thread Jim Ingham via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. Yeah, I'm beginning to wonder whether we're doing ourselves a favor by putting off computing the ObjC runtime symbols till some time that's bound to be more inconvenient than right

Re: [Lldb-commits] [PATCH] D18075: Fix deadlock due to thread list locking in 'bt all' with obj-c

2016-03-10 Thread Jim Ingham via lldb-commits
jingham added a comment. Another even safer way to do this is to take the thread list, turn it into a vector of TID's, then iterate over the TID's looking them up one at a time as you go. That way you don't have to worry about your ThreadSP going stale. You could even change HandleOneThread t

Re: [Lldb-commits] [PATCH] D18075: Fix deadlock due to thread list locking in 'bt all' with obj-c

2016-03-10 Thread Jim Ingham via lldb-commits
jingham added a comment. Oh, yeah, and note the other branch of the if holds the thread list mutex the whole time. So you'll need to change that to get the list of threads, then drop the mutex & iterate over them or you'll get into the same problem if somebody does: (lldb) thread backtrace 1

Re: [Lldb-commits] Improving the documentation

2016-03-10 Thread Jim Ingham via lldb-commits
Few more comments... +/// If an address comes from an existing module, then it will be resolved +/// into an offset from its containing section in that module. That way it +/// can refer to the same logical location as the module that holds it even Probably my error, but "location as the module"

[Lldb-commits] [lldb] r263274 - Check for a NULL input filehandle before referencing it.

2016-03-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 11 12:49:38 2016 New Revision: 263274 URL: http://llvm.org/viewvc/llvm-project?rev=263274&view=rev Log: Check for a NULL input filehandle before referencing it. Modified: lldb/trunk/scripts/Python/python-typemaps.swig Modified: lldb/trunk/scripts/Python/python

[Lldb-commits] [lldb] r263283 - Remove the skip if Darwin since I fixed the crash.

2016-03-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 11 13:15:03 2016 New Revision: 263283 URL: http://llvm.org/viewvc/llvm-project?rev=263283&view=rev Log: Remove the skip if Darwin since I fixed the crash. Modified: lldb/trunk/packages/Python/lldbsuite/test/python_api/default-constructor/TestDefaultConstructorFo

Re: [Lldb-commits] [PATCH] D18075: Fix deadlock due to thread list locking in 'bt all' with obj-c

2016-03-11 Thread Jim Ingham via lldb-commits
jingham accepted this revision. jingham added a comment. This revision is now accepted and ready to land. That looks good, thanks. http://reviews.llvm.org/D18075 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

Re: [Lldb-commits] [lldb] r263312 - Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes.

2016-03-11 Thread Jim Ingham via lldb-commits
We use UINT32_MAX and so forth all over in lldb. Were you planning to switch over all the uses? That seem like something you should not do unilaterally, but we should decide on as a group. I originally thought maybe this would buy us some type safety, but it looks like (and the docs seem to i

[Lldb-commits] [lldb] r263326 - This change introduces a "ExpressionExecutionThread" to the ThreadList.

2016-03-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 11 20:45:34 2016 New Revision: 263326 URL: http://llvm.org/viewvc/llvm-project?rev=263326&view=rev Log: This change introduces a "ExpressionExecutionThread" to the ThreadList. Turns out that most of the code that runs expressions (e.g. the ObjC runtime grubber) on

[Lldb-commits] [lldb] r263333 - Let's not convert from UINT32_MAX to the std::numeric_limits version.

2016-03-11 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 11 21:33:36 2016 New Revision: 26 URL: http://llvm.org/viewvc/llvm-project?rev=26&view=rev Log: Let's not convert from UINT32_MAX to the std::numeric_limits version. Modified: lldb/trunk/source/Core/DataEncoder.cpp lldb/trunk/source/Core/Disassembler.

[Lldb-commits] [lldb] r263588 - Remove unnecessary includes.

2016-03-15 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Mar 15 16:11:02 2016 New Revision: 263588 URL: http://llvm.org/viewvc/llvm-project?rev=263588&view=rev Log: Remove unnecessary includes. Modified: lldb/trunk/source/Core/DataEncoder.cpp lldb/trunk/source/Core/DataExtractor.cpp lldb/trunk/source/Core/Disassem

Re: [Lldb-commits] [lldb] r263333 - Let's not convert from UINT32_MAX to the std::numeric_limits version.

2016-03-15 Thread Jim Ingham via lldb-commits
t; wrote: > If we're favoring the macros over the functions, then > perhaps update the #includes? > > On Fri, Mar 11, 2016 at 7:33 PM, Jim Ingham via lldb-commits > wrote: > Author: jingham > Date: Fri Mar 11 21:33:36 2016 > New Revision: 26 > > URL: h

Re: [Lldb-commits] [lldb] r263333 - Let's not convert from UINT32_MAX to the std::numeric_limits version.

2016-03-15 Thread Jim Ingham via lldb-commits
how? I thought C++ numeric_limits were > > actually preferred over the C macros. > > > > On Mon, Mar 14, 2016 at 7:59 AM Adrian McCarthy via lldb-commits > > wrote: > > If we're favoring the macros over the functions, then > > perhaps update the #includes? &

Re: [Lldb-commits] Improving the documentation

2016-03-15 Thread Jim Ingham via lldb-commits
The only other suggestion I have is that the first time we refer to a module in this file we should say "(see SBModule)" or something like that to make it clear what we mean by a module. Other than that this looks good to me. Jim > On Mar 15, 2016, at 5:05 PM, John Lindal wrote: > > Great!

[Lldb-commits] [lldb] r263865 - Use Enrico's new CommandAlias to give better help to the "sif" command.

2016-03-18 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 18 19:53:20 2016 New Revision: 263865 URL: http://llvm.org/viewvc/llvm-project?rev=263865&view=rev Log: Use Enrico's new CommandAlias to give better help to the "sif" command. Modified: lldb/trunk/source/Interpreter/CommandInterpreter.cpp Modified: lldb/trunk/so

[Lldb-commits] [lldb] r263861 - Fix the project file for the removal of lldb-mi's Platform.cpp.

2016-03-18 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Mar 18 19:21:21 2016 New Revision: 263861 URL: http://llvm.org/viewvc/llvm-project?rev=263861&view=rev Log: Fix the project file for the removal of lldb-mi's Platform.cpp. Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj Modified: lldb/trunk/lldb.xcodeproj/projec

[Lldb-commits] [lldb] r263972 - Compilation can end up calling functions (e.g. to resolve indirect functions) so I added

2016-03-21 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Mar 21 14:21:13 2016 New Revision: 263972 URL: http://llvm.org/viewvc/llvm-project?rev=263972&view=rev Log: Compilation can end up calling functions (e.g. to resolve indirect functions) so I added a way for compilation to take a "thread to use for compilation". If it is

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Jim Ingham via lldb-commits
Once per login session. You may also need to run: sudo /usr/sbin/DevToolsSecurity --enable if you've never debugged anything before. You should only need to do this once per clean OS install. Jim > On Mar 24, 2016, at 2:53 PM, Zachary Turner via lldb-commits > wrote: > > Is it one time un

[Lldb-commits] [lldb] r264379 - Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".)

2016-03-24 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Mar 24 20:57:14 2016 New Revision: 264379 URL: http://llvm.org/viewvc/llvm-project?rev=264379&view=rev Log: Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".) This feature is controlled by an expression command option, a target pro

Re: [Lldb-commits] [lldb] r264379 - Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".)

2016-03-25 Thread Jim Ingham via lldb-commits
off? Seems to me like off should be default > > > > An enumerated setting would be even nicer, where one option is "report" > > that just doesn't apply any FixIts, but prints a message saying "did you > > mean Foo->bar()?" > > On Thu, Mar 24

[Lldb-commits] [lldb] r264793 - Figure out what the fixed expression is, and print it. Added another target setting to

2016-03-29 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Mar 29 17:00:08 2016 New Revision: 264793 URL: http://llvm.org/viewvc/llvm-project?rev=264793&view=rev Log: Figure out what the fixed expression is, and print it. Added another target setting to quietly apply fixits for those who really trust clang's fixits. Also, move

[Lldb-commits] [lldb] r264883 - Fix header name.

2016-03-30 Thread Jim Ingham via lldb-commits
Author: jingham Date: Wed Mar 30 13:14:36 2016 New Revision: 264883 URL: http://llvm.org/viewvc/llvm-project?rev=264883&view=rev Log: Fix header name. Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDiagnostic.h Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/Clang

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-03-31 Thread Jim Ingham via lldb-commits
I don't agree that asserts are good in released code unless you have no way of backing out of the situation you find yourself in. After all, you are saying to some unlucky user out there that they can't use the debugger on their app and in general there's nothing they can do about it. Greg's s

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-03-31 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. I don't agree that asserts are good in released code unless you have no way of backing out of the situation you find yourself in. After all, you are saying to some unlucky user out there that they can't use the debugger on their app

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-03-31 Thread Jim Ingham via lldb-commits
es using other debug info which is not > corrupt, but you terminate all those sessions because one piece of unrelated > debug info in an unrelated process is bad. Doesn't seem right to me. > > debug info is program input, and you would never assert on program input, you > hav

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-04-01 Thread Jim Ingham via lldb-commits
> On Apr 1, 2016, at 3:43 AM, Tamas Berghammer wrote: > > tberghammer added a comment. > > This assert is NOT verifying the debug info itself. It is verifying that LLDB > asked the right SymbolFileDWARFDwo to find a DIE based on a DIERef. > Independently of the debug info (what can be garbage

Re: [Lldb-commits] [PATCH] D18692: Fix a cornercase in breakpoint reporting

2016-04-01 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. The only worry I have about this is - thread A is stopped at a breakpoint, and then we stop on thread B instead, then we report a breakpoint, great! - The user steps thread B, which we do by suspending thread B and stepping A. - Then

Re: [Lldb-commits] [PATCH] D18692: Fix a cornercase in breakpoint reporting

2016-04-05 Thread Jim Ingham via lldb-commits
jingham accepted this revision. jingham added a reviewer: jingham. jingham added a comment. Yes, that sounds right. http://reviews.llvm.org/D18692 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[Lldb-commits] [lldb] r265494 - Don't write "using $_lldb_local_vars" statements for variables with

2016-04-05 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Apr 5 19:24:17 2016 New Revision: 265494 URL: http://llvm.org/viewvc/llvm-project?rev=265494&view=rev Log: Don't write "using $_lldb_local_vars" statements for variables with no name. These were showing up with a recent clang, I haven't tracked down why yet, but adding

[Lldb-commits] [lldb] r265496 - The FixItList typedef should have been inside "class ClangDiagnostic".

2016-04-05 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Apr 5 19:25:44 2016 New Revision: 265496 URL: http://llvm.org/viewvc/llvm-project?rev=265496&view=rev Log: The FixItList typedef should have been inside "class ClangDiagnostic". Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangDiagnostic.h Modified:

[Lldb-commits] [lldb] r265495 - If the fixed expression doesn't parse, don't tell the user about it.

2016-04-05 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Apr 5 19:25:04 2016 New Revision: 265495 URL: http://llvm.org/viewvc/llvm-project?rev=265495&view=rev Log: If the fixed expression doesn't parse, don't tell the user about it. Modified: lldb/trunk/source/Expression/UserExpression.cpp Modified: lldb/trunk/source/Exp

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Jim Ingham via lldb-commits
Will this be necessary for everybody who uses "command script import" with Python 3? If so, it would be really nice to do this work in "command script import" if possible. Otherwise everybody will have to put this goo at the top of every .py file they write for formatters & breakpoint commands

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