- Oct 11, 2010
-
-
Johnny Chen authored
llvm-svn: 116206
-
Greg Clayton authored
Added frame relative frame selection to "frame select". You can now select frames relative to the current frame (which defaults to zero if the current frame hasn't yet been set for a thread): The gdb "up" command can be done as: (lldb) frame select -r 1 The gdb "down" command can be done as: (lldb) frame select -r -1 Place the following in your ~/.lldbinit file for "up" and "down": command alias up frame select -r 1 command alias down frame select -r -1 llvm-svn: 116176
-
- Oct 10, 2010
-
-
Johnny Chen authored
with the function name 'lldb_iter'. Example: def disassemble_instructions (insts): from lldbutil import lldb_iter for i in lldb_iter(insts, 'GetSize', 'GetInstructionAtIndex'): print i llvm-svn: 116171
-
- Oct 09, 2010
-
-
Johnny Chen authored
structures into an iterable Python object. Example: def disassemble_instructions (insts): from lldbutil import Iterator for i in Iterator(insts, 'GetSize', 'GetInstructionAtIndex'): print i llvm-svn: 116137
-
Johnny Chen authored
llvm-svn: 116117
-
Johnny Chen authored
usage to self.expect() which is more descriptive. llvm-svn: 116115
-
- Oct 08, 2010
-
-
Johnny Chen authored
which is more descriptive. And wrap the file open operation inside a with block so that close() is automatically called upon exiting the block. llvm-svn: 116096
-
Johnny Chen authored
Update the expected match string. o lldbtest.py: Indicate when a command fails, even if there is nothing in the error stream. o TestHelp.py: Add a regression test case for 'help image dump symtab'. o CommandObjectHelp.cpp: Some of the logic branches with successful help command results were not tagged with a Success Status. They are fixed now. This is important for Python interaction. llvm-svn: 116062
-
Johnny Chen authored
be removed does not exist for any reason. llvm-svn: 116025
-
Johnny Chen authored
Also uncomment the cleanup of "stdout.txt" file as part of the class cleanup routine even though test_set_output_path() is failing right now. llvm-svn: 116023
-
Johnny Chen authored
update the affected API clients. llvm-svn: 115995
-
- 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
-
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
-
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
-
- 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
-
Johnny Chen authored
llvm-svn: 115804
-
Johnny Chen authored
Add a comment for 'breakpoint set -M C' not working correctly for clang. llvm-svn: 115712
-
- Oct 05, 2010
-
-
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
-
Johnny Chen authored
llvm-svn: 115579
-
Johnny Chen authored
llvm-svn: 115574
-
- Oct 04, 2010
-
-
Johnny Chen authored
the stdc++ library module. Right now, it doesn't do any disassembly at all. It merely locates the stdc++ library. Also tests the SBProcess object description and verifies it is in a 'Stopped' state. llvm-svn: 115536
-
Johnny Chen authored
the {function.name}, is sufficient for this test case. Plus added @expectedfailure decorator for a filed bug. llvm-svn: 115517
-
Johnny Chen authored
${module.file.basename}{`${function.name}, is sufficient for this test case. llvm-svn: 115514
-
Johnny Chen authored
Remove file:lineno from the expected substrings. llvm-svn: 115512
-
- Oct 02, 2010
-
-
Johnny Chen authored
have now all passed. rdar://problem/8502549 and rdar://problem/8493023 are fixed llvm-svn: 115399
-
Johnny Chen authored
regexp once and use it within the for loop for some speedup. llvm-svn: 115397
-
Johnny Chen authored
depending on the compiler used. Former if gcc/llvm-gcc, and latter if clang. llvm-svn: 115380
-