- Sep 20, 2010
-
-
Johnny Chen authored
llvm-svn: 114332
-
Johnny Chen authored
rdar://problem/8449849 llvm-svn: 114328
-
- Sep 19, 2010
-
-
Johnny Chen authored
llvm-svn: 114307
-
Johnny Chen authored
llvm-svn: 114305
-
- Sep 18, 2010
-
-
Johnny Chen authored
the running of the test suite. Right now, it doesn't do anything with the config file. Pass "-c myConfigFile" to specify the config file. llvm-svn: 114245
-
Johnny Chen authored
llvm-svn: 114232
-
Johnny Chen authored
to evaluate expressions. Marked with @expectedFailure decorators for the time being. Enhanced the lldbtest.TestBase.expect() API to allow an additional keyword arg named "error". If the client passes "error=True", it signifies that an error while running the command is expected. The golden input is then compared against the return object's error output. llvm-svn: 114228
-
- Sep 17, 2010
-
-
Johnny Chen authored
llvm-svn: 114210
-
Johnny Chen authored
(lldb) breakpoint set -S description and a compilation unit defined instance method with: (lldb) breakpoint set -n '-[MyString initWithNSString:]' llvm-svn: 114134
-
- Sep 16, 2010
-
-
Johnny Chen authored
llvm-svn: 114120
-
Johnny Chen authored
Modified Makefile.rules to allow for overwriting the ARCH make variable. llvm-svn: 114118
-
Johnny Chen authored
checks that the launched process writes its standard output there. llvm-svn: 114102
-
Johnny Chen authored
build tree relative search path in order to locate the lldb.py module. When '-i' is present, the test driver relies on the PYTHONPATH environment variable to locate the lldb.py module. llvm-svn: 114094
-
Johnny Chen authored
llvm-svn: 114081
-
Johnny Chen authored
This will remove the confusion experienced when previous test runs left some files (both intermediate or by-product as a result of the test). lldbtest.TestBase defines a classmethod tearDownClass(cls) which invokes the platform-specific cleanup() function as defined by the plugin; after that, it invokes a subclass-specific function classCleanup(cls) if defined; and, finally, it restores the old working directory. An example of classCleanup(cls) is in settings/TestSettings.py: @classmethod def classCleanup(cls): system(["/bin/sh", "-c", "rm output.txt"]) where it deletes the by-product "output.txt" as a result of running a.out. llvm-svn: 114058
-
Johnny Chen authored
llvm-svn: 114033
-
Johnny Chen authored
(lldb) settings set process.run-args A B C (lldb) settings set process.env-vars ["MY_ENV_VAR"]=YES commands. The main.cpp checks whether A, B, C is passed to main and whether the $MY_ENV_VAR env variable is defined and outputs the findings to a file. llvm-svn: 114031
-
- Sep 15, 2010
-
-
Johnny Chen authored
lldb.py module. The priorities to search for are Debug, Release, then BuildAndIntegration. You can always override this with a valid PYTHONPATH environment variable before running the test driver. For example: $ PYTHONPATH=/Find/My/LLDB/Module/Here ./dotest.py -v . Python runtime will try to locate the lldb.py module from /Find/My/LLDB/Module/Here first before trying the Debug, Release, and then BuildAndIntegration directories. llvm-svn: 113991
-
Johnny Chen authored
llvm-svn: 113989
-
Johnny Chen authored
has been fixed by r113947. But just in case it still fails, emits a prominent message always. llvm-svn: 113986
-
Johnny Chen authored
been fixed. llvm-svn: 113981
-
Johnny Chen authored
llvm-svn: 113906
-
Johnny Chen authored
decorators for the time being. llvm-svn: 113905
-
Johnny Chen authored
llvm-svn: 113901
-
Johnny Chen authored
llvm-svn: 113884
-
Johnny Chen authored
llvm-svn: 113881
-
Johnny Chen authored
llvm-svn: 113879
-
Johnny Chen authored
as it now passes. Added some extra tests to breakpoint_creation_by_filespec_python(). More clarification for the "os command" output and error as defined in lldbtest.system() function. Cleaned up the option processing of the test driver (dotest.py) and fixed the comment about enabling gdb-remote logging. Example: $ GDB_REMOTE_LOG=/tmp/log.txt ./dotest.py -v -t enum_types llvm-svn: 113868
-
- Sep 14, 2010
-
-
Johnny Chen authored
was used to set the selected thread if none was selected. Use a more robust API to accomplish the task. Also fixed an error found, while investigating, in CommandObjectThreadSelect:: Execute() where the return status was not properly set if successful. As a result, both the stl step-in test cases with expectedFailure decorators now passed. llvm-svn: 113825
-
- Sep 13, 2010
-
-
Johnny Chen authored
the binaries. If the build* function is passed the compiler argument, for example, 'llvm-gcc', it is passed as a make variable to the make command. Otherwise, we check the LLDB_CC environment variable; if it is defined, it is passed as a make variable to the make command. If neither the compiler keyword argument nor the LLDB_CC environment variable is specified, no CC make variable is passed to the make command. The Makefile gets to define the default CC being used. -------------------------------------------------------------------------------- Example usage follows: o Via the keyword argument: class ArrayTypesTestCase(TestBase): mydir = "array_types" @unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin") def test_with_dsym_and_run_command(self): """Test 'frame variable var_name' on some variables with array types.""" self.buildDsym(compiler='llvm-gcc') self.array_types() ... o Via LLDB_CC environment variable: $ LLDB_CC=llvm-gcc ./dotest.py -v -t array_types ---------------------------------------------------------------------- Collected 4 tests test_with_dsym_and_python_api (TestArrayTypes.ArrayTypesTestCase) Use Python APIs to inspect variables with array types. ... os command: [['/bin/sh', '-c', 'make clean; make MAKE_DSYM=YES CC=llvm-gcc']] output: rm -rf "a.out" "a.out.dSYM" main.o main.d llvm-gcc -arch x86_64 -gdwarf-2 -O0 -arch x86_64 -gdwarf-2 -O0 -c -o main.o main.c llvm-gcc -arch x86_64 -gdwarf-2 -O0 main.o -o "a.out" /usr/bin/dsymutil -o "a.out.dSYM" "a.out" ... llvm-svn: 113781
-
Johnny Chen authored
llvm-svn: 113756
-
Johnny Chen authored
llvm-svn: 113755
-
Johnny Chen authored
llvm-svn: 113753
-
Johnny Chen authored
llvm-svn: 113751
-
Johnny Chen authored
llvm-svn: 113750
-
Johnny Chen authored
llvm-svn: 113748
-
Greg Clayton authored
llvm-svn: 113732
-
Greg Clayton authored
static class array. It turns out that gcc 4.2 will emit DWARF that correctly describes the PointType, but it will incorrectly emit debug info for the "g_points" array where the following things are wrong: - the DW_TAG_array_type won't have a subrange info - the DW_TAG_variable for "g_points" won't have a valid byte size, so even though we know the size of PointType, we can't infer the actual size of the array by dividing the size of the variable by the number of elements. We want to make sure clang and llvm-gcc handle this correctly. llvm-svn: 113730
-
- Sep 11, 2010
-
-
Johnny Chen authored
to specify a one-liner (either scripting or lldb command) inline. Refactored CommandObjectBreakpointCommandAdd::Execute() a little bit and added some comments. Sn now, we use: breakpoint command add -p 1 -o "conditional_break.stop_if_called_from_a()" to specify a Python one-liner as the callback for breakpoint #1. llvm-svn: 113672
-
- Sep 10, 2010
-
-
Johnny Chen authored
llvm-svn: 113598
-