- Feb 08, 2014
-
-
Sylvestre Ledru authored
llvm-svn: 201024
-
Sylvestre Ledru authored
llvm-svn: 201023
-
- Feb 07, 2014
-
-
Greg Clayton authored
ObjectFile::SetLoadAddress (Target &target, lldb::addr_t value, bool value_is_offset); Now "value" is a slide if "value_is_offset" is true, and "value" is an image base address otherwise. All previous usage of this API was using slides. Updated the ObjectFileELF and ObjectFileMachO SetLoadAddress methods to do the right thing. Also updated the ObjectFileMachO::SetLoadAddress() function to not load __LINKEDIT when it isn't needed and to only load sections that belong to the executable object file. llvm-svn: 201003
-
Greg Clayton authored
Now that the command interpreter runs in a separate thread in Xcode, we need to lock the target API lock instead of trying to lock it. What was happening was: 1 - Xcode ran and stopped and was doing work on thread 2 2 - Users would type something in Xcode console on thread 1 3 - thread 3 would be running command interpreter thread and try to execute command but get "failed to get API lock" error for any command that wanted the target API lock (like "expression") <rdar://problem/15775016> llvm-svn: 200997
-
rdar://problem/12857181Enrico Granata authored
When a user says type formatter add ... unsigned int he most probably means to deal with the "unsigned int" type. However, given how the LLDB command parser works, that command will try to add the formatter to the TWO types 'unsigned' AND 'int' Since this is unlikely to be what the user wants, warn about it, and suggest they can use quotes to override the debugger's understanding llvm-svn: 200996
-
Sean Callanan authored
values whose size differs from the register's size. llvm-svn: 200991
-
Greg Clayton authored
Fix a bug where we will crash if we have a class "B" that is contained inside a class "A" in the DWARF where "A" is a forward declaration. <rdar://problem/14673945> <rdar://problem/15682781> llvm-svn: 200985
-
Enrico Granata authored
Provide a filter for libc++ std::atomic<T> This just hides some implementation clutter and promotes the actual content to only child status llvm-svn: 200984
-
- Feb 06, 2014
-
-
Sean Callanan authored
<rdar://problem/15958296> llvm-svn: 200951
-
Sean Callanan authored
selector when compiling an expression in an Objective-C context. <rdar://problem/15797390> llvm-svn: 200950
-
Greg Clayton authored
llvm-svn: 200943
-
Steve Pucci authored
Move some code that was in DynamicLoaderPOSIXDLYD into the base class DynamicLoader. In the case of UpdateLoadedSections(), the test to see whether a file is loadable (its address is zero) is not generally applicable so that test is changed to a more universally applicable check for the SHF_ALLOC flag on the section. Also make it explicit that the reading of the module_id in DynamicLoaderPOSIXDYLD::GetThreadLocalData() is using a hardcoded size (of module_id) of 4, which might not be appropriate on big-endian 64-bit systems, leaving a FIXME comment in place. llvm-svn: 200939
-
- Feb 05, 2014
-
-
Greg Clayton authored
We now properly detect when a result object has an immediate output stream and don't echo the results a second time. <rdar://problem/15954906> llvm-svn: 200882
-
Greg Clayton authored
Also emit the "Executing commands" message so it properly only comes out when desired and so it comes out in the right place. <rdar://problem/15992208> llvm-svn: 200875
-
Greg Clayton authored
- empty lines in init files would repeat previous command and cause errors to be displayed - all options to control showing the command, its output, if it should stop on error or continue, weren't being obeyed. llvm-svn: 200860
-
Jason Molenda authored
libldi library to collect extended backtrace information; switch to the libBacktraceRecording library and its APIs. Complete the work of adding QueueItems to Queues and allow for the QueueItems to be interrogated about their extended backtraces in turn. There's still cleanup and documentation to do on this code but the code is functional and I it's a good time to get the work-in-progress checked in. <rdar://problem/15314027> llvm-svn: 200822
-
rdar://problem/15936507Enrico Granata authored
ScriptInterpreterPython caches the lldb.embedded_interpreter module, and since it caches it in a refcounting-safe PythonObject, the refcount will appropriately go down 1 every time a ScriptInterpreterPython is deallocated However, we were only importing the module once - in InitializePrivate(). In a handful of interpreter creations, the refcount on the run_one_line function would end up at 0, causing LLDB to crash This fixes it by also importing the module for every interpreter, which ensures correct refcounting llvm-svn: 200816
-
- Feb 04, 2014
-
-
Ed Maste authored
This is SVN r191618 by Sylvestre Ledru applied to the FreeBSD ProcessMonitor. llvm-svn: 200791
-
Greg Clayton authored
LLDB exits the command interpreter and thus LLDB when using a pty or file as the input handle and a blank line is entered (like when running under emacs). This is now fixed. <rdar://problem/15976187> llvm-svn: 200790
-
Ed Maste authored
llvm-svn: 200784
-
Jean-Daniel Dupas authored
llvm-svn: 200725
-
- Feb 03, 2014
-
-
rdar://problem/15154623Enrico Granata authored
Move a couple formatters from category AppKit to CoreFoundation llvm-svn: 200713
-
- Feb 02, 2014
-
-
Ed Maste authored
llvm-svn: 200647
-
Jean-Daniel Dupas authored
llvm-svn: 200637
-
- Feb 01, 2014
-
-
Todd Fiala authored
Fixes http://llvm.org/bugs/show_bug.cgi?id=18656. Note this exposes a failure on Linux of TestInferiorAssert.test_inferior_asserting_disassemble, similar to how it fails on FreeBSD. I'll file a bug for this next. We're now getting another frame beyond where we used to prior to this fix, so the fix is exposing failures in previosly not-reachable frames. Much thanks to Jason Molenda, who had much to do with helping figure out where unwinding was breaking. llvm-svn: 200600
-
- Jan 31, 2014
-
-
Deepak Panickal authored
llvm-svn: 200565
-
Jim Ingham authored
<rdar://problem/15953271> llvm-svn: 200504
-
- Jan 30, 2014
-
-
Greg Clayton authored
Pressing ^D in a non-empty input terminates LLDB. This was due to the fact that we stack more than one editline instance on top of each other and we still expect CTRL+D to exit the editline instance, but it should only do so when the line is empty. Otherwise it should (and does) delete the character at the cursor. <rdar://problem/15944703> llvm-svn: 200489
-
Todd Fiala authored
This change addresses shutdown crashes in the python lldb module when the script interpreter was hanging on to saved file references after leaving a session. It also gets rid of extra references to the stdin/stdout/stderr python file objects that are created when entering the session. This change also moves the bundled pyexpect 2.4 library to the front of the python library path so that a python distribution default pyexpect (2.3 in Ubuntu 12.04) is not picked up first. llvm-svn: 200486
-
Greg Clayton authored
Missing files for previous checkin that fixed: "script help (lldb.SBThread)" output stops after 2048 bytes are printed. <rdar://problem/15942977> llvm-svn: 200478
-
Greg Clayton authored
<rdar://problem/15942977> llvm-svn: 200476
-
- Jan 29, 2014
-
-
Greg Clayton authored
<rdar://problem/15921898> llvm-svn: 200402
-
- Jan 28, 2014
-
-
Greg Clayton authored
llvm-svn: 200326
-
Greg Clayton authored
Fixed a crasher when handling process events that is due to a translation from the public API to the private API. llvm-svn: 200267
-
Todd Fiala authored
GDBProcessCommunicationServer now optionally takes a PlatformSP that defaults to the default platform for the host. GDBProcessCommunicationServer::LaunchProcess () now uses the platform to launch the process. lldb-gdbserver now takes an optional --platform={platform_plugin_name} or -p {platform_plugin_name} command line option. If no platform is specified, the default platform for the host is used; otherwise, if the platform_plugin_name matches a registered platform plugin or matches the default platform's name (which is not necessarily registered by name in the case of 'host'), that platform is used. If the platform name cannot be resolved, lldb-gdbserver exits after printing all the available platform plugin names and the default platform plugin name. llvm-svn: 200266
-
Greg Clayton authored
The many many benefits include: 1 - Input/Output/Error streams are now handled as real streams not a push style input 2 - auto completion in python embedded interpreter 3 - multi-line input for "script" and "expression" commands now allow you to edit previous/next lines using up and down arrow keys and this makes multi-line input actually a viable thing to use 4 - it is now possible to use curses to drive LLDB (please try the "gui" command) We will need to deal with and fix any buildbot failures and tests and arise now that input/output and error are correctly hooked up in all cases. llvm-svn: 200263
-
- Jan 27, 2014
-
-
Jason Molenda authored
if the remote stub provided enough information to identify it in the qProcessInfo packet response. (e.g. for an Apple device where we know it is Mach-O, the cpu type & cpu sub type). <rdar://problem/15847901> llvm-svn: 200253
-
rdar://problem/15776874Enrico Granata authored
ValueObjectPrinter could enter an infinite loop while trying to display an aptly formed ValueObject: a reference, with a child of some pointer type, such that the pointees chain ended up pointing back to some part of itself - a pointer to itself being the simplest such case Fixed here by only setting a pointer depth when needed, and ensuring that we won't overflow and wrap the pointer depth when it's zero. llvm-svn: 200247
-
Todd Fiala authored
This change modifies the 'A' command handler's launch code to launch with LaunchProcess (). The net effect is that the default process monitoring that LaunchProcess () adds will kick in, allowing the GDBRemoteCommunicationServer to be able to reap processes started with this facility correctly. Later, in the case of lldb-gdbserver, we'll also have the proper process monitoring going on to really debug the inferior process. llvm-svn: 200246
-
Todd Fiala authored
This patch addresses a bug where in a multi-threaded program a new signal from the inferior may be received before all group-stop messages from an earlier signal have been handled. Patch by Andrew MacPherson llvm-svn: 200226
-