- Oct 14, 2010
-
-
Johnny Chen authored
and 'process handle'. The test suite would like to control the asynch/sync execution of the interpreter during the middle of the test method, so the CommandInterpreter::SetSynchronous(bool value) is modified to allow the mode to be changed more than once. In practice, it would be advisable to control the process and to set the async/sync mode from a single thread, too. llvm-svn: 116467
-
Johnny Chen authored
which broke test/breakpoint_locations. Add a comment about intentional fall-through in the case statement. llvm-svn: 116463
-
- Oct 13, 2010
-
-
Caroline Tice authored
Add missing break statment to case statement in Process::ShouldBroadcastEvent. Add new command, "process handle" to allow users to control process behavior on the receipt of various Unix signals (whether the process should stop; whether the process should be passed the signal; whether the debugger user should be notified that the signal came in). llvm-svn: 116430
-
Johnny Chen authored
llvm-svn: 116420
-
Johnny Chen authored
not 'frame variable var'. llvm-svn: 116419
-
Greg Clayton authored
Default "frame variable" to not show types before values by default. You now enable type display with --show-types or -t (instead of disabling it with --no-types or -t). llvm-svn: 116418
-
Johnny Chen authored
for test_with_dwarf_and_run_command(self). llvm-svn: 116416
-
Greg Clayton authored
artifical members (like the vtable pointer member that shows up in the DWARF). We were adding this to each class which was making all member variables be off by a pointer size. Added a test case so we can track this with "test/forward". Fixed the type name index in DWARF to include all the types after finding some types were being omitted due to the DW_AT_specification having the DW_AT_declaration attribute which was being read into the real type instances when there were forward declarations in the DWARF, causing the type to be omitted. We now check to make sure any DW_AT_declaration values are only respected when parsing types if the attribute is from the current DIE. After fixing the missing types, we ran into some issues with the expression parser finding duplicate entries for __va_list_tag since they are built in types and would result in a "duplicate __va_list_tag definition" error. We are now just ignoring this name during lookup, but we will need to see if we can get the name lookup function to not get called in these cases. Fixed an issue that would cause an assertion where DW_TAG_subroutine_types that had no children, would not properly make a clang function type of: "void (*) (void)". llvm-svn: 116392
-
Johnny Chen authored
function to get the line numbers for breakpoints 1-5 during setUp(). Use a pattern to match the output from both gcc-compiled and clang-compiled binary. This finishes the conversion of the test suite to avoid hardcoded line numbers when setting breakpoints with either the lldb command: breakpoint set -f filename -l lineno or the Python API: target.BreakpointCreateByLocation(filename, lineno) llvm-svn: 116378
-
Johnny Chen authored
function to get the line number to break on during setUp(). Use a pattern to match the output from both gcc-compiled and clang-compiled binary. llvm-svn: 116374
-
Johnny Chen authored
function to get the line number to break on as well as the line number of the first executable statement during setUp(). llvm-svn: 116369
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116363
-
Johnny Chen authored
debug info which results in the breakpoint locations of 3, instead of 1 (as in gcc). llvm-svn: 116361
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116358
-
Caroline Tice authored
from being alias-able. llvm-svn: 116357
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116356
-
Johnny Chen authored
function to get the line number to break on during setUp(). Also modify main.c to use g_file_static_cstr within main() so clang does not optimize this variable out. llvm-svn: 116355
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116352
-
Caroline Tice authored
llvm-svn: 116351
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116350
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116349
-
- Oct 12, 2010
-
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116346
-
Caroline Tice authored
Add call to lldb.SBDebugger.Initialize() to lldb.py, so it automatically gets called when the lldb Python module gets loaded. llvm-svn: 116345
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116344
-
Johnny Chen authored
llvm-svn: 116343
-
Johnny Chen authored
different configuration-based files using the config file. For example: sys.stderr = open("/tmp/lldbtest-stderr", "w") sys.stdout = open("/tmp/lldbtest-stdout", "w") compilers = ["gcc", "llvm-gcc"] archs = ["x86_64", "i386"] split_stderr = True # This will split the stderr into configuration-specific file split_stdout = True # This will split the stdout into configuration-specific file will produce: /tmp/lldbtest-stderr /tmp/lldbtest-stderr.arch=i386-compiler=gcc /tmp/lldbtest-stderr.arch=i386-compiler=llvm-gcc /tmp/lldbtest-stderr.arch=x86_64-compiler=gcc /tmp/lldbtest-stderr.arch=x86_64-compiler=llvm-gcc /tmp/lldbtest-stdout /tmp/lldbtest-stdout.arch=i386-compiler=gcc /tmp/lldbtest-stdout.arch=i386-compiler=llvm-gcc /tmp/lldbtest-stdout.arch=x86_64-compiler=gcc /tmp/lldbtest-stdout.arch=x86_64-compiler=llvm-gcc as a result of splitting stderr and stdout. In addition, each configuration can have its individual top level relocated directory to house the test files as well as the intermediate files by using '-r dir' to relocate the tests into a new relocated directory instead of running the tests in place. llvm-svn: 116341
-
Johnny Chen authored
llvm-svn: 116340
-
Johnny Chen authored
rdar://problem/8542091 test/foundation: expr -o -- my not working? Add an additional test for 'frame variable *self' when stopped in '-[MyString initWithNSString:]' and move the 'expr -o -- self' to after MyString has been constructed and change it to 'expr -o -- my'. llvm-svn: 116337
-
Johnny Chen authored
expanding the regular expression command. So change the more stringent: self.expect(..., startstr = matching_string) to: self.expect(..., substrs = [matched_string]) to pass the test. llvm-svn: 116331
-
Greg Clayton authored
Regular expression commands now print the command that results from expanding the regular expression command. llvm-svn: 116320
-
Caroline Tice authored
llvm-svn: 116316
-
Greg Clayton authored
shlib. llvm-svn: 116315
-
Johnny Chen authored
llvm-svn: 116309
-
Greg Clayton authored
function. It will inspect NAME and do the following: - if the name contains '(' or starts with "-[" or "+[" then a full name search will happen to match full function names with args (C++ demangled names) or full objective C method prototypes. - if the name contains "::" and no '(', then it is assumed to be a qualified function name that is in a namespace or class. For "foo::bar::baz" we will search for any functions with the basename or method name of "baz", then filter the results to only those that contain "foo::bar::baz". This allows setting breakpoint on C++ functions and methods without having to fully qualify all of the types that would appear in C++ mangled names. - if the name contains ":" (not "::"), then NAME is assumed to be an ObjC selector. _ otherwise, we assume just a plain function basename. Now that "--name" is our "auto" mode, I introduced the new "--basename" option ("breakpoint set --basename NAME") to allow for function names that aren't methods or selectors, just basenames. This can also be used to ignore C++ namespaces and class hierarchies for class methods. Fixed clang enumeration promotion types to be correct. llvm-svn: 116293
-
Greg Clayton authored
being chopped up correctly). The DWARF plug-in also keeps a map of the ObjC class names to selectors for easy parsing of all class selectors when we parse the class type. llvm-svn: 116290
-
Johnny Chen authored
function to get the line number to break on during setUp(). llvm-svn: 116275
-
Jim Ingham authored
llvm-svn: 116271
-
Johnny Chen authored
within a file. This is to be used within the test case to avoid hardcoded line number. array_types/TestArrayTypes.py is modified first to use this pattern. Other test modules to follow. rdar://problem/8537816 Testsuite: don't set breakpoints by exact file & line number llvm-svn: 116270
-
Johnny Chen authored
files to a different top level directory than those specified on the command line. When relocated, the test clanups normally performed afterwards after each test method and after each test class will not be exercised at all. This allows for an easier postmortem analysis of test failures. Example: ./dotest.py -v -t -r /tmp/lldbtest types will create a /tmp/lldbtest directory which houses the types directory and its supported files. Files modified: o dotest.py, lldbtest.py: Add logic to process '-r dir' option to support relocating the tests to a different top level directory instead of exected in place. o darwin.py, test/types/Makefile: The 'make clean' should only clean the minimum .o and .d files. llvm-svn: 116255
-
- Oct 11, 2010
-
-
Johnny Chen authored
llvm-svn: 116206
-