- May 11, 2012
-
-
Jim Ingham authored
rdar://problem/11419156 llvm-svn: 156627
-
Greg Clayton authored
Fixed an issue in the platform options where if no architecture was specified where the platform would fail to select itself with something like: (lldb) platfrom select remote-ios llvm-svn: 156626
-
- May 10, 2012
-
-
rdar://problem/11330621Greg Clayton authored
Fixed the DisassemblerLLVMC disassembler to parse more efficiently instead of parsing opcodes over and over. The InstructionLLVMC class now only reads the opcode in the InstructionLLVMC::Decode function. This can be done very efficiently for ARM and architectures that have fixed opcode sizes. For x64 it still calls the disassembler to get the byte size. Moved the lldb_private::Instruction::Dump(...) function up into the lldb_private::Instruction class and it now uses the function that gets the mnemonic, operandes and comments so that all disassembly is using the same code. Added StreamString::FillLastLineToColumn() to allow filling a line up to a column with a character (which is used by the lldb_private::Instruction::Dump(...) function). Modified the Opcode::GetData() fucntion to "do the right thing" for thumb instructions. llvm-svn: 156532
-
Jim Ingham authored
If the ObjC Step Through Trampoline plan causes a target crash, properly propagate the error back to the controlling plans so that they don't lose control. Also change "ThreadPlanStepThrough" to take the return StackID for its backstop breakpoint as an argument to the constructor rather than having it try to figure it out itself, since it might get it wrong whereas the caller always knows where it is coming from. rdar://problem/11402287 llvm-svn: 156529
-
- May 09, 2012
-
-
Sean Callanan authored
in expressions. llvm-svn: 156514
-
Jim Ingham authored
Remove the string pool from the global destructor chain so it doesn't get yanked out from under us prematurely on exit. rdar://problem/11358062 llvm-svn: 156496
-
Jim Ingham authored
Print out a notification when the process of a target other than the currently selected target stops. llvm-svn: 156433
-
- May 08, 2012
-
-
rdar://problem/11338654Enrico Granata authored
<rdar://problem/11338654> Fixing a bug where having a summary for a bitfield without a format specified would in certain cases crash LLDB - This has also led to refactoring the by-type accessors for the data formatter subsystem. These now belong in our internal layer, and are just invoked by the public API stratum llvm-svn: 156429
-
rdar://problem/11400476Han Ming Ong authored
On Lion, because the rights initially doesn't exist in /etc/authorization, if an admin user logs in and uses lldb within the first 5 minutes, it is possible to do AuthorizationCopyRights on LaunchUsingXPCRightName and get the rights back. As another security measure, we make sure that the LaunchUsingXPCRightName rights actually exists. Removed Xcode as the user of the XPC service to shrink the security surface area. llvm-svn: 156424
-
rdar://problem/11408853Han Ming Ong authored
We make sure that if the user cancels out of the authentication dialog to add 'com.apple.lldb.LaunchUsingXPC' rights to /etc/authorization, we don't try to do AuthorizationCopyRights. As well, refactored a bit so that control flow is easier to read for other folks. Added more comments. llvm-svn: 156423
-
rdar://problem/11239650Enrico Granata authored
<rdar://problem/11239650> Fixing a bug where the SetValueFromCString() method failed to operate on dynamic values. The fix consists in making the set operation fall through to the parent. We only actually allow this if the dynamic value is at a 0-offset from the parent, or the new value is 0. Other scenarios would need agreement on the actual meaning of the set operation (do we keep offsetting? do we just assume the user knows what they are doing?) so we prevent them, and let the expression parser deal with the complexity llvm-svn: 156422
-
Jim Ingham authored
llvm-svn: 156412
-
Enrico Granata authored
llvm-svn: 156397
-
rdar://problem/10605072Greg Clayton authored
Fixed the command callback override lookup function so we can now override the "process launch" command (or any other multi-word commands). llvm-svn: 156368
-
Jason Molenda authored
llvm-svn: 156359
-
rdar://problem/11358639Greg Clayton authored
Switch over to the "*-apple-macosx" for desktop and "*-apple-ios" for iOS triples. Also make the selection process for auto selecting platforms based off of an arch much better. llvm-svn: 156354
-
Johnny Chen authored
llvm-svn: 156350
-
Johnny Chen authored
llvm-svn: 156340
-
Johnny Chen authored
Correctly specify the LLDB_OPT_SET's that the 'shlib' command option belongs to by using a newly added macro like this: #define LLDB_OPT_NOT_10 ( LLDB_OPT_SET_FROM(1, 10) & ~LLDB_OPT_SET_10 ) rdar://problem/11393864 llvm-svn: 156337
-
- May 07, 2012
-
-
Filipe Cabecinhas authored
llvm-svn: 156300
-
- May 06, 2012
-
-
Filipe Cabecinhas authored
llvm-svn: 156264
-
- May 05, 2012
-
-
Sean Callanan authored
llvm-svn: 156223
-
Jim Ingham authored
No one was using it and Locker(pthread_mutex_t *) immediately asserts for pthread_mutex_t's that don't come from a Mutex anyway. Rather than try to make that work, we should maintain the Mutex abstraction and not pass around the platform implementation... Make Mutex::Locker::Lock take a Mutex & or a Mutex *, and remove the constructor taking a pthread_mutex_t *. You no longer need to call Mutex::GetMutex to pass your mutex to a Locker (you can't in fact, since I made it private.) llvm-svn: 156221
-
- May 04, 2012
-
-
Johnny Chen authored
Use a gentler API PyThreadState_GetDict(), instead. rdar://problem/11292882 llvm-svn: 156200
-
Jim Ingham authored
Fix a think in Mutex::Locker::Locker(pthread_mutex_t *) Really should lock the mutex handed in, not the m_mutex_ptr that you've set to NULL... Rework the Host.cpp::ThreadNameAccessor to use ThreadSafeSTLMap - we've got it so we might as well use it. Also works around a problem with the Mutex::Locker class raising fallacious asserts in debug mode when used with pthread_mutex_t's that weren't backed by Mutex objects. llvm-svn: 156193
-
Jason Molenda authored
us of its architecture, use that to set the Target's arch if it doesn't already have one set. In Process::CompleteAttach(), if the Target has a valid arch make sure that the Platform we pick up is compatible with that arch; if not, find a Platform that is compatible. Don't let the the default platform override the Target's arch. <rdar://problem/11185420> llvm-svn: 156116
-
- May 03, 2012
-
-
Jim Ingham authored
should be MasterPlans that want to stay on the plan stack. So make all plans NOT MasterPlans by default and then have the SB API's and the CommandObjectThread step commands set this explicitly. Also added a "clean up" phase to the Thread::ShouldStop so that if plans get stranded on the stack, we can remove them. This is done by adding an IsPlanStale method to the thread plans, and if the plan can know that it is no longer relevant, it returns true, and the plan and its sub-plans will get discarded. llvm-svn: 156101
-
Jim Ingham authored
Document the fact that you can repeat "-n" and similar options to make one breakpoint on multiple names. llvm-svn: 156098
-
Enrico Granata authored
Adding a new 'type category disable *' feature that disables all categories - This is intended as a quick kill switch for data formatters for cases where the user wants as little extra processing as possible to be done on their target, or to override major data formatters bug, should they occur llvm-svn: 156044
-
- May 02, 2012
-
-
Jim Ingham authored
If a command takes options and arguments, the help text should warn the user to use "--" to terminate the options. llvm-svn: 155973
-
Jim Ingham authored
includes of ClangUserExpression that were being errantly dragged in through same. llvm-svn: 155970
-
Jim Ingham authored
since we now run the condition in the StopInfoBreakpoint's PerformAction, and don't need to refer it to another "continue". Actually, we haven't needed to do this for a year or so, I just hadn't gotten around to deleting the dead wood. llvm-svn: 155967
-
- May 01, 2012
-
-
Jim Ingham authored
Fix reporting of stop reasons when the StepOver & StepIn plans stop because of a crash or breakpoint. Added the ability for a plan to say it is done but doesn't want to be the reason for the stop. llvm-svn: 155927
-
Jim Ingham authored
Use a cache of the results of "GetFileAddress" from a symbol in the Comparator we are using to sort the various lookup indices by symbol address. When we switched to weak pointers, this lookup got slightly slower. Not enough to matter for most uses, but in the sort algorithm it does matter. llvm-svn: 155873
-
- Apr 28, 2012
-
-
Sean Callanan authored
disallowing reads over 1KiB in total size unless the user explicitly allows them. llvm-svn: 155750
-
- Apr 27, 2012
-
-
Johnny Chen authored
rdar://problem/11327790 llvm-svn: 155694
-
Jason Molenda authored
llvm-svn: 155687
-
Greg Clayton authored
Clean up the way modules are looked for when calling Target::GetSharedModule(...). We were ignoring remapped files, even if they were valid. Also if we have a UUID, we should check our global module list first. llvm-svn: 155683
-
- Apr 26, 2012
-
-
Jim Ingham authored
Don't call SBDebugger::SetInternalVariable in the sigwinch_handler, since that takes locks and potentially does allocations. Just call SBDebugger::SetTerminalWidth on the driver's SBDebugger, which does the same job, but no locks. Also add the value checking to SetTerminalWidth you get with SetInternalVariable(..., "term-width", ...). rdar://problem/11310563 llvm-svn: 155665
-
Sean Callanan authored
ones, to its own constant pool. This reflects the fact that the LLVM code generators for different targets move floats to their constant pools under varying conditions, and the JIT cannot (yet) be relied upon to relocate references to its constant pool correctly. llvm-svn: 155660
-