- Jun 23, 2010
-
-
Sean Callanan authored
errors pointed out by John McCall. llvm-svn: 106665
-
Greg Clayton authored
to the debugger from GUI windows. Previously there was one global debugger instance that could be accessed that had its own command interpreter and current state (current target/process/thread/frame). When a GUI debugger was attached, if it opened more than one window that each had a console window, there were issues where the last one to setup the global debugger object won and got control of the debugger. To avoid this we now create instances of the lldb_private::Debugger that each has its own state: - target list for targets the debugger instance owns - current process/thread/frame - its own command interpreter - its own input, output and error file handles to avoid conflicts - its own input reader stack So now clients should call: SBDebugger::Initialize(); // (static function) SBDebugger debugger (SBDebugger::Create()); // Use which ever file handles you wish debugger.SetErrorFileHandle (stderr, false); debugger.SetOutputFileHandle (stdout, false); debugger.SetInputFileHandle (stdin, true); // main loop SBDebugger::Terminate(); // (static function) SBDebugger::Initialize() and SBDebugger::Terminate() are ref counted to ensure nothing gets destroyed too early when multiple clients might be attached. Cleaned up the command interpreter and the CommandObject and all subclasses to take more appropriate arguments. llvm-svn: 106615
-
Sean Callanan authored
looking for external variables. Also cleaned up the log messages coming from the DWARF interpreter. llvm-svn: 106613
-
Sean Callanan authored
externally-defined functions. llvm-svn: 106606
-
- Jun 22, 2010
-
-
Benjamin Kramer authored
llvm-svn: 106580
-
Benjamin Kramer authored
the demangled name. Fall back to strlen. llvm-svn: 106579
-
Jim Ingham authored
Make an explicit GetThreadSpecNoCreate accessor so you don't have to get the const-ness right to ensure you are not making a copy of the owning breakpoint's ThreadSpec in a breakpoint location. Also change the name from NoCopy to NoCreate since that's clearer. llvm-svn: 106578
-
Benjamin Kramer authored
This also moves strlen out of the mutex scope. llvm-svn: 106545
-
Benjamin Kramer authored
I'm not sure when multiple threads enter this method but a race-condition causing a crash in malloc can be reproduced with this little script: echo file $(which lldb) > cmd echo "run\nbreak set -n main\nrun\nexit" >> cmd lldb -s cmd It may need a few runs before it crashes though. llvm-svn: 106544
-
Benjamin Kramer authored
llvm-svn: 106535
-
- Jun 21, 2010
-
-
Benjamin Kramer authored
instructions so it's really profitable to inline them. llvm-svn: 106450
-
Benjamin Kramer authored
an unitialized variable. valgrind_errors -= 1; llvm-svn: 106418
-
Benjamin Kramer authored
dependent on the last byte of the buffer, which could be unitialized. llvm-svn: 106417
-
Benjamin Kramer authored
This also fixes a bug where we were trying to copy m_string into itself via a format string. The pointer was invalidated by m_string.resize and lldb (sometimes) crashed inside vsnprintf. llvm-svn: 106416
-
- Jun 19, 2010
-
-
Jim Ingham authored
Two changes in this checkin. Added a ThreadPlanKind so that I can do some reasoning based on the kind of thread plan without having to use RTTI. Removed the ThreadPlanContinue and replaced with a ShouldAutoContinue query that serves the same purpose. Having to push another plan to assert that if there's no other indication the target should continue when this plan is popped was flakey and error prone. This method is more stable, and fixed problems we were having with thread specific breakpoints. llvm-svn: 106378
-
Jim Ingham authored
Remember whether a queue or thread name were passed into "breakpoint modify" so we can recognize an empty argument as unsetting the option. llvm-svn: 106377
-
- Jun 18, 2010
-
-
Jim Ingham authored
llvm-svn: 106297
-
Jim Ingham authored
llvm-svn: 106268
-
Jim Ingham authored
Move the "status" command to "process status" since that's where it belongs. Also make it print "running" if invoked when the current process is running. llvm-svn: 106265
-
Jim Ingham authored
Change the Breakpoint & BreakpointLocation GetDescription methods so they call the BreakpointOptions::GetDescription rather than picking bits out of the breakpoint options. Added BreakpointOptions::GetDescription to do this job. Some more mucking around to keep the breakpoint listing from getting too verbose. llvm-svn: 106262
-
Jim Ingham authored
Change "breakpoint configure" to "breakpoint modify" so it doesn't collide with "breakpoint command" Change "breakpoint enable/disable" so changing a breakpoint's state doesn't also overwrite the location states. llvm-svn: 106261
-
- Jun 17, 2010
-
-
Owen Anderson authored
llvm-svn: 106192
-
Sean Callanan authored
llvm-svn: 106186
-
Sean Callanan authored
into the constructor for the LLVMDisassembler, resulting in asserts. llvm-svn: 106160
-
- Jun 16, 2010
-
-
Owen Anderson authored
llvm-svn: 106116
-
Jim Ingham authored
Add a "thread specification" class that specifies thread specific breakpoints by name, index, queue or TID. Push this through all the breakpoint management code. Allow this to be set when the breakpoint is created. Fix the Process classes so that a breakpoint hit that is not for a particular thread is not reported as a breakpoint hit event for that thread. Added a "breakpoint configure" command to allow you to reset any of the thread specific options (or the ignore count.) llvm-svn: 106078
-
- Jun 15, 2010
-
-
Jim Ingham authored
llvm-svn: 106034
-
Jim Ingham authored
Fixed the Disassemble arguments so you can't specify start address or name in multiple ways. Fixed the command line input so you can specify the filename without "-f" even if you use other options. llvm-svn: 106020
-
- Jun 14, 2010
-
-
Greg Clayton authored
be shared with linux. Updated Xcode project. llvm-svn: 105928
-
Greg Clayton authored
BreakpointLocation::GetLoadAddress() does not match the 'StoppointLocation::GetLoadAddress() const' virtual function prototype, and so, does not override the superclass function. llvm-svn: 105927
-
- Jun 13, 2010
-
-
Eli Friedman authored
Linux or doesn't compile on Linux. llvm-svn: 105923
-
Eli Friedman authored
llvm-svn: 105922
-
Eli Friedman authored
llvm-svn: 105921
-
Greg Clayton authored
llvm-svn: 105918
-
Eli Friedman authored
llvm-svn: 105906
-
Eli Friedman authored
llvm-svn: 105905
-
- Jun 12, 2010
-
-
Greg Clayton authored
Also added a shell script build phase that fixes the headers in LLDB.framework. llvm-svn: 105899
-
Eli Friedman authored
llvm-svn: 105896
-
Greg Clayton authored
We need to put this in LLDB since we need to vend this in our API because our public API uses shared pointers to our private objects. Removed a deprecated file: include/lldb/Host/Types.h Added the new SharingPtr.cpp/.h files into source/Utility. Added a shell script build phase that fixes up all headers in the LLDB.framework. llvm-svn: 105895
-
Greg Clayton authored
refer to the new locations. llvm-svn: 105885
-