- Oct 08, 2010
-
-
Greg Clayton authored
Make sure to lock down the sequence mutex and select the thread we want when read or write all registers. llvm-svn: 115992
-
- Oct 07, 2010
-
-
Johnny Chen authored
the threads and print their stack traces when stopped on a breakpoint. Add a PrintStackTraces(process) utility function into the lldbutil.py module. llvm-svn: 115983
-
Johnny Chen authored
PrintStackTrace(thread) function. If string_buffer is True, PrintStackTrace() will return the content of the stack trace as a string, instead. llvm-svn: 115960
-
Johnny Chen authored
llvm-svn: 115955
-
Sean Callanan authored
milliseconds to 10 seconds, which was the original intent. llvm-svn: 115942
-
Greg Clayton authored
ScriptInterpreterPython class and made a simple callback function that ScriptInterpreterPython::BreakpointCallbackFunction() now calls so we don't include any internal API stuff into the cpp file that is generated by SWIG. Fixed a few build warnings in debugserver. llvm-svn: 115926
-
Johnny Chen authored
llvm-svn: 115922
-
Johnny Chen authored
Updated expected match strings because the print representations of SBProcess, SBThread, SBBreakpoint, and SBFrame have changed. llvm-svn: 115918
-
Johnny Chen authored
llvm-svn: 115917
-
Johnny Chen authored
llvm-svn: 115916
-
Greg Clayton authored
tricks to get types to resolve. I did this by correctly including the correct files: stdint.h and all lldb-*.h files first before including the API files. This allowed me to remove all of the hacks that were in the lldb.swig file and it also allows all of the #defines in lldb-defines.h and enumerations in lldb-enumerations.h to appear in the lldb.py module. This will make the python script code a lot more readable. Cleaned up the "process launch" command to not execute a "process continue" command, it now just does what it should have with the internal API calls instead of executing another command line command. Made the lldb_private::Process set the state to launching and attaching if WillLaunch/WillAttach return no error respectively. llvm-svn: 115902
-
Johnny Chen authored
Temporarily commenting out the deprecated LaunchProcess() method. SWIG is not able to handle the overloaded functions. o dotest.py/lldbtest.py: Add an '-w' option to insert some wait time between consecutive test cases. o TestClassTypes.py: Make the breakpoint_creation_by_filespec_python() test method more robust and more descriptive by printing out a more insightful assert message. o lldb.swig: Coaches swig to treat StateType as an int type, instead of a C++ class. llvm-svn: 115899
-
Greg Clayton authored
Move anything that creates a new process into SBTarget. Marked some functions as deprecated. I will remove them after our new API changes make it through a build cycle. llvm-svn: 115854
-
- Oct 06, 2010
-
-
Johnny Chen authored
testclass.testmethod to be run and with a '-g' option which instructs the test driver to only admit the module which satisfy the filterspec condition to the test suite. Example: # This only runs the test case under the array_types directory which has class # name of 'ArrayTypesTestCase' and the test method name of 'test_with_dwarf_and_run_command'. /Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v -f 'ArrayTypesTestCase.test_with_dwarf_and_run_command' -g array_types ---------------------------------------------------------------------- Collected 1 test test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase) Test 'frame variable var_name' on some variables with array types. ... ok ---------------------------------------------------------------------- Ran 1 test in 1.353s OK # And this runs the test cases under the array_types and the hello_world directories. # If the module discovered has the 'ArrayTypesTestCase.test_with_dwarf_and_run_command' # attribute, only the test case specified by the filterspec for the module will be run. # If the module does not have the said attribute, e.g., the module under hello_world, # the whole module is still admitted to the test suite. /Volumes/data/lldb/svn/trunk/test $ ./dotest.py -v -f 'ArrayTypesTestCase.test_with_dwarf_and_run_command' array_types hello_world ---------------------------------------------------------------------- Collected 3 tests test_with_dwarf_and_run_command (TestArrayTypes.ArrayTypesTestCase) Test 'frame variable var_name' on some variables with array types. ... ok test_with_dsym_and_run_command (TestHelloWorld.HelloWorldTestCase) Create target, breakpoint, launch a process, and then kill it. ... ok test_with_dwarf_and_process_launch_api (TestHelloWorld.HelloWorldTestCase) Create target, breakpoint, launch a process, and then kill it. ... ok ---------------------------------------------------------------------- Ran 3 tests in 4.964s OK llvm-svn: 115832
-
Johnny Chen authored
condition has been fixed. llvm-svn: 115826
-
Johnny Chen authored
llvm-svn: 115822
-
Johnny Chen authored
expression parser in light of the recent check ins. Example: runCmd: expr a output: (double) $0 = 1100.12 llvm-svn: 115821
-
Johnny Chen authored
for the test case test_set_term_width() after the recent changes. llvm-svn: 115820
-
Johnny Chen authored
llvm-svn: 115819
-
Johnny Chen authored
llvm-svn: 115818
-
Greg Clayton authored
Leaving in deprecated functions until we can get a clean build with the new APIs in place before removing the deprecated functions. llvm-svn: 115815
-
Johnny Chen authored
llvm-svn: 115804
-
Greg Clayton authored
llvm-svn: 115801
-
Greg Clayton authored
use the python API that is exposed through SWIG to do some cool stuff. Also fixed synchronous debugging so that all process control APIs exposed through the python API will now wait for the process to stop if you set the async mode to false (see disasm.py). llvm-svn: 115738
-
Greg Clayton authored
symbol. llvm-svn: 115734
-
Greg Clayton authored
Restored the ability to set the format for expressions after changing the expression results over to ValueObjectSP objects. llvm-svn: 115733
-
Greg Clayton authored
where the symbol index was set to INDIRECT_SYMBOL_ABS and was causing an assertion to fire when we loaded older Mac OS X binaries. llvm-svn: 115729
-
Sean Callanan authored
functions it finds in libraries unless it cannot find an external function with the desired name. llvm-svn: 115721
-
Johnny Chen authored
Add a comment for 'breakpoint set -M C' not working correctly for clang. llvm-svn: 115712
-
Sean Callanan authored
arguments to the expression parser. This means that structs can be returned from the "expr" command. llvm-svn: 115698
-
- Oct 05, 2010
-
-
Sean Callanan authored
so that expressions can use them. llvm-svn: 115658
-
Johnny Chen authored
Add a test class to call lldb 'disassemble -n function' command on each call frame when stopped on C's ctor. This is not a long running test so it shall always be exercised. llvm-svn: 115653
-
Johnny Chen authored
Add a utility function to lldbtest.py to get the native pointer size of the host os. llvm-svn: 115652
-
Johnny Chen authored
llvm-svn: 115636
-
Greg Clayton authored
bool ValueObject::GetIsConstant() const; void ValueObject::SetIsConstant(); This will stop anything from being re-evaluated within the value object so that constant result value objects can maintain their frozen values without anything being updated or changed within the value object. Made it so the ValueObjectConstResult can be constructed with an lldb_private::Error object to allow for expression results to have errors. Since ValueObject objects contain error objects, I changed the expression evaluation in ClangUserExpression from static Error ClangUserExpression::Evaluate (ExecutionContext &exe_ctx, const char *expr_cstr, lldb::ValueObjectSP &result_valobj_sp); to: static lldb::ValueObjectSP Evaluate (ExecutionContext &exe_ctx, const char *expr_cstr); Even though expression parsing is borked right now (pending fixes coming from Sean Callanan), I filled in the implementation for: SBValue SBFrame::EvaluateExpression (const char *expr); Modified all expression code to deal with the above changes. llvm-svn: 115589
-
Greg Clayton authored
ClangUserExpression::Evaluate () as a public static function so anyone can evaluate an expression. llvm-svn: 115581
-
Johnny Chen authored
llvm-svn: 115579
-
Greg Clayton authored
results. The clang opaque type for the expression result will be added to the Target's ASTContext, and the bytes will be stored in a DataBuffer inside the new object. The class is named: ValueObjectConstResult Now after an expression is evaluated, we can get a ValueObjectSP back that contains a ValueObjectConstResult object. Relocated the value object dumping code into a static function within the ValueObject class instead of being in the CommandObjectFrame.cpp file which is what contained the code to dump variables ("frame variables"). llvm-svn: 115578
-
Johnny Chen authored
llvm-svn: 115574
-
Jim Ingham authored
llvm-svn: 115572
-