[Lldb-commits] [lldb] r251532 - Move lldb/test to lldb/packages/Python/lldbsuite/test.

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Wed Oct 28 10:43:43 PDT 2015


Removed: lldb/trunk/test/functionalities/register/TestRegisters.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/register/TestRegisters.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/register/TestRegisters.py (original)
+++ lldb/trunk/test/functionalities/register/TestRegisters.py (removed)
@@ -1,357 +0,0 @@
-"""
-Test the 'register' command.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, sys, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-class RegisterCommandsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        TestBase.setUp(self)
-        self.has_teardown = False
-
-    def tearDown(self):
-        self.dbg.GetSelectedTarget().GetProcess().Destroy()
-        TestBase.tearDown(self)
-
-    def test_register_commands(self):
-        """Test commands related to registers, in particular vector registers."""
-        if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']:
-            self.skipTest("This test requires x86 or x86_64 as the architecture for the inferior")
-        self.build()
-        self.register_commands()
-
-    @skipIfTargetAndroid(archs=["i386"]) # Writing of mxcsr register fails, presumably due to a kernel/hardware problem
-    def test_fp_register_write(self):
-        """Test commands that write to registers, in particular floating-point registers."""
-        if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']:
-            self.skipTest("This test requires x86 or x86_64 as the architecture for the inferior")
-        self.build()
-        self.fp_register_write()
-
-    @expectedFailureAndroid(archs=["i386"]) # "register read fstat" always return 0xffff
-    @skipIfFreeBSD    #llvm.org/pr25057
-    def test_fp_special_purpose_register_read(self):
-        """Test commands that read fpu special purpose registers."""
-        if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']:
-            self.skipTest("This test requires x86 or x86_64 as the architecture for the inferior")
-        self.build()
-        self.fp_special_purpose_register_read()
-
-    def test_register_expressions(self):
-        """Test expression evaluation with commands related to registers."""
-        if not self.getArchitecture() in ['amd64', 'i386', 'x86_64']:
-            self.skipTest("This test requires x86 or x86_64 as the architecture for the inferior")
-        self.build()
-        self.register_expressions()
-
-    def test_convenience_registers(self):
-        """Test convenience registers."""
-        if not self.getArchitecture() in ['amd64', 'x86_64']:
-            self.skipTest("This test requires x86_64 as the architecture for the inferior")
-        self.build()
-        self.convenience_registers()
-
-    def test_convenience_registers_with_process_attach(self):
-        """Test convenience registers after a 'process attach'."""
-        if not self.getArchitecture() in ['amd64', 'x86_64']:
-            self.skipTest("This test requires x86_64 as the architecture for the inferior")
-        self.build()
-        self.convenience_registers_with_process_attach(test_16bit_regs=False)
-
-    def test_convenience_registers_16bit_with_process_attach(self):
-        """Test convenience registers after a 'process attach'."""
-        if not self.getArchitecture() in ['amd64', 'x86_64']:
-            self.skipTest("This test requires x86_64 as the architecture for the inferior")
-        self.build()
-        self.convenience_registers_with_process_attach(test_16bit_regs=True)
-
-    def common_setup(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break in main().
-        lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped', 'stop reason = breakpoint'])
-
-    def remove_log(self):
-        """ Remove the temporary log file generated by some tests."""
-        if os.path.exists(self.log_file):
-            os.remove(self.log_file)
-
-    # platform specific logging of the specified category
-    def log_enable(self, category):
-        # This intentionally checks the host platform rather than the target
-        # platform as logging is host side.
-        self.platform = ""
-        if sys.platform.startswith("darwin"):
-            self.platform = "" # TODO: add support for "log enable darwin registers"
-
-        if sys.platform.startswith("freebsd"):
-            self.platform = "freebsd"
-
-        if sys.platform.startswith("linux"):
-            self.platform = "linux"
-
-        if self.platform != "":
-            self.log_file = os.path.join(os.getcwd(), 'TestRegisters.log')
-            self.runCmd("log enable " + self.platform + " " + str(category) + " registers -v -f " + self.log_file, RUN_SUCCEEDED)
-            if not self.has_teardown:
-                self.has_teardown = True
-                self.addTearDownHook(self.remove_log)
-
-    def register_commands(self):
-        """Test commands related to registers, in particular vector registers."""
-        self.common_setup()
-
-        # verify that logging does not assert
-        self.log_enable("registers")
-
-        self.expect("register read -a", MISSING_EXPECTED_REGISTERS,
-            substrs = ['registers were unavailable'], matching = False)
-        self.runCmd("register read xmm0")
-        self.runCmd("register read ymm15") # may be available
-
-        self.expect("register read -s 3",
-            substrs = ['invalid register set index: 3'], error = True)
-
-    def write_and_restore(self, frame, register, must_exist = True):
-        value = frame.FindValue(register, lldb.eValueTypeRegister)
-        if must_exist:
-            self.assertTrue(value.IsValid(), "finding a value for register " + register)
-        elif not value.IsValid():
-            return # If register doesn't exist, skip this test
-
-        error = lldb.SBError()
-        register_value = value.GetValueAsUnsigned(error, 0)
-        self.assertTrue(error.Success(), "reading a value for " + register)
-
-        self.runCmd("register write " + register + " 0xff0e")
-        self.expect("register read " + register,
-            substrs = [register + ' = 0x', 'ff0e'])
-
-        self.runCmd("register write " + register + " " + str(register_value))
-        self.expect("register read " + register,
-            substrs = [register + ' = 0x'])
-
-    def vector_write_and_read(self, frame, register, new_value, must_exist = True):
-        value = frame.FindValue(register, lldb.eValueTypeRegister)
-        if must_exist:
-            self.assertTrue(value.IsValid(), "finding a value for register " + register)
-        elif not value.IsValid():
-            return # If register doesn't exist, skip this test
-
-        self.runCmd("register write " + register + " \'" + new_value + "\'")
-        self.expect("register read " + register,
-            substrs = [register + ' = ', new_value])
-
-    def fp_special_purpose_register_read(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Launch the process and stop.
-        self.expect ("run", PROCESS_STOPPED, substrs = ['stopped'])
-
-        # Check stop reason; Should be either signal SIGTRAP or EXC_BREAKPOINT
-        output = self.res.GetOutput()
-        matched = False
-        substrs = ['stop reason = EXC_BREAKPOINT', 'stop reason = signal SIGTRAP']
-        for str1 in substrs:
-            matched = output.find(str1) != -1
-            with recording(self, False) as sbuf:
-                print("%s sub string: %s" % ('Expecting', str1), file=sbuf)
-                print("Matched" if matched else "Not Matched", file=sbuf)
-            if matched:
-                break
-        self.assertTrue(matched, STOPPED_DUE_TO_SIGNAL)
-
-        process = target.GetProcess()
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        thread = process.GetThreadAtIndex(0)
-        self.assertTrue(thread.IsValid(), "current thread is valid")
-
-        currentFrame = thread.GetFrameAtIndex(0)
-        self.assertTrue(currentFrame.IsValid(), "current frame is valid")
-
-        # Extract the value of fstat and ftag flag at the point just before
-        # we start pushing floating point values on st% register stack
-        value = currentFrame.FindValue("fstat", lldb.eValueTypeRegister)
-        error = lldb.SBError()
-        reg_value_fstat_initial = value.GetValueAsUnsigned(error, 0)
-
-        self.assertTrue(error.Success(), "reading a value for fstat")
-        value = currentFrame.FindValue("ftag", lldb.eValueTypeRegister)
-        error = lldb.SBError()
-        reg_value_ftag_initial = value.GetValueAsUnsigned(error, 0)
-
-        self.assertTrue(error.Success(), "reading a value for ftag")
-        fstat_top_pointer_initial = (reg_value_fstat_initial & 0x3800)>>11
-
-        # Execute 'si' aka 'thread step-inst' instruction 5 times and with
-        # every execution verify the value of fstat and ftag registers
-        for x in range(0,5):
-            # step into the next instruction to push a value on 'st' register stack
-            self.runCmd ("si", RUN_SUCCEEDED)
-
-            # Verify fstat and save it to be used for verification in next execution of 'si' command
-            if not (reg_value_fstat_initial & 0x3800):
-                self.expect("register read fstat",
-                    substrs = ['fstat' + ' = ', str("0x%0.4x" %((reg_value_fstat_initial & ~(0x3800))| 0x3800))])
-                reg_value_fstat_initial = ((reg_value_fstat_initial & ~(0x3800))| 0x3800)
-                fstat_top_pointer_initial = 7
-            else :
-                self.expect("register read fstat",
-                    substrs = ['fstat' + ' = ', str("0x%0.4x" % (reg_value_fstat_initial - 0x0800))])
-                reg_value_fstat_initial = (reg_value_fstat_initial - 0x0800)
-                fstat_top_pointer_initial -= 1
-
-            # Verify ftag and save it to be used for verification in next execution of 'si' command
-            self.expect("register read ftag",
-                substrs = ['ftag' + ' = ', str("0x%0.2x" % (reg_value_ftag_initial | (1<< fstat_top_pointer_initial)))])
-            reg_value_ftag_initial = reg_value_ftag_initial | (1<< fstat_top_pointer_initial)
-
-    def fp_register_write(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1)
-
-        # Launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        process = target.GetProcess()
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        thread = process.GetThreadAtIndex(0)
-        self.assertTrue(thread.IsValid(), "current thread is valid")
-
-        currentFrame = thread.GetFrameAtIndex(0)
-        self.assertTrue(currentFrame.IsValid(), "current frame is valid")
-
-        self.write_and_restore(currentFrame, "fcw", False)
-        self.write_and_restore(currentFrame, "fsw", False)
-        self.write_and_restore(currentFrame, "ftw", False)
-        self.write_and_restore(currentFrame, "ip", False)
-        self.write_and_restore(currentFrame, "dp", False)
-        self.write_and_restore(currentFrame, "mxcsr", False)
-        self.write_and_restore(currentFrame, "mxcsrmask", False)
-
-        st0regname = "st0"
-        if currentFrame.FindRegister(st0regname).IsValid() == False:
-                st0regname = "stmm0"
-        if currentFrame.FindRegister(st0regname).IsValid() == False:
-                return # TODO: anything smarter here
-
-        new_value = "{0x01 0x02 0x03 0x00 0x00 0x00 0x00 0x00 0x00 0x00}"
-        self.vector_write_and_read(currentFrame, st0regname, new_value)
-
-        new_value = "{0x01 0x02 0x03 0x00 0x00 0x00 0x00 0x00 0x09 0x0a 0x2f 0x2f 0x2f 0x2f 0x2f 0x2f}"
-        self.vector_write_and_read(currentFrame, "xmm0", new_value)
-        new_value = "{0x01 0x02 0x03 0x00 0x00 0x00 0x00 0x00 0x09 0x0a 0x2f 0x2f 0x2f 0x2f 0x0e 0x0f}"
-        self.vector_write_and_read(currentFrame, "xmm15", new_value, False)
-
-        self.runCmd("register write " + st0regname + " \"{0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00}\"")
-        self.expect("register read " + st0regname + " --format f",
-            substrs = [st0regname + ' = 0'])
-
-        has_avx = False 
-        registerSets = currentFrame.GetRegisters() # Returns an SBValueList.
-        for registerSet in registerSets:
-            if 'advanced vector extensions' in registerSet.GetName().lower():
-                has_avx = True
-                break
-
-        if has_avx:
-            new_value = "{0x01 0x02 0x03 0x00 0x00 0x00 0x00 0x00 0x09 0x0a 0x2f 0x2f 0x2f 0x2f 0x0e 0x0f 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x0c 0x0d 0x0e 0x0f}"
-            self.vector_write_and_read(currentFrame, "ymm0", new_value)
-            self.vector_write_and_read(currentFrame, "ymm7", new_value)
-            self.expect("expr $ymm0", substrs = ['vector_type'])
-        else:
-            self.runCmd("register read ymm0")
-
-    def register_expressions(self):
-        """Test expression evaluation with commands related to registers."""
-        self.common_setup()
-
-        self.expect("expr/x $eax",
-            substrs = ['unsigned int', ' = 0x'])
-
-        if self.getArchitecture() in ['amd64', 'x86_64']:
-            self.expect("expr -- ($rax & 0xffffffff) == $eax",
-                substrs = ['true'])
-
-        self.expect("expr $xmm0",
-            substrs = ['vector_type'])
-
-        self.expect("expr (unsigned int)$xmm0[0]",
-            substrs = ['unsigned int'])
-
-    def convenience_registers(self):
-        """Test convenience registers."""
-        self.common_setup()
-
-        # The command "register read -a" does output a derived register like eax...
-        self.expect("register read -a", matching=True,
-            substrs = ['eax'])
-
-        # ...however, the vanilla "register read" command should not output derived registers like eax.
-        self.expect("register read", matching=False,
-            substrs = ['eax'])
-        
-        # Test reading of rax and eax.
-        self.expect("register read rax eax",
-            substrs = ['rax = 0x', 'eax = 0x'])
-
-        # Now write rax with a unique bit pattern and test that eax indeed represents the lower half of rax.
-        self.runCmd("register write rax 0x1234567887654321")
-        self.expect("register read rax 0x1234567887654321",
-            substrs = ['0x1234567887654321'])
-
-    def convenience_registers_with_process_attach(self, test_16bit_regs):
-        """Test convenience registers after a 'process attach'."""
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Spawn a new process
-        pid = self.spawnSubprocess(exe, ['wait_for_attach']).pid
-        self.addTearDownHook(self.cleanupSubprocesses)
-
-        if self.TraceOn():
-            print("pid of spawned process: %d" % pid)
-
-        self.runCmd("process attach -p %d" % pid)
-
-        # Check that "register read eax" works.
-        self.runCmd("register read eax")
-
-        if self.getArchitecture() in ['amd64', 'x86_64']:
-            self.expect("expr -- ($rax & 0xffffffff) == $eax",
-                substrs = ['true'])
-
-        if test_16bit_regs:
-            self.expect("expr -- $ax == (($ah << 8) | $al)",
-                substrs = ['true'])

Removed: lldb/trunk/test/functionalities/register/a.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/register/a.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/register/a.cpp (original)
+++ lldb/trunk/test/functionalities/register/a.cpp (removed)
@@ -1,42 +0,0 @@
-//===-- a.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-long double
-return_long_double (long double value)
-{
-    float a=2, b=4,c=8, d=16, e=32, f=64, k=128, l=256, add=0;
-    __asm__ (
-        "int3 ;"
-        "flds %1 ;"
-        "flds %2 ;"
-        "flds %3 ;"
-        "flds %4 ;"
-        "flds %5 ;"
-        "flds %6 ;"
-        "flds %7 ;"
-        "faddp ;" : "=g" (add) : "g" (a), "g" (b), "g" (c), "g" (d), "g" (e), "g" (f), "g" (k), "g" (l) );  // Set break point at this line.
-    return value;
-}
-
-long double
-outer_return_long_double (long double value)
-{
-    long double val = return_long_double(value);
-    val *= 2 ;
-    return val;
-}
-
-long double
-outermost_return_long_double (long double value)
-{
-    long double val = outer_return_long_double(value);
-    val *= 2 ;
-    return val;
-}

Removed: lldb/trunk/test/functionalities/register/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/register/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/register/main.cpp (original)
+++ lldb/trunk/test/functionalities/register/main.cpp (removed)
@@ -1,51 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-#if defined(__linux__)
-#include <sys/prctl.h>
-#endif
-
-#include <chrono>
-#include <thread>
-
-long double outermost_return_long_double (long double my_long_double);
-
-int main (int argc, char const *argv[])
-{
-#if defined(__linux__)
-    // Immediately enable any ptracer so that we can allow the stub attach
-    // operation to succeed.  Some Linux kernels are locked down so that
-    // only an ancestor process can be a ptracer of a process.  This disables that
-    // restriction.  Without it, attach-related stub tests will fail.
-#if defined(PR_SET_PTRACER) && defined(PR_SET_PTRACER_ANY)
-    // For now we execute on best effort basis.  If this fails for
-    // some reason, so be it.
-    const int prctl_result = prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0);
-    static_cast<void> (prctl_result);
-#endif
-#endif
-
-    char my_string[] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 0};
-    double my_double = 1234.5678;
-    long double my_long_double = 1234.5678;
-
-    // For simplicity assume that any cmdline argument means wait for attach.
-    if (argc > 1)
-    {
-        volatile int wait_for_attach=1;
-        while (wait_for_attach)
-            std::this_thread::sleep_for(std::chrono::microseconds(1));
-    }
-
-    printf("my_string=%s\n", my_string);
-    printf("my_double=%g\n", my_double);
-    outermost_return_long_double (my_long_double);
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/rerun/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/rerun/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/rerun/Makefile (original)
+++ lldb/trunk/test/functionalities/rerun/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/rerun/TestRerun.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/rerun/TestRerun.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/rerun/TestRerun.py (original)
+++ lldb/trunk/test/functionalities/rerun/TestRerun.py (removed)
@@ -1,76 +0,0 @@
-"""
-Test that argdumper is a viable launching strategy.
-"""
-from __future__ import print_function
-
-import use_lldb_suite
-
-import lldb
-import os
-import time
-from lldbtest import *
-import lldbutil
-
-class TestRerun(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test (self):
-        self.build()
-        exe = os.path.join (os.getcwd(), "a.out")
-        
-        self.runCmd("target create %s" % exe)
-        
-        # Create the target
-        target = self.dbg.CreateTarget(exe)
-        
-        # Create any breakpoints we need
-        breakpoint = target.BreakpointCreateBySourceRegex ('break here', lldb.SBFileSpec ("main.cpp", False))
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        self.runCmd("process launch 1 2 3")
-
-        process = self.process()
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        STOPPED_DUE_TO_BREAKPOINT)
-
-        thread = process.GetThreadAtIndex (0)
-
-        self.assertTrue (thread.IsValid(),
-                         "Process stopped at 'main' should have a valid thread");
-
-        stop_reason = thread.GetStopReason()
-        
-        self.assertTrue (stop_reason == lldb.eStopReasonBreakpoint,
-                         "Thread in process stopped in 'main' should have a stop reason of eStopReasonBreakpoint");
-
-        self.expect("frame variable argv[1]", substrs=['1'])
-        self.expect("frame variable argv[2]", substrs=['2'])
-        self.expect("frame variable argv[3]", substrs=['3'])
-        
-        # Let program exit
-        self.runCmd("continue")
-        
-        # Re-run with no args and make sure we still run with 1 2 3 as arguments as
-        # they should have been stored in "target.run-args"
-        self.runCmd("process launch")
-
-        process = self.process()
-        
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        STOPPED_DUE_TO_BREAKPOINT)
-
-        thread = process.GetThreadAtIndex (0)
-
-        self.assertTrue (thread.IsValid(),
-                         "Process stopped at 'main' should have a valid thread");
-
-        stop_reason = thread.GetStopReason()
-        
-        self.assertTrue (stop_reason == lldb.eStopReasonBreakpoint,
-                         "Thread in process stopped in 'main' should have a stop reason of eStopReasonBreakpoint");
-
-        self.expect("frame variable argv[1]", substrs=['1'])
-        self.expect("frame variable argv[2]", substrs=['2'])
-        self.expect("frame variable argv[3]", substrs=['3'])

Removed: lldb/trunk/test/functionalities/rerun/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/rerun/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/rerun/main.cpp (original)
+++ lldb/trunk/test/functionalities/rerun/main.cpp (removed)
@@ -1,5 +0,0 @@
-int 
-main (int argc, char const **argv)
-{
-    return 0; // break here
-}

Removed: lldb/trunk/test/functionalities/return-value/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/return-value/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/return-value/Makefile (original)
+++ lldb/trunk/test/functionalities/return-value/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-C_SOURCES := call-func.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/return-value/TestReturnValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/return-value/TestReturnValue.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/return-value/TestReturnValue.py (original)
+++ lldb/trunk/test/functionalities/return-value/TestReturnValue.py (removed)
@@ -1,211 +0,0 @@
-"""
-Test getting return-values correctly when stepping out
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ReturnValueTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailurei386
-    @expectedFailureWindows("llvm.org/pr24778")
-    @add_test_categories(['pyapi'])
-    def test_with_python(self):
-        """Test getting return values from stepping out."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        error = lldb.SBError()
-
-        self.target = self.dbg.CreateTarget(exe)
-        self.assertTrue(self.target, VALID_TARGET)
-
-        inner_sint_bkpt = self.target.BreakpointCreateByName("inner_sint", exe)
-        self.assertTrue(inner_sint_bkpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        self.process = self.target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(self.process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.assertTrue(self.process.GetState() == lldb.eStateStopped,
-                        STOPPED_DUE_TO_BREAKPOINT)
-
-        # Now finish, and make sure the return value is correct.
-        thread = lldbutil.get_stopped_thread (self.process, lldb.eStopReasonBreakpoint)
-
-        # inner_sint returns the variable value, so capture that here:
-        in_int = thread.GetFrameAtIndex(0).FindVariable ("value").GetValueAsSigned(error)
-        self.assertTrue (error.Success())
-
-        thread.StepOut();
-
-        self.assertTrue (self.process.GetState() == lldb.eStateStopped)
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-
-        frame = thread.GetFrameAtIndex(0)
-        fun_name = frame.GetFunctionName()
-        self.assertTrue (fun_name == "outer_sint")
-
-        return_value = thread.GetStopReturnValue()
-        self.assertTrue (return_value.IsValid())
-
-        ret_int = return_value.GetValueAsSigned(error)
-        self.assertTrue (error.Success())
-        self.assertTrue (in_int == ret_int)
-
-        # Run again and we will stop in inner_sint the second time outer_sint is called.  
-        #Then test stepping out two frames at once:
-
-        self.process.Continue()
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (self.process, inner_sint_bkpt)
-        self.assertTrue(len(thread_list) == 1)
-        thread = thread_list[0]
-
-        # We are done with the inner_sint breakpoint:
-        self.target.BreakpointDelete (inner_sint_bkpt.GetID())
-
-        frame = thread.GetFrameAtIndex(1)
-        fun_name = frame.GetFunctionName ()
-        self.assertTrue (fun_name == "outer_sint")
-        in_int = frame.FindVariable ("value").GetValueAsSigned(error)
-        self.assertTrue (error.Success())
-
-        thread.StepOutOfFrame (frame)
-
-        self.assertTrue (self.process.GetState() == lldb.eStateStopped)
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-        frame = thread.GetFrameAtIndex(0)
-        fun_name = frame.GetFunctionName()
-        self.assertTrue (fun_name == "main")
-
-        ret_value = thread.GetStopReturnValue()
-        self.assertTrue (return_value.IsValid())
-        ret_int = ret_value.GetValueAsSigned (error)
-        self.assertTrue (error.Success())
-        self.assertTrue (2 * in_int == ret_int)
-        
-        # Now try some simple returns that have different types:
-        inner_float_bkpt = self.target.BreakpointCreateByName("inner_float", exe)
-        self.assertTrue(inner_float_bkpt, VALID_BREAKPOINT)
-        self.process.Continue()
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (self.process, inner_float_bkpt)
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-
-        self.target.BreakpointDelete (inner_float_bkpt.GetID())
-
-        frame = thread.GetFrameAtIndex(0)
-        in_value = frame.FindVariable ("value")
-        in_float = float (in_value.GetValue())
-        thread.StepOut()
-
-        self.assertTrue (self.process.GetState() == lldb.eStateStopped)
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-
-        frame = thread.GetFrameAtIndex(0)
-        fun_name = frame.GetFunctionName()
-        self.assertTrue (fun_name == "outer_float")
-
-        return_value = thread.GetStopReturnValue()
-        self.assertTrue (return_value.IsValid())
-        return_float = float (return_value.GetValue())
-
-        self.assertTrue(in_float == return_float)
-
-        self.return_and_test_struct_value ("return_one_int")
-        self.return_and_test_struct_value ("return_two_int")
-        self.return_and_test_struct_value ("return_three_int")
-        self.return_and_test_struct_value ("return_four_int")
-        self.return_and_test_struct_value ("return_five_int")
-        
-        self.return_and_test_struct_value ("return_two_double")
-        self.return_and_test_struct_value ("return_one_double_two_float")
-        self.return_and_test_struct_value ("return_one_int_one_float_one_int")
-        
-        self.return_and_test_struct_value ("return_one_pointer")
-        self.return_and_test_struct_value ("return_two_pointer")
-        self.return_and_test_struct_value ("return_one_float_one_pointer")
-        self.return_and_test_struct_value ("return_one_int_one_pointer")
-        self.return_and_test_struct_value ("return_three_short_one_float")
-
-        self.return_and_test_struct_value ("return_one_int_one_double")
-        self.return_and_test_struct_value ("return_one_int_one_double_one_int")
-        self.return_and_test_struct_value ("return_one_short_one_double_one_short")
-        self.return_and_test_struct_value ("return_one_float_one_int_one_float")
-        self.return_and_test_struct_value ("return_two_float")
-        # I am leaving out the packed test until we have a way to tell CLANG 
-        # about alignment when reading DWARF for packed types.
-        #self.return_and_test_struct_value ("return_one_int_one_double_packed")
-        self.return_and_test_struct_value ("return_one_int_one_long")
-
-        # icc and gcc don't support this extension.
-        if self.getCompiler().endswith('clang'):
-            self.return_and_test_struct_value ("return_vector_size_float32_8")
-            self.return_and_test_struct_value ("return_vector_size_float32_16")
-            self.return_and_test_struct_value ("return_vector_size_float32_32")
-            self.return_and_test_struct_value ("return_ext_vector_size_float32_2")
-            self.return_and_test_struct_value ("return_ext_vector_size_float32_4")
-            self.return_and_test_struct_value ("return_ext_vector_size_float32_8")
-
-    def return_and_test_struct_value (self, func_name):
-        """Pass in the name of the function to return from - takes in value, returns value."""
-        
-        # Set the breakpoint, run to it, finish out.
-        bkpt = self.target.BreakpointCreateByName (func_name)
-        self.assertTrue (bkpt.GetNumResolvedLocations() > 0)
-
-        self.process.Continue ()
-
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (self.process, bkpt)
-
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-
-        self.target.BreakpointDelete (bkpt.GetID())
-
-        in_value = thread.GetFrameAtIndex(0).FindVariable ("value")
-        
-        self.assertTrue (in_value.IsValid())
-        num_in_children = in_value.GetNumChildren()
-
-        # This is a little hokey, but if we don't get all the children now, then
-        # once we've stepped we won't be able to get them?
-        
-        for idx in range(0, num_in_children):
-            in_child = in_value.GetChildAtIndex (idx)
-            in_child_str = in_child.GetValue()
-
-        thread.StepOut()
-        
-        self.assertTrue (self.process.GetState() == lldb.eStateStopped)
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-
-        # Assuming all these functions step out to main.  Could figure out the caller dynamically
-        # if that would add something to the test.
-        frame = thread.GetFrameAtIndex(0)
-        fun_name = frame.GetFunctionName()
-        self.assertTrue (fun_name == "main")
-
-        frame = thread.GetFrameAtIndex(0)
-        ret_value = thread.GetStopReturnValue()
-
-        self.assertTrue (ret_value.IsValid())
-
-        num_ret_children = ret_value.GetNumChildren()
-        self.assertTrue (num_in_children == num_ret_children)
-        for idx in range(0, num_ret_children):
-            in_child = in_value.GetChildAtIndex(idx)
-            ret_child = ret_value.GetChildAtIndex(idx)
-            in_child_str = in_child.GetValue()
-            ret_child_str = ret_child.GetValue()
-
-            self.assertEqual(in_child_str, ret_child_str)

Removed: lldb/trunk/test/functionalities/return-value/call-func.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/return-value/call-func.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/return-value/call-func.c (original)
+++ lldb/trunk/test/functionalities/return-value/call-func.c (removed)
@@ -1,407 +0,0 @@
-// Some convenient things to return:
-static char *g_first_pointer = "I am the first";
-static char *g_second_pointer = "I am the second";
-
-// First we have some simple functions that return standard types, ints, floats and doubles.
-// We have a function calling a function in a few cases to test that if you stop in the
-// inner function then do "up/fin" you get the return value from the outer-most frame.
-
-int 
-inner_sint (int value)
-{
-  return value;
-}
-
-int
-outer_sint (int value)
-{
-  int outer_value = 2 * inner_sint (value);
-  return outer_value;
-}
-
-float
-inner_float (float value)
-{
-  return value;
-}
-
-float 
-outer_float (float value)
-{
-  float outer_value = 2 * inner_float(value);
-  return outer_value;
-}
-
-double 
-return_double (double value)
-{
-  return value;
-}
-
-long double 
-return_long_double (long double value)
-{
-  return value;
-}
-
-char *
-return_pointer (char *value)
-{
-  return value;
-}
-
-struct one_int
-{
-  int one_field;
-};
-
-struct one_int
-return_one_int (struct one_int value)
-{
-  return value;
-}
-
-struct two_int
-{
-  int first_field;
-  int second_field;
-};
-
-struct two_int
-return_two_int (struct two_int value)
-{
-  return value;
-}
-
-struct three_int
-{
-  int first_field;
-  int second_field;
-  int third_field;
-};
-
-struct three_int
-return_three_int (struct three_int value)
-{
-  return value;
-}
-
-struct four_int
-{
-  int first_field;
-  int second_field;
-  int third_field;
-  int fourth_field;
-};
-
-struct four_int
-return_four_int (struct four_int value)
-{
-  return value;
-}
-
-struct five_int
-{
-  int first_field;
-  int second_field;
-  int third_field;
-  int fourth_field;
-  int fifth_field;
-};
-
-struct five_int
-return_five_int (struct five_int value)
-{
-  return value;
-}
-
-struct one_int_one_double
-{
-  int first_field;
-  double second_field;
-};
-
-struct one_int_one_double
-return_one_int_one_double (struct one_int_one_double value)
-{
-  return value;
-}
-
-struct one_int_one_double_one_int
-{
-  int one_field;
-  double second_field;
-  int third_field;
-};
-
-struct one_int_one_double_one_int
-return_one_int_one_double_one_int (struct one_int_one_double_one_int value)
-{
-  return value;
-}
-
-struct one_short_one_double_one_short
-{
-  int one_field;
-  double second_field;
-  int third_field;
-};
-
-struct one_short_one_double_one_short
-return_one_short_one_double_one_short (struct one_short_one_double_one_short value)
-{
-  return value;
-}
-
-struct three_short_one_float
-{
-  short one_field;
-  short second_field;
-  short third_field;
-  float fourth_field;
-};
-
-struct three_short_one_float
-return_three_short_one_float (struct three_short_one_float value)
-{
-  return value;
-}
-
-struct one_int_one_float_one_int
-{
-  int one_field;
-  float second_field;
-  int third_field;
-};
-
-struct one_int_one_float_one_int
-return_one_int_one_float_one_int (struct one_int_one_float_one_int value)
-{
-  return value;
-}
-
-struct one_float_one_int_one_float
-{
-  float one_field;
-  int second_field;
-  float third_field;
-};
-
-struct one_float_one_int_one_float
-return_one_float_one_int_one_float (struct one_float_one_int_one_float value)
-{
-  return value;
-}
-
-struct one_double_two_float
-{
-  double one_field;
-  float second_field;
-  float third_field;
-};
-
-struct one_double_two_float
-return_one_double_two_float (struct one_double_two_float value)
-{
-  return value;
-}
-
-struct two_double
-{
-  double first_field;
-  double second_field;
-};
-
-struct two_double
-return_two_double (struct two_double value)
-{
-  return value;
-}
-
-struct two_float
-{
-  float first_field;
-  float second_field;
-};
-
-struct two_float
-return_two_float (struct two_float value)
-{
-  return value;
-}
-
-struct one_int_one_double_packed
-{
-  int first_field;
-  double second_field;
-} __attribute__((__packed__));
-
-struct one_int_one_double_packed
-return_one_int_one_double_packed (struct one_int_one_double_packed value)
-{
-  return value;
-}
-
-struct one_int_one_long
-{
-  int first_field;
-  long second_field;
-};
-
-struct one_int_one_long
-return_one_int_one_long (struct one_int_one_long value)
-{
-  return value;
-}
-
-struct one_pointer
-{
-  char *first_field;
-};
-
-struct one_pointer
-return_one_pointer (struct one_pointer value)
-{
-  return value;
-}
-
-struct two_pointer
-{
-  char *first_field;
-  char *second_field;
-};
-
-struct two_pointer
-return_two_pointer (struct two_pointer value)
-{
-  return value;
-}
-
-struct one_float_one_pointer
-{
-  float first_field;
-  char *second_field;
-};
-
-struct one_float_one_pointer
-return_one_float_one_pointer (struct one_float_one_pointer value)
-{
-  return value;
-}
-
-struct one_int_one_pointer
-{
-  int first_field;
-  char *second_field;
-};
-
-struct one_int_one_pointer
-return_one_int_one_pointer (struct one_int_one_pointer value)
-{
-  return value;
-}
-
-typedef float vector_size_float32_8 __attribute__((__vector_size__(8)));
-typedef float vector_size_float32_16 __attribute__((__vector_size__(16)));
-typedef float vector_size_float32_32 __attribute__((__vector_size__(32)));
-
-typedef float ext_vector_size_float32_2 __attribute__((ext_vector_type(2)));
-typedef float ext_vector_size_float32_4 __attribute__((ext_vector_type(4)));
-typedef float ext_vector_size_float32_8 __attribute__((ext_vector_type(8)));
-
-vector_size_float32_8
-return_vector_size_float32_8 (vector_size_float32_8 value)
-{
-    return value;
-}
-
-vector_size_float32_16
-return_vector_size_float32_16 (vector_size_float32_16 value)
-{
-    return value;
-}
-
-vector_size_float32_32
-return_vector_size_float32_32 (vector_size_float32_32 value)
-{
-    return value;
-}
-
-ext_vector_size_float32_2
-return_ext_vector_size_float32_2 (ext_vector_size_float32_2 value)
-{
-    return value;
-}
-
-ext_vector_size_float32_4
-return_ext_vector_size_float32_4 (ext_vector_size_float32_4 value)
-{
-    return value;
-}
-
-ext_vector_size_float32_8
-return_ext_vector_size_float32_8 (ext_vector_size_float32_8 value)
-{
-    return value;
-}
-
-int 
-main ()
-{
-  int first_int = 123456;
-  int second_int = 234567;
-
-  outer_sint (first_int);
-  outer_sint (second_int);
-
-  float first_float_value = 12.34;
-  float second_float_value = 23.45;
-
-  outer_float (first_float_value);
-  outer_float (second_float_value);
-
-  double double_value = -23.45;
-
-  return_double (double_value);
-
-  return_pointer(g_first_pointer);
-
-  long double long_double_value = -3456789.987654321;
-
-  return_long_double (long_double_value);
-
-  // Okay, now the structures:
-  return_one_int ((struct one_int) {10});
-  return_two_int ((struct two_int) {10, 20});
-  return_three_int ((struct three_int) {10, 20, 30});
-  return_four_int ((struct four_int) {10, 20, 30, 40});
-  return_five_int ((struct five_int) {10, 20, 30, 40, 50});
-
-  return_two_double ((struct two_double) {10.0, 20.0});
-  return_one_double_two_float ((struct one_double_two_float) {10.0, 20.0, 30.0});
-  return_one_int_one_float_one_int ((struct one_int_one_float_one_int) {10, 20.0, 30});
-
-  return_one_pointer ((struct one_pointer) {g_first_pointer});
-  return_two_pointer ((struct two_pointer) {g_first_pointer, g_second_pointer});
-  return_one_float_one_pointer ((struct one_float_one_pointer) {10.0, g_first_pointer});
-  return_one_int_one_pointer ((struct one_int_one_pointer) {10, g_first_pointer});
-  return_three_short_one_float ((struct three_short_one_float) {10, 20, 30, 40.0});
-
-  return_one_int_one_double ((struct one_int_one_double) {10, 20.0});
-  return_one_int_one_double_one_int ((struct one_int_one_double_one_int) {10, 20.0, 30});
-  return_one_short_one_double_one_short ((struct one_short_one_double_one_short) {10, 20.0, 30});
-  return_one_float_one_int_one_float ((struct one_float_one_int_one_float) {10.0, 20, 30.0});
-  return_two_float ((struct two_float) { 10.0, 20.0});
-  return_one_int_one_double_packed ((struct one_int_one_double_packed) {10, 20.0});
-  return_one_int_one_long ((struct one_int_one_long) {10, 20});
-
-  return_vector_size_float32_8 (( vector_size_float32_8 ){1.5, 2.25});
-  return_vector_size_float32_16 (( vector_size_float32_16 ){1.5, 2.25, 4.125, 8.0625});
-  return_vector_size_float32_32 (( vector_size_float32_32 ){1.5, 2.25, 4.125, 8.0625, 7.89, 8.52, 6.31, 9.12});
-
-  return_ext_vector_size_float32_2 ((ext_vector_size_float32_2){ 16.5, 32.25});
-  return_ext_vector_size_float32_4 ((ext_vector_size_float32_4){ 16.5, 32.25, 64.125, 128.0625});
-  return_ext_vector_size_float32_8 ((ext_vector_size_float32_8){ 16.5, 32.25, 64.125, 128.0625, 1.59, 3.57, 8.63, 9.12 });
-
-  return 0; 
-}

Removed: lldb/trunk/test/functionalities/set-data/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/set-data/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/set-data/Makefile (original)
+++ lldb/trunk/test/functionalities/set-data/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../make
-
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/functionalities/set-data/TestSetData.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/set-data/TestSetData.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/set-data/TestSetData.py (original)
+++ lldb/trunk/test/functionalities/set-data/TestSetData.py (removed)
@@ -1,62 +0,0 @@
-"""
-Set the contents of variables and registers using raw data
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SetDataTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipUnlessDarwin
-    def test_set_data(self):
-        """Test setting the contents of variables and registers using raw data."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        self.runCmd("br s -p First");
-        self.runCmd("br s -p Second");
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.expect("p myFoo.x", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['2'])
-
-        process = self.dbg.GetSelectedTarget().GetProcess()
-        frame = process.GetSelectedThread().GetFrameAtIndex(0)
-
-        x = frame.FindVariable("myFoo").GetChildMemberWithName("x")
-
-        my_data = lldb.SBData.CreateDataFromSInt32Array(lldb.eByteOrderLittle, 8, [4])
-        err = lldb.SBError()
-
-        self.assertTrue (x.SetData(my_data, err))
-
-        self.runCmd("continue")
-
-        self.expect("p myFoo.x", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['4'])
-
-        frame = process.GetSelectedThread().GetFrameAtIndex(0)
-
-        x = frame.FindVariable("string")
-
-        if process.GetAddressByteSize() == 8:
-            my_data = lldb.SBData.CreateDataFromUInt64Array(process.GetByteOrder(), 8, [0])
-        else:
-            my_data = lldb.SBData.CreateDataFromUInt32Array(process.GetByteOrder(), 4, [0])
-        
-        err = lldb.SBError()
-
-        self.assertTrue (x.SetData(my_data, err))
-
-        self.expect("fr var -d run-target string", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['NSString *', 'nil'])

Removed: lldb/trunk/test/functionalities/set-data/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/set-data/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/set-data/main.m (original)
+++ lldb/trunk/test/functionalities/set-data/main.m (removed)
@@ -1,19 +0,0 @@
-#import <Foundation/Foundation.h>
-
-int main ()
-{
-    @autoreleasepool
-    {
-        struct foo {
-            int x;
-            int y;
-        } myFoo;
-
-        myFoo.x = 2;
-        myFoo.y = 3;    // First breakpoint
-
-        NSString *string = [NSString stringWithFormat:@"%s", "Hello world!"];
-
-        NSLog(@"%d %@", myFoo.x, string); // Second breakpoint
-    }
-}

Removed: lldb/trunk/test/functionalities/signal/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/Makefile (original)
+++ lldb/trunk/test/functionalities/signal/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/signal/TestSendSignal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/TestSendSignal.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/TestSendSignal.py (original)
+++ lldb/trunk/test/functionalities/signal/TestSendSignal.py (removed)
@@ -1,105 +0,0 @@
-"""Test that lldb command 'process signal SIGUSR1' to send a signal to the inferior works."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time, signal
-import lldb
-from lldbtest import *
-import lldbutil
-
-
-class SendSignalTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', 'Put breakpoint here')
-
-    @expectedFailureFreeBSD("llvm.org/pr23318: does not report running state")
-    @skipIfWindows # Windows does not support signals
-    def test_with_run_command(self):
-        """Test that lldb command 'process signal SIGUSR1' sends a signal to the inferior process."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Now create a breakpoint on main.c by name 'c'.
-        breakpoint = target.BreakpointCreateByLocation('main.c', self.line)
-        self.assertTrue(breakpoint and
-                        breakpoint.GetNumLocations() == 1,
-                        VALID_BREAKPOINT)
-
-        # Get the breakpoint location from breakpoint after we verified that,
-        # indeed, it has one location.
-        location = breakpoint.GetLocationAtIndex(0)
-        self.assertTrue(location and
-                        location.IsEnabled(),
-                        VALID_BREAKPOINT_LOCATION)
-
-        # Now launch the process, no arguments & do not stop at entry point.
-        launch_info = lldb.SBLaunchInfo([exe])
-        launch_info.SetWorkingDirectory(self.get_process_working_directory())
-
-        process_listener = lldb.SBListener("signal_test_listener")
-        launch_info.SetListener(process_listener)
-        error = lldb.SBError()
-        process = target.Launch(launch_info, error)
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        self.runCmd("process handle -n False -p True -s True SIGUSR1")
-
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        self.assertTrue(thread.IsValid(), "We hit the first breakpoint.")
-
-        # After resuming the process, send it a SIGUSR1 signal.
-
-        self.setAsync(True)
-
-        self.assertTrue(process_listener.IsValid(), "Got a good process listener")
-
-        # Disable our breakpoint, we don't want to hit it anymore...
-        breakpoint.SetEnabled(False)
-
-        # Now continue:
-        process.Continue()
-
-        # If running remote test, there should be a connected event
-        if lldb.remote_platform:
-            self.match_state(process_listener, lldb.eStateConnected)
-
-        self.match_state(process_listener, lldb.eStateRunning)
-
-        # Now signal the process, and make sure it stops:
-        process.Signal(lldbutil.get_signal_number('SIGUSR1'))
-
-        self.match_state(process_listener, lldb.eStateStopped)
-
-        # Now make sure the thread was stopped with a SIGUSR1:
-        threads = lldbutil.get_stopped_threads(process, lldb.eStopReasonSignal)
-        self.assertTrue(len(threads) == 1, "One thread stopped for a signal.")
-        thread = threads[0]
-
-        self.assertTrue(thread.GetStopReasonDataCount() >= 1, "There was data in the event.")
-        self.assertTrue(thread.GetStopReasonDataAtIndex(0) == lldbutil.get_signal_number('SIGUSR1'),
-                "The stop signal was SIGUSR1")
-
-    def match_state(self, process_listener, expected_state):
-        num_seconds = 5
-        broadcaster = self.process().GetBroadcaster()
-        event_type_mask = lldb.SBProcess.eBroadcastBitStateChanged
-        event = lldb.SBEvent()
-        got_event = process_listener.WaitForEventForBroadcasterWithType(
-            num_seconds, broadcaster, event_type_mask, event)
-        self.assertTrue(got_event, "Got an event")
-        state = lldb.SBProcess.GetStateFromEvent(event)
-        self.assertTrue(state == expected_state,
-                        "It was the %s state." %
-                        lldb.SBDebugger_StateAsCString(expected_state))

Removed: lldb/trunk/test/functionalities/signal/handle-segv/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/handle-segv/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/handle-segv/Makefile (original)
+++ lldb/trunk/test/functionalities/signal/handle-segv/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py (original)
+++ lldb/trunk/test/functionalities/signal/handle-segv/TestHandleSegv.py (removed)
@@ -1,43 +0,0 @@
-"""Test that we can debug inferiors that handle SIGSEGV by themselves"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-import lldbutil
-import re
-
-
-class HandleSegvTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfWindows # signals do not exist on Windows
-    @skipIfDarwin
-    @expectedFailureFreeBSD("llvm.org/pr23699 SIGSEGV is reported as exception, not signal")
-    def test_inferior_handle_sigsegv(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # launch
-        process = target.LaunchSimple(None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        self.assertEqual(process.GetState(), lldb.eStateStopped)
-        signo = process.GetUnixSignals().GetSignalNumberFromName("SIGSEGV")
-
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal)
-        self.assertTrue(thread and thread.IsValid(), "Thread should be stopped due to a signal")
-        self.assertTrue(thread.GetStopReasonDataCount() >= 1, "There was data in the event.")
-        self.assertEqual(thread.GetStopReasonDataAtIndex(0), signo, "The stop signal was SIGSEGV")
-
-        # Continue until we exit.
-        process.Continue()
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), 0)

Removed: lldb/trunk/test/functionalities/signal/handle-segv/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/handle-segv/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/handle-segv/main.c (original)
+++ lldb/trunk/test/functionalities/signal/handle-segv/main.c (removed)
@@ -1,58 +0,0 @@
-#include <sys/mman.h>
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-
-enum {
-    kMmapSize = 0x1000,
-    kMagicValue = 47,
-};
-
-void *address;
-volatile sig_atomic_t signaled = 0;
-
-void handler(int sig)
-{
-    signaled = 1;
-    if (munmap(address, kMmapSize) != 0)
-    {
-        perror("munmap");
-        _exit(5);
-    }
-
-    void* newaddr = mmap(address, kMmapSize, PROT_READ | PROT_WRITE,
-            MAP_ANON | MAP_FIXED | MAP_PRIVATE, -1, 0);
-    if (newaddr != address)
-    {
-        fprintf(stderr, "Newly mmaped address (%p) does not equal old address (%p).\n",
-                newaddr, address);
-        _exit(6);
-    }
-    *(int*)newaddr = kMagicValue;
-}
-
-int main()
-{
-    if (signal(SIGSEGV, handler) == SIG_ERR)
-    {
-        perror("signal");
-        return 1;
-    }
-
-    address = mmap(NULL, kMmapSize, PROT_NONE, MAP_ANON | MAP_PRIVATE, -1, 0);
-    if (address == MAP_FAILED)
-    {
-        perror("mmap");
-        return 2;
-    }
-
-    // This should first trigger a segfault. Our handler will make the memory readable and write
-    // the magic value into memory.
-    if (*(int*)address != kMagicValue)
-        return 3;
-
-    if (! signaled)
-        return 4;
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/signal/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/main.c (original)
+++ lldb/trunk/test/functionalities/signal/main.c (removed)
@@ -1,27 +0,0 @@
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-
-void handler_usr1 (int i)
-{
-  puts ("got signal usr1");
-}
-
-void handler_alrm (int i)
-{
-  puts ("got signal ALRM");
-}
-
-int main ()
-{
-  int i = 0;
-
-  signal (SIGUSR1, handler_usr1);
-  signal (SIGALRM, handler_alrm);
-
-  puts ("Put breakpoint here");
-
-  while (i++ < 20)
-     sleep (1);
-}
-

Removed: lldb/trunk/test/functionalities/signal/raise/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/raise/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/raise/Makefile (original)
+++ lldb/trunk/test/functionalities/signal/raise/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/signal/raise/TestRaise.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/raise/TestRaise.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/raise/TestRaise.py (original)
+++ lldb/trunk/test/functionalities/signal/raise/TestRaise.py (removed)
@@ -1,221 +0,0 @@
-"""Test that we handle inferiors that send signals to themselves"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-import lldbutil
-import re
-
-
- at skipIfWindows # signals do not exist on Windows
-class RaiseTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_sigstop(self):
-        self.build()
-        self.signal_test('SIGSTOP', False)
-        # passing of SIGSTOP is not correctly handled, so not testing that scenario: https://llvm.org/bugs/show_bug.cgi?id=23574
-
-    @skipIfDarwin # darwin does not support real time signals
-    @skipIfTargetAndroid()
-    def test_sigsigrtmin(self):
-        self.build()
-        self.signal_test('SIGRTMIN', True)
-
-    def launch(self, target, signal):
-        # launch the process, do not stop at entry point.
-        process = target.LaunchSimple([signal], None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        self.assertEqual(process.GetState(), lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        self.assertTrue(thread.IsValid(), "Thread should be stopped due to a breakpoint")
-        return process
-
-    def set_handle(self, signal, pass_signal, stop_at_signal, notify_signal):
-        return_obj = lldb.SBCommandReturnObject()
-        self.dbg.GetCommandInterpreter().HandleCommand(
-                "process handle %s -p %s -s %s -n %s" % (signal, pass_signal, stop_at_signal, notify_signal),
-                return_obj)
-        self.assertTrue (return_obj.Succeeded() == True, "Setting signal handling failed")
-
-
-    def signal_test(self, signal, test_passing):
-        """Test that we handle inferior raising signals"""
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-        lldbutil.run_break_set_by_symbol(self, "main")
-
-        # launch
-        process = self.launch(target, signal)
-        signo = process.GetUnixSignals().GetSignalNumberFromName(signal)
-
-        # retrieve default signal disposition
-        return_obj = lldb.SBCommandReturnObject()
-        self.dbg.GetCommandInterpreter().HandleCommand("process handle %s " % signal, return_obj)
-        match = re.match('NAME *PASS *STOP *NOTIFY.*(false|true) *(false|true) *(false|true)',
-                return_obj.GetOutput(), re.IGNORECASE | re.DOTALL)
-        if not match:
-            self.fail('Unable to retrieve default signal disposition.')
-        default_pass = match.group(1)
-        default_stop = match.group(2)
-        default_notify = match.group(3)
-
-        # Make sure we stop at the signal
-        self.set_handle(signal, "false", "true", "true")
-        process.Continue()
-        self.assertEqual(process.GetState(), lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal)
-        self.assertTrue(thread.IsValid(), "Thread should be stopped due to a signal")
-        self.assertTrue(thread.GetStopReasonDataCount() >= 1, "There was data in the event.")
-        self.assertEqual(thread.GetStopReasonDataAtIndex(0), signo,
-                "The stop signal was %s" % signal)
-
-        # Continue until we exit.
-        process.Continue()
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), 0)
-
-        # launch again
-        process = self.launch(target, signal)
-
-        # Make sure we do not stop at the signal. We should still get the notification.
-        self.set_handle(signal, "false", "false", "true")
-        self.expect("process continue", substrs=["stopped and restarted", signal])
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), 0)
-
-        # launch again
-        process = self.launch(target, signal)
-
-        # Make sure we do not stop at the signal, and we do not get the notification.
-        self.set_handle(signal, "false", "false", "false")
-        self.expect("process continue", substrs=["stopped and restarted"], matching=False)
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), 0)
-
-        if not test_passing:
-            # reset signal handling to default
-            self.set_handle(signal, default_pass, default_stop, default_notify)
-            return
-
-        # launch again
-        process = self.launch(target, signal)
-
-        # Make sure we stop at the signal
-        self.set_handle(signal, "true", "true", "true")
-        process.Continue()
-        self.assertEqual(process.GetState(), lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal)
-        self.assertTrue(thread.IsValid(), "Thread should be stopped due to a signal")
-        self.assertTrue(thread.GetStopReasonDataCount() >= 1, "There was data in the event.")
-        self.assertEqual(thread.GetStopReasonDataAtIndex(0),
-                process.GetUnixSignals().GetSignalNumberFromName(signal),
-                "The stop signal was %s" % signal)
-
-        # Continue until we exit. The process should receive the signal.
-        process.Continue()
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), signo)
-
-        # launch again
-        process = self.launch(target, signal)
-
-        # Make sure we do not stop at the signal. We should still get the notification. Process
-        # should receive the signal.
-        self.set_handle(signal, "true", "false", "true")
-        self.expect("process continue", substrs=["stopped and restarted", signal])
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), signo)
-
-        # launch again
-        process = self.launch(target, signal)
-
-        # Make sure we do not stop at the signal, and we do not get the notification. Process
-        # should receive the signal.
-        self.set_handle(signal, "true", "false", "false")
-        self.expect("process continue", substrs=["stopped and restarted"], matching=False)
-        self.assertEqual(process.GetState(), lldb.eStateExited)
-        self.assertEqual(process.GetExitStatus(), signo)
-
-        # reset signal handling to default
-        self.set_handle(signal, default_pass, default_stop, default_notify)
-
-    @expectedFailureLinux("llvm.org/pr24530") # the signal the inferior generates gets lost
-    @expectedFailureDarwin("llvm.org/pr24530") # the signal the inferior generates gets lost
-    def test_restart_bug(self):
-        """Test that we catch a signal in the edge case where the process receives it while we are
-        about to interrupt it"""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-        bkpt = target.BreakpointCreateByName("main")
-        self.assertTrue(bkpt.IsValid(), VALID_BREAKPOINT)
-
-        # launch the inferior and don't wait for it to stop
-        self.dbg.SetAsync(True)
-        error = lldb.SBError()
-        listener = lldb.SBListener("my listener")
-        process = target.Launch (listener,
-                ["SIGSTOP"], # argv
-                None,        # envp
-                None,        # stdin_path
-                None,        # stdout_path
-                None,        # stderr_path
-                None,        # working directory
-                0,           # launch flags
-                False,       # Stop at entry
-                error)       # error
-
-        self.assertTrue(process and process.IsValid(), PROCESS_IS_VALID)
-
-        event = lldb.SBEvent()
-
-        # Give the child enough time to reach the breakpoint,
-        # while clearing out all the pending events.
-        # The last WaitForEvent call will time out after 2 seconds.
-        while listener.WaitForEvent(2, event):
-            if self.TraceOn():
-                print("Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event)))
-
-        # now the process should be stopped
-        self.assertEqual(process.GetState(), lldb.eStateStopped, PROCESS_STOPPED)
-        self.assertEqual(len(lldbutil.get_threads_stopped_at_breakpoint(process, bkpt)), 1,
-                "A thread should be stopped at breakpoint")
-
-        # Remove all breakpoints. This makes sure we don't have to single-step over them when we
-        # resume the process below
-        target.DeleteAllBreakpoints()
-
-        # resume the process and immediately try to set another breakpoint. When using the remote
-        # stub, this will trigger a request to stop the process just as it is about to stop
-        # naturally due to a SIGSTOP signal it raises. Make sure we do not lose this signal.
-        process.Continue()
-        self.assertTrue(target.BreakpointCreateByName("handler").IsValid(), VALID_BREAKPOINT)
-
-        # Clear the events again
-        while listener.WaitForEvent(2, event):
-            if self.TraceOn():
-                print("Process changing state to:", self.dbg.StateAsCString(process.GetStateFromEvent(event)))
-
-        # The process should be stopped due to a signal
-        self.assertEqual(process.GetState(), lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonSignal)
-        self.assertTrue(thread.IsValid(), "Thread should be stopped due to a signal")
-        self.assertTrue(thread.GetStopReasonDataCount() >= 1, "There was data in the event.")
-        signo = process.GetUnixSignals().GetSignalNumberFromName("SIGSTOP")
-        self.assertEqual(thread.GetStopReasonDataAtIndex(0), signo,
-                "The stop signal was %s" % signal)
-
-        # We are done
-        process.Kill()

Removed: lldb/trunk/test/functionalities/signal/raise/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/signal/raise/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/signal/raise/main.c (original)
+++ lldb/trunk/test/functionalities/signal/raise/main.c (removed)
@@ -1,42 +0,0 @@
-#include <signal.h>
-#include <stdio.h>
-#include <string.h>
-#include <unistd.h>
-
-void handler(int signo)
-{
-    _exit(signo);
-}
-
-int main (int argc, char *argv[])
-{
-#ifndef __APPLE__
-    // Real time signals not supported on apple platforms.
-    if (signal(SIGRTMIN, handler) == SIG_ERR)
-    {
-        perror("signal(SIGRTMIN)");
-        return 1;
-    }
-#endif
-
-    if (argc < 2)
-    {
-        puts("Please specify a signal to raise");
-        return 1;
-    }
-
-    if (strcmp(argv[1], "SIGSTOP") == 0)
-        raise(SIGSTOP);
-#ifndef __APPLE__
-    else if (strcmp(argv[1], "SIGRTMIN") == 0)
-        raise(SIGRTMIN);
-#endif
-    else
-    {
-        printf("Unknown signal: %s\n", argv[1]);
-        return 1;
-    }
-
-    return 0;
-}
-

Removed: lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/Makefile (original)
+++ lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py (original)
+++ lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/TestSingleQuoteInFilename.py (removed)
@@ -1,71 +0,0 @@
-"""
-Test the lldb command line takes a filename with single quote chars.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-
-class SingleQuoteInCommandLineTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    myexe = "path with '09/a.out"
-
-    @classmethod
-    def classCleanup(cls):
-        """Cleanup the test byproducts."""
-        try:
-            os.remove("child_send.txt")
-            os.remove("child_read.txt")
-            os.remove(cls.myexe)
-        except:
-            pass
-
-    @expectedFailureHostWindows("llvm.org/pr22274: need a pexpect replacement for windows")
-    @no_debug_info_test
-    def test_lldb_invocation_with_single_quote_in_filename(self):
-        """Test that 'lldb my_file_name' works where my_file_name is a string with a single quote char in it."""
-        import pexpect
-        self.buildDefault()
-        system([["cp", "a.out", "\"%s\"" % self.myexe]])
-
-        # The default lldb prompt.
-        prompt = "(lldb) "
-
-        # So that the child gets torn down after the test.
-        self.child = pexpect.spawn('%s %s "%s"' % (lldbtest_config.lldbExec, self.lldbOption, self.myexe))
-        child = self.child
-        child.setecho(True)
-        # Turn on logging for input/output to/from the child.
-        with open('child_send.txt', 'w') as f_send:
-            with open('child_read.txt', 'w') as f_read:
-                child.logfile_send = f_send
-                child.logfile_read = f_read
-
-                child.expect_exact(prompt)
-
-                child.send("help watchpoint")
-                child.sendline('')
-                child.expect_exact(prompt)
-
-        # Now that the necessary logging is done, restore logfile to None to
-        # stop further logging.
-        child.logfile_send = None
-        child.logfile_read = None
-        
-        with open('child_send.txt', 'r') as fs:
-            if self.TraceOn():
-                print("\n\nContents of child_send.txt:")
-                print(fs.read())
-        with open('child_read.txt', 'r') as fr:
-            from_child = fr.read()
-            if self.TraceOn():
-                print("\n\nContents of child_read.txt:")
-                print(from_child)
-
-            self.expect(from_child, exe=False,
-                substrs = ["Current executable set to"])

Removed: lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/main.c (original)
+++ lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/main.c (removed)
@@ -1,7 +0,0 @@
-#include <stdio.h>
-
-int main(int argc, const char *argv[])
-{
-    printf("Hello, world!\n");
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/path with '09/.keep
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/single-quote-in-filename-to-lldb/path%20with%20%2709/.keep?rev=251531&view=auto
==============================================================================
    (empty)

Removed: lldb/trunk/test/functionalities/step-avoids-no-debug/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/step-avoids-no-debug/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/step-avoids-no-debug/Makefile (original)
+++ lldb/trunk/test/functionalities/step-avoids-no-debug/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../make
-
-C_SOURCES := with-debug.c without-debug.c
-
-include $(LEVEL)/Makefile.rules
-
-without-debug.o: without-debug.c
-	$(CC) $(CFLAGS_NO_DEBUG) -c without-debug.c	

Removed: lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py (original)
+++ lldb/trunk/test/functionalities/step-avoids-no-debug/TestStepNoDebug.py (removed)
@@ -1,112 +0,0 @@
-"""
-Test thread step-in, step-over and step-out work with the "Avoid no debug" option.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import re
-import lldb, lldbutil
-import sys
-from lldbtest import *
-
-class ReturnValueTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @add_test_categories(['pyapi'])
-    def test_step_out_with_python(self):
-        """Test stepping out using avoid-no-debug with dsyms."""
-        self.build()
-        self.get_to_starting_point()
-        self.do_step_out_past_nodebug()
-
-    @add_test_categories(['pyapi'])
-    @expectedFailureGcc("llvm.org/pr19247")
-    def test_step_over_with_python(self):
-        """Test stepping over using avoid-no-debug with dwarf."""
-        self.build()
-        self.get_to_starting_point()
-        self.do_step_over_past_nodebug()
-
-    @add_test_categories(['pyapi'])
-    @expectedFailureGcc("llvm.org/pr19247")
-    def test_step_in_with_python(self):
-        """Test stepping in using avoid-no-debug with dwarf."""
-        self.build()
-        self.get_to_starting_point()
-        self.do_step_in_past_nodebug()
-
-    def setUp (self):
-        TestBase.setUp(self)
-        self.main_source = "with-debug.c"
-        self.main_source_spec = lldb.SBFileSpec("with-debug.c")
-        self.dbg.HandleCommand ("settings set target.process.thread.step-out-avoid-nodebug true")
-
-    def tearDown (self):
-        self.dbg.HandleCommand ("settings set target.process.thread.step-out-avoid-nodebug false")
-        TestBase.tearDown(self)
-
-    def hit_correct_line (self, pattern):
-        target_line = line_number (self.main_source, pattern)
-        self.assertTrue (target_line != 0, "Could not find source pattern " + pattern)
-        cur_line = self.thread.frames[0].GetLineEntry().GetLine()
-        self.assertTrue (cur_line == target_line, "Stepped to line %d instead of expected %d with pattern '%s'."%(cur_line, target_line, pattern))
-
-    def hit_correct_function (self, pattern):
-        name = self.thread.frames[0].GetFunctionName()
-        self.assertTrue (pattern in name, "Got to '%s' not the expected function '%s'."%(name, pattern))
-
-    def get_to_starting_point (self):
-        exe = os.path.join(os.getcwd(), "a.out")
-        error = lldb.SBError()
-
-        self.target = self.dbg.CreateTarget(exe)
-        self.assertTrue(self.target, VALID_TARGET)
-
-        inner_bkpt = self.target.BreakpointCreateBySourceRegex("Stop here and step out of me", self.main_source_spec)
-        self.assertTrue(inner_bkpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        self.process = self.target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(self.process, PROCESS_IS_VALID)
-
-        # Now finish, and make sure the return value is correct.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (self.process, inner_bkpt)
-        self.assertTrue(len(threads) == 1, "Stopped at inner breakpoint.")
-        self.thread = threads[0]
-
-    def do_step_out_past_nodebug(self):
-        # The first step out takes us to the called_from_nodebug frame, just to make sure setting
-        # step-out-avoid-nodebug doesn't change the behavior in frames with debug info.
-        self.thread.StepOut()
-        self.hit_correct_line ("intermediate_return_value = called_from_nodebug_actual(some_value)")
-        self.thread.StepOut()
-        self.hit_correct_line ("int return_value = no_debug_caller(5, called_from_nodebug)")
-
-    def do_step_over_past_nodebug (self):
-        self.thread.StepOver()
-        self.hit_correct_line ("intermediate_return_value = called_from_nodebug_actual(some_value)")
-        self.thread.StepOver()
-        self.hit_correct_line ("return intermediate_return_value")
-        self.thread.StepOver()
-        # Note, lldb doesn't follow gdb's distinction between "step-out" and "step-over/step-in"
-        # when exiting a frame.  In all cases we leave the pc at the point where we exited the
-        # frame.  In gdb, step-over/step-in move to the end of the line they stepped out to.
-        # If we ever change this we will need to fix this test.
-        self.hit_correct_line ("int return_value = no_debug_caller(5, called_from_nodebug)")
-
-    def do_step_in_past_nodebug (self):
-        self.thread.StepInto()
-        self.hit_correct_line ("intermediate_return_value = called_from_nodebug_actual(some_value)")
-        self.thread.StepInto()
-        self.hit_correct_line ("return intermediate_return_value")
-        self.thread.StepInto()
-        # Note, lldb doesn't follow gdb's distinction between "step-out" and "step-over/step-in"
-        # when exiting a frame.  In all cases we leave the pc at the point where we exited the
-        # frame.  In gdb, step-over/step-in move to the end of the line they stepped out to.
-        # If we ever change this we will need to fix this test.
-        self.hit_correct_line ("int return_value = no_debug_caller(5, called_from_nodebug)")

Removed: lldb/trunk/test/functionalities/step-avoids-no-debug/with-debug.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/step-avoids-no-debug/with-debug.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/step-avoids-no-debug/with-debug.c (original)
+++ lldb/trunk/test/functionalities/step-avoids-no-debug/with-debug.c (removed)
@@ -1,29 +0,0 @@
-#include <stdio.h>
-
-typedef int (*debug_callee) (int);
-
-extern int no_debug_caller (int, debug_callee);
-
-int
-called_from_nodebug_actual(int some_value)
-{
-  int return_value = 0;
-  return_value  = printf ("Length: %d.\n", some_value);
-  return return_value; // Stop here and step out of me
-}
-
-int
-called_from_nodebug(int some_value)
-{
-  int intermediate_return_value = 0;
-  intermediate_return_value = called_from_nodebug_actual(some_value);
-  return intermediate_return_value;
-}
-
-int
-main()
-{
-  int return_value = no_debug_caller(5, called_from_nodebug);
-  printf ("I got: %d.\n", return_value);
-  return 0;
-}

Removed: lldb/trunk/test/functionalities/step-avoids-no-debug/without-debug.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/step-avoids-no-debug/without-debug.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/step-avoids-no-debug/without-debug.c (original)
+++ lldb/trunk/test/functionalities/step-avoids-no-debug/without-debug.c (removed)
@@ -1,17 +0,0 @@
-typedef int (*debug_callee) (int);
-
-int
-no_debug_caller_intermediate(int input, debug_callee callee)
-{
-  int return_value = 0;
-  return_value = callee(input);
-  return return_value;
-}
-
-int
-no_debug_caller (int input, debug_callee callee)
-{
-  int return_value = 0;
-  return_value = no_debug_caller_intermediate (input, callee);
-  return return_value;
-}

Removed: lldb/trunk/test/functionalities/stop-hook/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/Makefile (original)
+++ lldb/trunk/test/functionalities/stop-hook/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/TestStopHookCmd.py (removed)
@@ -1,65 +0,0 @@
-"""
-Test lldb target stop-hook command.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-import lldbutil
-
-class StopHookCmdTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers inside main.cpp.
-        self.begl = line_number('main.cpp', '// Set breakpoint here to test target stop-hook.')
-        self.endl = line_number('main.cpp', '// End of the line range for which stop-hook is to be run.')
-        self.line = line_number('main.cpp', '// Another breakpoint which is outside of the stop-hook range.')
-
-    @no_debug_info_test
-    def test_not_crashing_if_no_target(self):
-        """target stop-hook list should not crash if no target has been set."""
-        self.runCmd("target stop-hook list", check=False)
-
-    def test(self):
-        """Test a sequence of target stop-hook commands."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.begl, num_expected_locations=1, loc_exact=True)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("target stop-hook add -f main.cpp -l %d -e %d -o 'expr ptr'" % (self.begl, self.endl))
-
-        self.expect('target stop-hook list', 'Stop Hook added successfully',
-            substrs = ['State: enabled',
-                       'expr ptr'])
-
-        self.runCmd('target stop-hook disable')
-
-        self.expect('target stop-hook list', 'Stop Hook disabled successfully',
-            substrs = ['State: disabled',
-                       'expr ptr'])
-
-        self.runCmd('target stop-hook enable')
-
-        self.expect('target stop-hook list', 'Stop Hook enabled successfully',
-            substrs = ['State: enabled',
-                       'expr ptr'])
-
-        self.runCmd("settings set auto-confirm true")
-        self.addTearDownHook(lambda: self.runCmd("settings clear auto-confirm"))
-
-        self.runCmd('target stop-hook delete')
-
-        self.expect('target stop-hook list', 'Stop Hook deleted successfully',
-            substrs = ['No stop hooks.'])

Removed: lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/TestStopHookMechanism.py (removed)
@@ -1,100 +0,0 @@
-"""
-Test lldb target stop-hook mechanism to see whether it fires off correctly .
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-
-class StopHookMechanismTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers inside main.cpp.
-        self.begl = line_number('main.cpp', '// Set breakpoint here to test target stop-hook.')
-        self.endl = line_number('main.cpp', '// End of the line range for which stop-hook is to be run.')
-        self.correct_step_line = line_number ('main.cpp', '// We should stop here after stepping.')
-        self.line = line_number('main.cpp', '// Another breakpoint which is outside of the stop-hook range.')
-
-    @skipIfFreeBSD # llvm.org/pr15037
-    @expectedFlakeyLinux('llvm.org/pr15037') # stop-hooks sometimes fail to fire on Linux
-    @expectedFailureHostWindows("llvm.org/pr22274: need a pexpect replacement for windows")
-    def test(self):
-        """Test the stop-hook mechanism."""
-        self.build()
-
-        import pexpect
-        exe = os.path.join(os.getcwd(), "a.out")
-        prompt = "(lldb) "
-        add_prompt = "Enter your stop hook command(s).  Type 'DONE' to end."
-        add_prompt1 = "> "
-
-        # So that the child gets torn down after the test.
-        self.child = pexpect.spawn('%s %s' % (lldbtest_config.lldbExec, self.lldbOption))
-        child = self.child
-        # Turn on logging for what the child sends back.
-        if self.TraceOn():
-            child.logfile_read = sys.stdout
-
-        if lldb.remote_platform:
-            child.expect_exact(prompt)
-            child.sendline('platform select %s' % lldb.remote_platform.GetName())
-            child.expect_exact(prompt)
-            child.sendline('platform connect %s' % lldb.platform_url)
-            child.expect_exact(prompt)
-            child.sendline('platform settings -w %s' % lldb.remote_platform_working_dir)
-
-        child.expect_exact(prompt)
-        child.sendline('target create %s' % exe)
-
-        # Set the breakpoint, followed by the target stop-hook commands.
-        child.expect_exact(prompt)
-        child.sendline('breakpoint set -f main.cpp -l %d' % self.begl)
-        child.expect_exact(prompt)
-        child.sendline('breakpoint set -f main.cpp -l %d' % self.line)
-        child.expect_exact(prompt)
-        child.sendline('target stop-hook add -f main.cpp -l %d -e %d' % (self.begl, self.endl))
-        child.expect_exact(add_prompt)
-        child.expect_exact(add_prompt1)
-        child.sendline('expr ptr')
-        child.expect_exact(add_prompt1)
-        child.sendline('DONE')
-        child.expect_exact(prompt)
-        child.sendline('target stop-hook list')
-
-        # Now run the program, expect to stop at the first breakpoint which is within the stop-hook range.
-        child.expect_exact(prompt)
-        child.sendline('run')
-        # Make sure we see the stop hook text from the stop of the process from the run hitting the first breakpoint
-        child.expect_exact('(void *) $')
-        child.expect_exact(prompt)
-        child.sendline('thread step-over')
-        # Expecting to find the output emitted by the firing of our stop hook.
-        child.expect_exact('(void *) $')
-        # This is orthogonal to the main stop hook test, but this example shows a bug in
-        # CLANG where the line table entry for the "return -1" actually includes some code
-        # from the other branch of the if/else, so we incorrectly stop at the "return -1" line.
-        # I fixed that in lldb and I'm sticking in a test here because I don't want to have to
-        # make up a whole nother test case for it.
-        child.sendline('frame info')
-        at_line = 'at main.cpp:%d' % (self.correct_step_line)
-        print('expecting "%s"' % at_line)
-        child.expect_exact(at_line)
-
-        # Now continue the inferior, we'll stop at another breakpoint which is outside the stop-hook range.
-        child.sendline('process continue')
-        child.expect_exact('// Another breakpoint which is outside of the stop-hook range.')
-        #self.DebugPExpect(child)
-        child.sendline('thread step-over')
-        child.expect_exact('// Another breakpoint which is outside of the stop-hook range.')
-        #self.DebugPExpect(child)
-        # Verify that the 'Stop Hooks' mechanism is NOT BEING fired off.
-        self.expect(child.before, exe=False, matching=False,
-            substrs = ['(void *) $'])

Removed: lldb/trunk/test/functionalities/stop-hook/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/main.cpp (original)
+++ lldb/trunk/test/functionalities/stop-hook/main.cpp (removed)
@@ -1,54 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdlib.h>
-
-int a(int);
-int b(int);
-int c(int);
-
-int a(int val)
-{
-    if (val <= 1)
-        return b(val);
-    else if (val >= 3)
-        return c(val);
-
-    return val;
-}
-
-int b(int val)
-{
-    int rc = c(val);
-    void *ptr = malloc(1024);
-    if (!ptr)  // Set breakpoint here to test target stop-hook.
-        return -1;
-    else
-        printf("ptr=%p\n", ptr); // We should stop here after stepping.
-    return rc; // End of the line range for which stop-hook is to be run.
-}
-
-int c(int val)
-{
-    return val + 3;
-}
-
-int main (int argc, char const *argv[])
-{
-    int A1 = a(1);
-    printf("a(1) returns %d\n", A1);
-    
-    int C2 = c(2); // Another breakpoint which is outside of the stop-hook range.
-    printf("c(2) returns %d\n", C2);
-    
-    int A3 = a(3);
-    printf("a(3) returns %d\n", A3);
-    
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/stop-hook/multiple_threads/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/multiple_threads/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/multiple_threads/Makefile (original)
+++ lldb/trunk/test/functionalities/stop-hook/multiple_threads/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_STD_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py (original)
+++ lldb/trunk/test/functionalities/stop-hook/multiple_threads/TestStopHookMultipleThreads.py (removed)
@@ -1,76 +0,0 @@
-"""
-Test that lldb stop-hook works for multiple threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-
-class StopHookForMultipleThreadsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.first_stop = line_number(self.source, '// Set break point at this line, and add a stop-hook.')
-        self.thread_function = line_number(self.source, '// Break here to test that the stop-hook mechanism works for multiple threads.')
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = self.testMethodName
-        self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFlakeyFreeBSD("llvm.org/pr15037")
-    @expectedFlakeyLinux("llvm.org/pr15037") # stop hooks sometimes fail to fire on Linux
-    @expectedFailureHostWindows("llvm.org/pr22274: need a pexpect replacement for windows")
-    def test_stop_hook_multiple_threads(self):
-        """Test that lldb stop-hook works for multiple threads."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        import pexpect
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        prompt = "(lldb) "
-
-        # So that the child gets torn down after the test.
-        self.child = pexpect.spawn('%s %s' % (lldbtest_config.lldbExec, self.lldbOption))
-        child = self.child
-        # Turn on logging for what the child sends back.
-        if self.TraceOn():
-            child.logfile_read = sys.stdout
-
-        if lldb.remote_platform:
-            child.expect_exact(prompt)
-            child.sendline('platform select %s' % lldb.remote_platform.GetName())
-            child.expect_exact(prompt)
-            child.sendline('platform connect %s' % lldb.platform_url)
-            child.expect_exact(prompt)
-            child.sendline('platform settings -w %s' % lldb.remote_platform_working_dir)
-
-        child.expect_exact(prompt)
-        child.sendline('target create %s' % exe)
-
-        # Set the breakpoint, followed by the target stop-hook commands.
-        child.expect_exact(prompt)
-        child.sendline('breakpoint set -f main.cpp -l %d' % self.first_stop)
-        child.expect_exact(prompt)
-        child.sendline('breakpoint set -f main.cpp -l %d' % self.thread_function)
-        child.expect_exact(prompt)
-
-        # Now run the program, expect to stop at the first breakpoint which is within the stop-hook range.
-        child.sendline('run')
-        child.expect_exact("Process")   # 'Process 2415 launched', 'Process 2415 stopped'
-        child.expect_exact(prompt)
-        child.sendline('target stop-hook add -o "frame variable --show-globals g_val"')
-        child.expect_exact("Stop hook") # 'Stop hook #1 added.'
-        child.expect_exact(prompt)
-
-        # Continue and expect to find the output emitted by the firing of our stop hook.
-        child.sendline('continue')
-        child.expect_exact('(uint32_t) ::g_val = ')

Removed: lldb/trunk/test/functionalities/stop-hook/multiple_threads/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/stop-hook/multiple_threads/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/stop-hook/multiple_threads/main.cpp (original)
+++ lldb/trunk/test/functionalities/stop-hook/multiple_threads/main.cpp (removed)
@@ -1,77 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <chrono>
-#include <cstdio>
-#include <mutex>
-#include <random>
-#include <thread>
-
-std::default_random_engine g_random_engine{std::random_device{}()};
-std::uniform_int_distribution<> g_distribution{0, 3000000};
-
-uint32_t g_val = 0;
-
-uint32_t
-access_pool (bool flag = false)
-{
-    static std::mutex g_access_mutex;
-    if (!flag)
-        g_access_mutex.lock();
-
-    uint32_t old_val = g_val;
-    if (flag)
-        g_val = old_val + 1;
-
-    if (!flag)
-        g_access_mutex.unlock();
-    return g_val;
-}
-
-void
-thread_func (uint32_t thread_index)
-{
-    // Break here to test that the stop-hook mechanism works for multiple threads.
-    printf ("%s (thread index = %u) startng...\n", __FUNCTION__, thread_index);
-
-    uint32_t count = 0;
-    uint32_t val;
-    while (count++ < 15)
-    {
-        // random micro second sleep from zero to 3 seconds
-        int usec = g_distribution(g_random_engine);
-        printf ("%s (thread = %u) doing a usleep (%d)...\n", __FUNCTION__, thread_index, usec);
-        std::this_thread::sleep_for(std::chrono::microseconds{usec});
-
-        if (count < 7)
-            val = access_pool ();
-        else
-            val = access_pool (true);
-
-        printf ("%s (thread = %u) after usleep access_pool returns %d (count=%d)...\n", __FUNCTION__, thread_index, val, count);
-    }
-    printf ("%s (thread index = %u) exiting...\n", __FUNCTION__, thread_index);
-}
-
-
-int main (int argc, char const *argv[])
-{
-    std::thread threads[3];
-
-    printf ("Before turning all three threads loose...\n"); // Set break point at this line, and add a stop-hook.
-    // Create 3 threads
-    for (auto &thread : threads)
-        thread = std::thread{thread_func, std::distance(threads, &thread)};
-
-    // Join all of our threads
-    for (auto &thread : threads)
-        thread.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/target_command/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/Makefile (original)
+++ lldb/trunk/test/functionalities/target_command/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../make
-
-# Example:
-#
-# C_SOURCES := b.c
-# EXE := b.out
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/target_command/TestTargetCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/TestTargetCommand.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/TestTargetCommand.py (original)
+++ lldb/trunk/test/functionalities/target_command/TestTargetCommand.py (removed)
@@ -1,201 +0,0 @@
-"""
-Test some target commands: create, list, select, variable.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import lldb
-import sys
-from lldbtest import *
-import lldbutil
-
-class targetCommandTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers for our breakpoints.
-        self.line_b = line_number('b.c', '// Set break point at this line.')
-        self.line_c = line_number('c.c', '// Set break point at this line.')
-
-    def test_target_command(self):
-        """Test some target commands: create, list, select."""
-        da = {'C_SOURCES': 'a.c', 'EXE': 'a.out'}
-        self.build(dictionary=da)
-        self.addTearDownCleanup(dictionary=da)
-
-        db = {'C_SOURCES': 'b.c', 'EXE': 'b.out'}
-        self.build(dictionary=db)
-        self.addTearDownCleanup(dictionary=db)
-
-        dc = {'C_SOURCES': 'c.c', 'EXE': 'c.out'}
-        self.build(dictionary=dc)
-        self.addTearDownCleanup(dictionary=dc)
-
-        self.do_target_command()
-
-    # rdar://problem/9763907
-    # 'target variable' command fails if the target program has been run
-    @expectedFailureAndroid(archs=['aarch64'])
-    def test_target_variable_command(self):
-        """Test 'target variable' command before and after starting the inferior."""
-        d = {'C_SOURCES': 'globals.c', 'EXE': 'globals'}
-        self.build(dictionary=d)
-        self.addTearDownCleanup(dictionary=d)
-
-        self.do_target_variable_command('globals')
-
-    @expectedFailureAndroid(archs=['aarch64'])
-    def test_target_variable_command_no_fail(self):
-        """Test 'target variable' command before and after starting the inferior."""
-        d = {'C_SOURCES': 'globals.c', 'EXE': 'globals'}
-        self.build(dictionary=d)
-        self.addTearDownCleanup(dictionary=d)
-
-        self.do_target_variable_command_no_fail('globals')
-
-    def do_target_command(self):
-        """Exercise 'target create', 'target list', 'target select' commands."""
-        exe_a = os.path.join(os.getcwd(), "a.out")
-        exe_b = os.path.join(os.getcwd(), "b.out")
-        exe_c = os.path.join(os.getcwd(), "c.out")
-
-        self.runCmd("target list")
-        output = self.res.GetOutput()
-        if output.startswith("No targets"):
-            # We start from index 0.
-            base = 0
-        else:
-            # Find the largest index of the existing list.
-            import re
-            pattern = re.compile("target #(\d+):")
-            for line in reversed(output.split(os.linesep)):
-                match = pattern.search(line)
-                if match:
-                    # We will start from (index + 1) ....
-                    base = int(match.group(1), 10) + 1
-                    #print("base is:", base)
-                    break;
-
-        self.runCmd("target create " + exe_a, CURRENT_EXECUTABLE_SET)
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.runCmd("target create " + exe_b, CURRENT_EXECUTABLE_SET)
-        lldbutil.run_break_set_by_file_and_line (self, 'b.c', self.line_b, num_expected_locations=1, loc_exact=True)
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.runCmd("target create " + exe_c, CURRENT_EXECUTABLE_SET)
-        lldbutil.run_break_set_by_file_and_line (self, 'c.c', self.line_c, num_expected_locations=1, loc_exact=True)
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.runCmd("target list")
-
-        self.runCmd("target select %d" % base)
-        self.runCmd("thread backtrace")
-
-        self.runCmd("target select %d" % (base + 2))
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['c.c:%d' % self.line_c,
-                       'stop reason = breakpoint'])
-
-        self.runCmd("target select %d" % (base + 1))
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['b.c:%d' % self.line_b,
-                       'stop reason = breakpoint'])
-
-        self.runCmd("target list")
-
-    def do_target_variable_command(self, exe_name):
-        """Exercise 'target variable' command before and after starting the inferior."""
-        self.runCmd("file " + exe_name, CURRENT_EXECUTABLE_SET)
-
-        self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["my_global_char", "'X'"])
-        self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_global_str', '"abc"'])
-        self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_static_int', '228'])
-        self.expect("target variable my_global_str_ptr", matching=False,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str_ptr", matching=True,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['a'])
-
-        self.runCmd("b main")
-        self.runCmd("run")
-        
-        self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['my_global_str', '"abc"'])
-        self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['my_static_int', '228'])
-        self.expect("target variable my_global_str_ptr", matching=False,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str_ptr", matching=True,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['a'])
-        self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ["my_global_char", "'X'"])
-
-        self.runCmd("c")
-
-        # rdar://problem/9763907
-        # 'target variable' command fails if the target program has been run
-        self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_global_str', '"abc"'])
-        self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_static_int', '228'])
-        self.expect("target variable my_global_str_ptr", matching=False,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str_ptr", matching=True,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['a'])
-        self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ["my_global_char", "'X'"])
-
-    def do_target_variable_command_no_fail(self, exe_name):
-        """Exercise 'target variable' command before and after starting the inferior."""
-        self.runCmd("file " + exe_name, CURRENT_EXECUTABLE_SET)
-
-        self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["my_global_char", "'X'"])
-        self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_global_str', '"abc"'])
-        self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['my_static_int', '228'])
-        self.expect("target variable my_global_str_ptr", matching=False,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str_ptr", matching=True,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['a'])
-
-        self.runCmd("b main")
-        self.runCmd("run")
-        
-        # New feature: you don't need to specify the variable(s) to 'target vaiable'.
-        # It will find all the global and static variables in the current compile unit.
-        self.expect("target variable",
-            substrs = ['my_global_char',
-                       'my_global_str',
-                       'my_global_str_ptr',
-                       'my_static_int'])
-
-        self.expect("target variable my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['my_global_str', '"abc"'])
-        self.expect("target variable my_static_int", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['my_static_int', '228'])
-        self.expect("target variable my_global_str_ptr", matching=False,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str_ptr", matching=True,
-                    substrs = ['"abc"'])
-        self.expect("target variable *my_global_str", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['a'])
-        self.expect("target variable my_global_char", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ["my_global_char", "'X'"])

Removed: lldb/trunk/test/functionalities/target_command/a.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/a.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/a.c (original)
+++ lldb/trunk/test/functionalities/target_command/a.c (removed)
@@ -1,16 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int main(int argc, const char* argv[])
-{
-    int *null_ptr = 0;
-    printf("Hello, segfault!\n");
-    printf("Now crash %d\n", *null_ptr); // Crash here.
-}

Removed: lldb/trunk/test/functionalities/target_command/b.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/b.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/b.c (original)
+++ lldb/trunk/test/functionalities/target_command/b.c (removed)
@@ -1,13 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-int main (int argc, char const *argv[])
-{
-    return 0; // Set break point at this line.
-}

Removed: lldb/trunk/test/functionalities/target_command/c.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/c.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/c.c (original)
+++ lldb/trunk/test/functionalities/target_command/c.c (removed)
@@ -1,29 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int main (int argc, char const *argv[])
-{
-    enum days {
-        Monday = 10,
-        Tuesday,
-        Wednesday,
-        Thursday,
-        Friday,
-        Saturday,
-        Sunday,
-        kNumDays
-    };
-    enum days day;
-    for (day = Monday - 1; day <= kNumDays + 1; day++)
-    {
-        printf("day as int is %i\n", (int)day);
-    }
-    return 0; // Set break point at this line.
-}

Removed: lldb/trunk/test/functionalities/target_command/globals.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/target_command/globals.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/target_command/globals.c (original)
+++ lldb/trunk/test/functionalities/target_command/globals.c (removed)
@@ -1,25 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-char my_global_char = 'X';
-const char* my_global_str = "abc";
-const char **my_global_str_ptr = &my_global_str;
-static int my_static_int = 228;
-
-int main (int argc, char const *argv[])
-{
-    printf("global char: %c\n", my_global_char);
-    
-    printf("global str: %s\n", my_global_str);
-
-    printf("argc + my_static_int = %d\n", (argc + my_static_int));
-    
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_STD_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/TestNumThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/TestNumThreads.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/TestNumThreads.py (original)
+++ lldb/trunk/test/functionalities/thread/TestNumThreads.py (removed)
@@ -1,53 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class NumberOfThreadsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    def test(self):
-        """Test number of threads."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint with 1 location.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1)
-
-        # The breakpoint list should show 3 locations.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.line])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Stopped once.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ["stop reason = breakpoint 1."])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Using std::thread may involve extra threads, so we assert that there are
-        # at least 4 rather than exactly 4.
-        self.assertTrue(num_threads >= 4, 'Number of expected threads and actual threads do not match.')

Removed: lldb/trunk/test/functionalities/thread/break_after_join/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/break_after_join/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/break_after_join/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/break_after_join/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_STD_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py (original)
+++ lldb/trunk/test/functionalities/thread/break_after_join/TestBreakAfterJoin.py (removed)
@@ -1,77 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class BreakpointAfterJoinTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    def test(self):
-        """Test breakpoint handling after a thread join."""
-        self.build(dictionary=self.getBuildFlags())
-
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # The exit probably occurred during breakpoint handling, but it isn't
-        # guaranteed.  The main thing we're testing here is that the debugger
-        # handles this cleanly is some way.
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Make sure we see at least six threads
-        self.assertTrue(num_threads >= 6, 'Number of expected threads and actual threads do not match.')
-
-        # Make sure all threads are stopped
-        for i in range(0, num_threads):
-            self.assertTrue(process.GetThreadAtIndex(i).IsStopped(),
-                            "Thread {0} didn't stop during breakpoint.".format(i))
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # If the process hasn't exited, collect some information
-        if process.GetState() != lldb.eStateExited:
-            self.runCmd("thread list")
-            self.runCmd("process status")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/break_after_join/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/break_after_join/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/break_after_join/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/break_after_join/main.cpp (removed)
@@ -1,118 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which one thread will exit
-// while a breakpoint is being handled in another thread.  This may not always
-// happen because it's possible that the exiting thread will exit before the
-// breakpoint is hit.  The test case should be flexible enough to treat that
-// as success.
-
-#include <atomic>
-#include <chrono>
-#include <thread>
-
-volatile int g_test = 0;
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()  
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-// A barrier to synchronize all the threads.
-std::atomic_int g_barrier1;
-
-// A barrier to keep the threads from exiting until after the breakpoint has
-// been passed.
-std::atomic_int g_barrier2;
-
-void *
-break_thread_func ()
-{
-    // Wait until all the threads are running
-    pseudo_barrier_wait(g_barrier1);
-
-    // Wait for the join thread to join
-    std::this_thread::sleep_for(std::chrono::microseconds(50));
-
-    // Do something
-    g_test++;       // Set breakpoint here
-
-    // Synchronize after the breakpoint
-    pseudo_barrier_wait(g_barrier2);
-
-    // Return
-    return NULL;
-}
-
-void *
-wait_thread_func ()
-{
-    // Wait until the entire first group of threads is running
-    pseudo_barrier_wait(g_barrier1);
-
-    // Wait until the breakpoint has been passed
-    pseudo_barrier_wait(g_barrier2);
-
-    // Return
-    return NULL;
-}
-
-void *
-join_thread_func (void *input)
-{
-    std::thread *thread_to_join = (std::thread *)input;
-
-    // Sync up with the rest of the threads.
-    pseudo_barrier_wait(g_barrier1);
-
-    // Join the other thread
-    thread_to_join->join();
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-    // The first barrier waits for the non-joining threads to start.
-    // This thread will also participate in that barrier.
-    // The idea here is to guarantee that the joining thread will be
-    // last in the internal list maintained by the debugger.
-    pseudo_barrier_init(g_barrier1, 5);
-
-    // The second barrier keeps the waiting threads around until the breakpoint
-    // has been passed.
-    pseudo_barrier_init(g_barrier2, 4);
-
-    // Create a thread to hit the breakpoint
-    std::thread thread_1(break_thread_func);
-
-    // Create more threads to slow the debugger down during processing.
-    std::thread thread_2(wait_thread_func);
-    std::thread thread_3(wait_thread_func);
-    std::thread thread_4(wait_thread_func);
-
-    // Create a thread to join the breakpoint thread
-    std::thread thread_5(join_thread_func, &thread_1);
-
-    // Wait for the threads to finish
-    thread_5.join();  // implies thread_1 is already finished
-    thread_4.join();
-    thread_3.join();
-    thread_2.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/concurrent_events/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-ENABLE_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/TestConcurrentEvents.py (removed)
@@ -1,490 +0,0 @@
-"""
-A stress-test of sorts for LLDB's handling of threads in the inferior.
-
-This test sets a breakpoint in the main thread where test parameters (numbers of
-threads) can be adjusted, runs the inferior to that point, and modifies the
-locals that control the event thread counts. This test also sets a breakpoint in
-breakpoint_func (the function executed by each 'breakpoint' thread) and a
-watchpoint on a global modified in watchpoint_func. The inferior is continued
-until exit or a crash takes place, and the number of events seen by LLDB is
-verified to match the expected number of events.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
- at skipIfWindows
-class ConcurrentEventsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    #
-    ## Tests for multiple threads that generate a single event.
-    #
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_many_breakpoints(self):
-        """Test 100 breakpoints from 100 threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=100)
-
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_many_watchpoints(self):
-        """Test 100 watchpoints from 100 threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=100)
-
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_many_signals(self):
-        """Test 100 signals from 100 threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_signal_threads=100)
-
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_many_crash(self):
-        """Test 100 threads that cause a segfault."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_crash_threads=100)
-
-
-    #
-    ## Tests for concurrent signal and breakpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    def test_signal_break(self):
-        """Test signal and a breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1, num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_delay_signal_break(self):
-        """Test (1-second delay) signal and a breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1, num_delay_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_signal_delay_break(self):
-        """Test signal and a (1 second delay) breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_delay_breakpoint_threads=1, num_signal_threads=1)
-
-
-    #
-    ## Tests for concurrent watchpoint and breakpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_watch_break(self):
-        """Test watchpoint and a breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_delay_watch_break(self):
-        """Test (1-second delay) watchpoint and a breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1, num_delay_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_watch_break_delay(self):
-        """Test watchpoint and a (1 second delay) breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_delay_breakpoint_threads=1, num_watchpoint_threads=1)
-
-    #
-    ## Tests for concurrent signal and watchpoint
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_signal_watch(self):
-        """Test a watchpoint and a signal in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_signal_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_delay_signal_watch(self):
-        """Test a watchpoint and a (1 second delay) signal in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_delay_signal_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    @expectedFailureAll("llvm.org/pr16714", oslist=["linux"], archs=["i386"])
-    def test_signal_delay_watch(self):
-        """Test a (1 second delay) watchpoint and a signal in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_signal_threads=1, num_delay_watchpoint_threads=1)
-
-
-    #
-    ## Tests for multiple breakpoint threads
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    def test_two_breakpoint_threads(self):
-        """Test two threads that trigger a breakpoint. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=2)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_breakpoint_one_delay_breakpoint_threads(self):
-        """Test threads that trigger a breakpoint where one thread has a 1 second delay. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_two_breakpoints_one_signal(self):
-        """Test two threads that trigger a breakpoint and one signal thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=2, num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_breakpoint_delay_breakpoint_one_signal(self):
-        """Test two threads that trigger a breakpoint (one with a 1 second delay) and one signal thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1,
-                               num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_two_breakpoints_one_delay_signal(self):
-        """Test two threads that trigger a breakpoint and one (1 second delay) signal thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=2, num_delay_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_two_breakpoints_one_watchpoint(self):
-        """Test two threads that trigger a breakpoint and one watchpoint thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=2, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_breakpoints_delayed_breakpoint_one_watchpoint(self):
-        """Test a breakpoint, a delayed breakpoint, and one watchpoint thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_breakpoint_threads=1,
-                               num_delay_breakpoint_threads=1,
-                               num_watchpoint_threads=1)
-
-    #
-    ## Tests for multiple watchpoint threads
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_two_watchpoint_threads(self):
-        """Test two threads that trigger a watchpoint. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=2)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_watchpoint_with_delay_watchpoint_threads(self):
-        """Test two threads that trigger a watchpoint where one thread has a 1 second delay. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=1,
-                               num_delay_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_two_watchpoints_one_breakpoint(self):
-        """Test two threads that trigger a watchpoint and one breakpoint thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=2, num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_two_watchpoints_one_delay_breakpoint(self):
-        """Test two threads that trigger a watchpoint and one (1 second delay) breakpoint thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=2, num_delay_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_watchpoint_delay_watchpoint_one_breakpoint(self):
-        """Test two threads that trigger a watchpoint (one with a 1 second delay) and one breakpoint thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=1,
-                               num_delay_watchpoint_threads=1,
-                               num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_two_watchpoints_one_signal(self):
-        """Test two threads that trigger a watchpoint and one signal thread. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=2, num_signal_threads=1)
-
-    #
-    ## Test for watchpoint, signal and breakpoint happening concurrently
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_signal_watch_break(self):
-        """Test a signal/watchpoint/breakpoint in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_signal_threads=1,
-                               num_watchpoint_threads=1,
-                               num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_signal_watch_break(self):
-        """Test one signal thread with 5 watchpoint and breakpoint threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_signal_threads=1,
-                               num_watchpoint_threads=5,
-                               num_breakpoint_threads=5)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_signal_watch_break(self):
-        """Test with 5 watchpoint and breakpoint threads."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_watchpoint_threads=5,
-                               num_breakpoint_threads=5)
-
-
-    #
-    ## Test for crashing threads happening concurrently with other events
-    #
-    @skipIfFreeBSD # timing out on buildbot
-    def test_crash_with_break(self):
-        """ Test a thread that crashes while another thread hits a breakpoint."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_crash_threads=1, num_breakpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_crash_with_watchpoint(self):
-        """ Test a thread that crashes while another thread hits a watchpoint."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_crash_threads=1, num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_crash_with_signal(self):
-        """ Test a thread that crashes while another thread generates a signal."""
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_crash_threads=1, num_signal_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_crash_with_watchpoint_breakpoint_signal(self):
-        """ Test a thread that crashes while other threads generate a signal and hit a watchpoint and breakpoint. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_signal_threads=1,
-                               num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    @skipIfRemoteDueToDeadlock
-    def test_delayed_crash_with_breakpoint_watchpoint(self):
-        """ Test a thread with a delayed crash while other threads hit a watchpoint and a breakpoint. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_delay_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_watchpoint_threads=1)
-
-    @skipIfFreeBSD # timing out on buildbot
-    def test_delayed_crash_with_breakpoint_signal(self):
-        """ Test a thread with a delayed crash while other threads generate a signal and hit a breakpoint. """
-        self.build(dictionary=self.getBuildFlags())
-        self.do_thread_actions(num_delay_crash_threads=1,
-                               num_breakpoint_threads=1,
-                               num_signal_threads=1)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.filename = 'main.cpp'
-        self.thread_breakpoint_line = line_number(self.filename, '// Set breakpoint here')
-        self.setup_breakpoint_line = line_number(self.filename, '// Break here and adjust num')
-        self.finish_breakpoint_line = line_number(self.filename, '// Break here and verify one thread is active')
-
-    def describe_threads(self):
-        ret = []
-        for x in self.inferior_process:
-            id = x.GetIndexID()
-            reason = x.GetStopReason()
-            status = "stopped" if x.IsStopped() else "running"
-            reason_str = lldbutil.stop_reason_to_str(reason)
-            if reason == lldb.eStopReasonBreakpoint:
-                bpid = x.GetStopReasonDataAtIndex(0)
-                bp = self.inferior_target.FindBreakpointByID(bpid)
-                reason_str = "%s hit %d times" % (lldbutil.get_description(bp), bp.GetHitCount())
-            elif reason == lldb.eStopReasonWatchpoint:
-                watchid = x.GetStopReasonDataAtIndex(0)
-                watch = self.inferior_target.FindWatchpointByID(watchid)
-                reason_str = "%s hit %d times" % (lldbutil.get_description(watch), watch.GetHitCount())
-            elif reason == lldb.eStopReasonSignal:
-                signals = self.inferior_process.GetUnixSignals()
-                signal_name = signals.GetSignalAsCString(x.GetStopReasonDataAtIndex(0))
-                reason_str = "signal %s" % signal_name
-
-            location = "\t".join([lldbutil.get_description(x.GetFrameAtIndex(i)) for i in range(x.GetNumFrames())])
-            ret.append("thread %d %s due to %s at\n\t%s" % (id, status, reason_str, location))
-        return ret
-
-    def add_breakpoint(self, line, descriptions):
-        """ Adds a breakpoint at self.filename:line and appends its description to descriptions, and
-            returns the LLDB SBBreakpoint object.
-        """
-
-        bpno = lldbutil.run_break_set_by_file_and_line(self, self.filename, line, num_expected_locations=-1)
-        bp = self.inferior_target.FindBreakpointByID(bpno)
-        descriptions.append(": file = 'main.cpp', line = %d" % self.finish_breakpoint_line)
-        return bp
-
-    def inferior_done(self):
-        """ Returns true if the inferior is done executing all the event threads (and is stopped at self.finish_breakpoint, 
-            or has terminated execution.
-        """
-        return self.finish_breakpoint.GetHitCount() > 0 or \
-                self.crash_count > 0 or \
-                self.inferior_process.GetState() == lldb.eStateExited
-
-    def count_signaled_threads(self):
-        count = 0
-        for thread in self.inferior_process:
-            if thread.GetStopReason() == lldb.eStopReasonSignal and thread.GetStopReasonDataAtIndex(0) == self.inferior_process.GetUnixSignals().GetSignalNumberFromName('SIGUSR1'):
-                count += 1
-        return count
-
-    def do_thread_actions(self,
-                          num_breakpoint_threads = 0,
-                          num_signal_threads = 0,
-                          num_watchpoint_threads = 0,
-                          num_crash_threads = 0,
-                          num_delay_breakpoint_threads = 0,
-                          num_delay_signal_threads = 0,
-                          num_delay_watchpoint_threads = 0,
-                          num_delay_crash_threads = 0):
-        """ Sets a breakpoint in the main thread where test parameters (numbers of threads) can be adjusted, runs the inferior
-            to that point, and modifies the locals that control the event thread counts. Also sets a breakpoint in
-            breakpoint_func (the function executed by each 'breakpoint' thread) and a watchpoint on a global modified in
-            watchpoint_func. The inferior is continued until exit or a crash takes place, and the number of events seen by LLDB
-            is verified to match the expected number of events.
-        """
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Get the target
-        self.inferior_target = self.dbg.GetSelectedTarget()
-
-        expected_bps = []
-
-        # Initialize all the breakpoints (main thread/aux thread)
-        self.setup_breakpoint = self.add_breakpoint(self.setup_breakpoint_line, expected_bps)
-        self.finish_breakpoint = self.add_breakpoint(self.finish_breakpoint_line, expected_bps)
-
-        # Set the thread breakpoint
-        if num_breakpoint_threads + num_delay_breakpoint_threads > 0:
-            self.thread_breakpoint = self.add_breakpoint(self.thread_breakpoint_line, expected_bps)
-
-        # Verify breakpoints
-        self.expect("breakpoint list -f", "Breakpoint locations shown correctly", substrs = expected_bps)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Check we are at line self.setup_breakpoint
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ["stop reason = breakpoint 1."])
-
-        # Initialize the (single) watchpoint on the global variable (g_watchme)
-        if num_watchpoint_threads + num_delay_watchpoint_threads > 0:
-            self.runCmd("watchpoint set variable g_watchme")
-            for w in self.inferior_target.watchpoint_iter():
-                self.thread_watchpoint = w
-                self.assertTrue("g_watchme" in str(self.thread_watchpoint), "Watchpoint location not shown correctly")
-
-        # Get the process
-        self.inferior_process = self.inferior_target.GetProcess()
-
-        # We should be stopped at the setup site where we can set the number of
-        # threads doing each action (break/crash/signal/watch)
-        self.assertEqual(self.inferior_process.GetNumThreads(), 1, 'Expected to stop before any additional threads are spawned.')
-
-        self.runCmd("expr num_breakpoint_threads=%d" % num_breakpoint_threads)
-        self.runCmd("expr num_crash_threads=%d" % num_crash_threads)
-        self.runCmd("expr num_signal_threads=%d" % num_signal_threads)
-        self.runCmd("expr num_watchpoint_threads=%d" % num_watchpoint_threads)
-
-        self.runCmd("expr num_delay_breakpoint_threads=%d" % num_delay_breakpoint_threads)
-        self.runCmd("expr num_delay_crash_threads=%d" % num_delay_crash_threads)
-        self.runCmd("expr num_delay_signal_threads=%d" % num_delay_signal_threads)
-        self.runCmd("expr num_delay_watchpoint_threads=%d" % num_delay_watchpoint_threads)
-
-        # Continue the inferior so threads are spawned
-        self.runCmd("continue")
-
-        # Make sure we see all the threads. The inferior program's threads all synchronize with a pseudo-barrier; that is,
-        # the inferior program ensures all threads are started and running before any thread triggers its 'event'.
-        num_threads = self.inferior_process.GetNumThreads()
-        expected_num_threads = num_breakpoint_threads + num_delay_breakpoint_threads \
-                             + num_signal_threads + num_delay_signal_threads \
-                             + num_watchpoint_threads + num_delay_watchpoint_threads \
-                             + num_crash_threads + num_delay_crash_threads + 1
-        self.assertEqual(num_threads, expected_num_threads,
-            'Expected to see %d threads, but seeing %d. Details:\n%s' % (expected_num_threads,
-                                                                         num_threads,
-                                                                         "\n\t".join(self.describe_threads())))
-
-        self.signal_count = self.count_signaled_threads()
-        self.crash_count = len(lldbutil.get_crashed_threads(self, self.inferior_process))
-
-        # Run to completion (or crash)
-        while not self.inferior_done(): 
-            if self.TraceOn():
-                self.runCmd("thread backtrace all")
-            self.runCmd("continue")
-            self.signal_count += self.count_signaled_threads()
-            self.crash_count += len(lldbutil.get_crashed_threads(self, self.inferior_process))
-
-        if num_crash_threads > 0 or num_delay_crash_threads > 0:
-            # Expecting a crash
-            self.assertTrue(self.crash_count > 0,
-                "Expecting at least one thread to crash. Details: %s" % "\t\n".join(self.describe_threads()))
-
-            # Ensure the zombie process is reaped
-            self.runCmd("process kill")
-
-        elif num_crash_threads == 0 and num_delay_crash_threads == 0:
-            # There should be a single active thread (the main one) which hit the breakpoint after joining
-            self.assertEqual(1, self.finish_breakpoint.GetHitCount(), "Expected main thread (finish) breakpoint to be hit once")
-
-            num_threads = self.inferior_process.GetNumThreads()
-            self.assertEqual(1, num_threads, "Expecting 1 thread but seeing %d. Details:%s" % (num_threads,
-                                                                                             "\n\t".join(self.describe_threads())))
-            self.runCmd("continue")
-
-            # The inferior process should have exited without crashing
-            self.assertEqual(0, self.crash_count, "Unexpected thread(s) in crashed state")
-            self.assertEqual(self.inferior_process.GetState(), lldb.eStateExited, PROCESS_EXITED)
-
-            # Verify the number of actions took place matches expected numbers
-            expected_breakpoint_threads = num_delay_breakpoint_threads + num_breakpoint_threads
-            breakpoint_hit_count = self.thread_breakpoint.GetHitCount() if expected_breakpoint_threads > 0 else 0
-            self.assertEqual(expected_breakpoint_threads, breakpoint_hit_count,
-                "Expected %d breakpoint hits, but got %d" % (expected_breakpoint_threads, breakpoint_hit_count))
-
-            expected_signal_threads = num_delay_signal_threads + num_signal_threads
-            self.assertEqual(expected_signal_threads, self.signal_count,
-                "Expected %d stops due to signal delivery, but got %d" % (expected_signal_threads, self.signal_count))
-
-            expected_watchpoint_threads = num_delay_watchpoint_threads + num_watchpoint_threads
-            watchpoint_hit_count = self.thread_watchpoint.GetHitCount() if expected_watchpoint_threads > 0 else 0
-            self.assertEqual(expected_watchpoint_threads, watchpoint_hit_count,
-                "Expected %d watchpoint hits, got %d" % (expected_watchpoint_threads, watchpoint_hit_count))

Removed: lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/concurrent_events/main.cpp (removed)
@@ -1,200 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which multiple events
-// (breakpoints, watchpoints, crashes, and signal generation/delivery) happen
-// from multiple threads. The test expects the debugger to set a breakpoint on
-// the main thread (before any worker threads are spawned) and modify variables
-// which control the number of threads that are spawned for each action.
-
-#include <atomic>
-#include <vector>
-using namespace std;
-
-#include <pthread.h>
-
-#include <signal.h>
-#include <sys/types.h>
-#include <unistd.h>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-typedef std::vector<std::pair<unsigned, void*(*)(void*)> > action_counts;
-typedef std::vector<pthread_t> thread_vector;
-
-std::atomic_int g_barrier;
-int g_breakpoint = 0;
-int g_sigusr1_count = 0;
-std::atomic_int g_watchme;
-
-struct action_args {
-  int delay;
-};
-
-// Perform any extra actions required by thread 'input' arg
-void do_action_args(void *input) {
-    if (input) {
-      action_args *args = static_cast<action_args*>(input);
-      sleep(args->delay);
-    }
-}
-
-void *
-breakpoint_func (void *input)
-{
-    // Wait until all threads are running
-    pseudo_barrier_wait(g_barrier);
-    do_action_args(input);
-
-    // Do something
-    g_breakpoint++;       // Set breakpoint here
-    return 0;
-}
-
-void *
-signal_func (void *input) {
-    // Wait until all threads are running
-    pseudo_barrier_wait(g_barrier);
-    do_action_args(input);
-
-    // Send a user-defined signal to the current process
-    //kill(getpid(), SIGUSR1);
-    // Send a user-defined signal to the current thread
-    pthread_kill(pthread_self(), SIGUSR1);
-
-    return 0;
-}
-
-void *
-watchpoint_func (void *input) {
-    pseudo_barrier_wait(g_barrier);
-    do_action_args(input);
-
-    g_watchme += 1;     // watchpoint triggers here
-    return 0;
-}
-
-void *
-crash_func (void *input) {
-    pseudo_barrier_wait(g_barrier);
-    do_action_args(input);
-
-    int *a = 0;
-    *a = 5; // crash happens here
-    return 0;
-}
-
-void sigusr1_handler(int sig) {
-    if (sig == SIGUSR1)
-        g_sigusr1_count += 1; // Break here in signal handler
-}
-
-/// Register a simple function for to handle signal
-void register_signal_handler(int signal, void (*handler)(int))
-{
-    sigset_t empty_sigset;
-    sigemptyset(&empty_sigset);
-
-    struct sigaction action;
-    action.sa_sigaction = 0;
-    action.sa_mask = empty_sigset;
-    action.sa_flags = 0;
-    action.sa_handler = handler;
-    sigaction(SIGUSR1, &action, 0);
-}
-
-void start_threads(thread_vector& threads,
-                   action_counts& actions,
-                   void* args = 0) {
-    action_counts::iterator b = actions.begin(), e = actions.end();
-    for(action_counts::iterator i = b; i != e; ++i) {
-        for(unsigned count = 0; count < i->first; ++count) {
-            pthread_t t;
-            pthread_create(&t, 0, i->second, args);
-            threads.push_back(t);
-        }
-    }
-}
-
-int dotest()
-{
-    g_watchme = 0;
-
-    // Actions are triggered immediately after the thread is spawned
-    unsigned num_breakpoint_threads = 1;
-    unsigned num_watchpoint_threads = 0;
-    unsigned num_signal_threads = 1;
-    unsigned num_crash_threads = 0;
-
-    // Actions below are triggered after a 1-second delay
-    unsigned num_delay_breakpoint_threads = 0;
-    unsigned num_delay_watchpoint_threads = 0;
-    unsigned num_delay_signal_threads = 0;
-    unsigned num_delay_crash_threads = 0;
-
-    register_signal_handler(SIGUSR1, sigusr1_handler); // Break here and adjust num_[breakpoint|watchpoint|signal|crash]_threads
-
-    unsigned total_threads = num_breakpoint_threads \
-                             + num_watchpoint_threads \
-                             + num_signal_threads \
-                             + num_crash_threads \
-                             + num_delay_breakpoint_threads \
-                             + num_delay_watchpoint_threads \
-                             + num_delay_signal_threads \
-                             + num_delay_crash_threads;
-
-    // Don't let either thread do anything until they're both ready.
-    pseudo_barrier_init(g_barrier, total_threads);
-
-    action_counts actions;
-    actions.push_back(std::make_pair(num_breakpoint_threads, breakpoint_func));
-    actions.push_back(std::make_pair(num_watchpoint_threads, watchpoint_func));
-    actions.push_back(std::make_pair(num_signal_threads, signal_func));
-    actions.push_back(std::make_pair(num_crash_threads, crash_func));
-
-    action_counts delay_actions;
-    delay_actions.push_back(std::make_pair(num_delay_breakpoint_threads, breakpoint_func));
-    delay_actions.push_back(std::make_pair(num_delay_watchpoint_threads, watchpoint_func));
-    delay_actions.push_back(std::make_pair(num_delay_signal_threads, signal_func));
-    delay_actions.push_back(std::make_pair(num_delay_crash_threads, crash_func));
-
-    // Create threads that handle instant actions
-    thread_vector threads;
-    start_threads(threads, actions);
-
-    // Create threads that handle delayed actions
-    action_args delay_arg;
-    delay_arg.delay = 1;
-    start_threads(threads, delay_actions, &delay_arg);
-
-    // Join all threads
-    typedef std::vector<pthread_t>::iterator thread_iterator;
-    for(thread_iterator t = threads.begin(); t != threads.end(); ++t)
-        pthread_join(*t, 0);
-
-    return 0;
-}
-
-int main ()
-{
-    dotest();
-    return 0; // Break here and verify one thread is active.
-}
-
-

Removed: lldb/trunk/test/functionalities/thread/crash_during_step/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/crash_during_step/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/crash_during_step/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/crash_during_step/Makefile (removed)
@@ -1,4 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/crash_during_step/TestCrashDuringStep.py (removed)
@@ -1,52 +0,0 @@
-"""
-Test that step-inst over a crash behaves correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CreateDuringStepTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        TestBase.setUp(self)
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-
-    @expectedFailureWindows("llvm.org/pr24778")
-    @expectedFailureAndroid("llvm.org/pr24497", archs=['arm', 'aarch64'])
-    def test_step_inst_with(self):
-        """Test thread creation during step-inst handling."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target and target.IsValid(), "Target is valid")
-
-        self.bp_num = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # Run the program.
-        process = target.LaunchSimple(None, None, self.get_process_working_directory())
-        self.assertTrue(process and process.IsValid(), PROCESS_IS_VALID)
-
-        # The stop reason should be breakpoint.
-        self.assertEqual(process.GetState(), lldb.eStateStopped, PROCESS_STOPPED)
-        self.assertEqual(lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint).IsValid(), 1,
-                STOPPED_DUE_TO_BREAKPOINT)
-
-        thread = process.GetThreadAtIndex(0)
-        self.assertTrue(thread and thread.IsValid(), "Thread is valid")
-
-        # Keep stepping until the inferior crashes
-        while process.GetState() == lldb.eStateStopped and not lldbutil.is_thread_crashed(self, thread):
-            thread.StepInstruction(False)
-
-        self.assertEqual(process.GetState(), lldb.eStateStopped, PROCESS_STOPPED)
-        self.assertTrue(lldbutil.is_thread_crashed(self, thread), "Thread has crashed")
-        process.Kill()

Removed: lldb/trunk/test/functionalities/thread/crash_during_step/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/crash_during_step/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/crash_during_step/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/crash_during_step/main.cpp (removed)
@@ -1,16 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-void (*crash)() = nullptr;
-
-int main()
-{
-    crash(); // Set breakpoint here
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/create_after_attach/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_after_attach/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_after_attach/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/create_after_attach/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_STD_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py (original)
+++ lldb/trunk/test/functionalities/thread/create_after_attach/TestCreateAfterAttach.py (removed)
@@ -1,120 +0,0 @@
-"""
-Test thread creation after process attach.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CreateAfterAttachTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfFreeBSD # Hangs.  May be the same as Linux issue llvm.org/pr16229 but
-                   # not yet investigated.  Revisit once required functionality
-                   # is implemented for FreeBSD.
-    @skipIfWindows # Occasionally hangs on Windows, may be same as other issues.
-    def test_create_after_attach_with_popen(self):
-        """Test thread creation after process attach."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.create_after_attach(use_fork=False)
-
-    @skipIfFreeBSD # Hangs. Revisit once required functionality is implemented
-                   # for FreeBSD.
-    @skipIfRemote
-    @skipIfWindows # Windows doesn't have fork.
-    @expectedFlakeyLinux("llvm.org/pr16229") # 1/100 dosep, build 3546, clang-3.5 x84_64
-    def test_create_after_attach_with_fork(self):
-        """Test thread creation after process attach."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.create_after_attach(use_fork=True)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers for our breakpoints.
-        self.break_1 = line_number('main.cpp', '// Set first breakpoint here')
-        self.break_2 = line_number('main.cpp', '// Set second breakpoint here')
-        self.break_3 = line_number('main.cpp', '// Set third breakpoint here')
-
-    def create_after_attach(self, use_fork):
-        """Test thread creation after process attach."""
-
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Spawn a new process
-        if use_fork:
-            pid = self.forkSubprocess(exe)
-        else:
-            popen = self.spawnSubprocess(exe)
-            pid = popen.pid
-        self.addTearDownHook(self.cleanupSubprocesses)
-
-        # Attach to the spawned process
-        self.runCmd("process attach -p " + str(pid))
-
-        target = self.dbg.GetSelectedTarget()
-
-        process = target.GetProcess()
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-
-        # This should create a breakpoint in the second child thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_2, num_expected_locations=1)
-
-        # This should create a breakpoint in the first child thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_3, num_expected_locations=1)
-
-        # Note:  With std::thread, we cannot rely on particular thread numbers.  Using
-        # std::thread may cause the program to spin up a thread pool (and it does on
-        # Windows), so the thread numbers are non-deterministic.
-
-        # Run to the first breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #',
-                       'main',
-                       'stop reason = breakpoint'])
-
-        # Change a variable to escape the loop
-        self.runCmd("expression main_thread_continue = 1")
-
-        # Run to the second breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #',
-                       'thread_2_func',
-                       'stop reason = breakpoint'])
-
-        # Change a variable to escape the loop
-        self.runCmd("expression child_thread_continue = 1")
-
-        # Run to the third breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint.
-        # Thread 3 may or may not have already exited.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #',
-                       'thread_1_func',
-                       'stop reason = breakpoint'])
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/create_after_attach/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_after_attach/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_after_attach/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/create_after_attach/main.cpp (removed)
@@ -1,78 +0,0 @@
-#include <stdio.h>
-#include <chrono>
-#include <thread>
-
-using std::chrono::microseconds;
-
-#if defined(__linux__)
-#include <sys/prctl.h>
-#endif
-
-volatile int g_thread_2_continuing = 0;
-
-void *
-thread_1_func (void *input)
-{
-    // Waiting to be released by the debugger.
-    while (!g_thread_2_continuing) // Another thread will change this value
-    {
-        std::this_thread::sleep_for(microseconds(1));
-    }
-
-    // Return
-    return NULL;  // Set third breakpoint here
-}
-
-void *
-thread_2_func (void *input)
-{
-    // Waiting to be released by the debugger.
-    int child_thread_continue = 0;
-    while (!child_thread_continue) // The debugger will change this value
-    {
-        std::this_thread::sleep_for(microseconds(1));  // Set second breakpoint here
-    }
-
-    // Release thread 1
-    g_thread_2_continuing = 1;
-
-    // Return
-    return NULL;
-}
-
-int main(int argc, char const *argv[])
-{
-#if defined(__linux__)
-    // Immediately enable any ptracer so that we can allow the stub attach
-    // operation to succeed.  Some Linux kernels are locked down so that
-    // only an ancestor process can be a ptracer of a process.  This disables that
-    // restriction.  Without it, attach-related stub tests will fail.
-#if defined(PR_SET_PTRACER) && defined(PR_SET_PTRACER_ANY)
-    int prctl_result;
-
-    // For now we execute on best effort basis.  If this fails for
-    // some reason, so be it.
-    prctl_result = prctl(PR_SET_PTRACER, PR_SET_PTRACER_ANY, 0, 0, 0);
-    (void) prctl_result;
-#endif
-#endif
-
-    // Create a new thread
-    std::thread thread_1(thread_1_func, nullptr);
-
-    // Waiting to be attached by the debugger.
-    int main_thread_continue = 0;
-    while (!main_thread_continue) // The debugger will change this value
-    {
-        std::this_thread::sleep_for(microseconds(1));  // Set first breakpoint here
-    }
-
-    // Create another new thread
-    std::thread thread_2(thread_2_func, nullptr);
-
-    // Wait for the threads to finish.
-    thread_1.join();
-    thread_2.join();
-
-    printf("Exiting now\n");
-}

Removed: lldb/trunk/test/functionalities/thread/create_during_step/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_during_step/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_during_step/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/create_during_step/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/create_during_step/TestCreateDuringStep.py (removed)
@@ -1,127 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CreateDuringStepTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_step_inst(self):
-        """Test thread creation during step-inst handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.create_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step')
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_step_over(self):
-        """Test thread creation during step-over handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.create_during_step_base("thread step-over -m all-threads", 'stop reason = step over')
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_step_in(self):
-        """Test thread creation during step-in handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.create_during_step_base("thread step-in -m all-threads", 'stop reason = step in')
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break and continue.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-        self.continuepoint = line_number('main.cpp', '// Continue from here')
-
-    def create_during_step_base(self, step_cmd, step_stop_reason):
-        """Test thread creation while using step-in."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the stepping thread.
-        self.bp_num = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Make sure we see only two threads
-        self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread objects
-        thread1 = process.GetThreadAtIndex(0)
-        thread2 = process.GetThreadAtIndex(1)
-
-        # Make sure both threads are stopped
-        self.assertTrue(thread1.IsStopped(), "Thread 1 didn't stop during breakpoint")
-        self.assertTrue(thread2.IsStopped(), "Thread 2 didn't stop during breakpoint")
-
-        # Find the thread that is stopped at the breakpoint
-        stepping_thread = None
-        for thread in process:
-            expected_bp_desc = "breakpoint %s." % self.bp_num
-            if expected_bp_desc in thread.GetStopDescription(100):
-                stepping_thread = thread
-                break
-        self.assertTrue(stepping_thread != None, "unable to find thread stopped at %s" % expected_bp_desc)
-        current_line = self.breakpoint
-        # Keep stepping until we've reached our designated continue point
-        while current_line != self.continuepoint:
-            if stepping_thread != process.GetSelectedThread():
-                process.SetSelectedThread(stepping_thread)
-
-            self.runCmd(step_cmd)
-
-            frame = stepping_thread.GetFrameAtIndex(0)
-            current_line = frame.GetLineEntry().GetLine()
-
-            # Make sure we're still where we thought we were
-            self.assertTrue(current_line >= self.breakpoint, "Stepped to unexpected line, " + str(current_line))
-            self.assertTrue(current_line <= self.continuepoint, "Stepped to unexpected line, " + str(current_line))
-
-        # Update the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Check to see that we increased the number of threads as expected
-        self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match after thread exit.')
-
-        self.expect("thread list", 'Process state is stopped due to step',
-                substrs = ['stopped',
-                           step_stop_reason])
-
-        # Run to completion
-        self.runCmd("process continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/create_during_step/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/create_during_step/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/create_during_step/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/create_during_step/main.cpp (removed)
@@ -1,89 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which one thread will be
-// created while the debugger is stepping in another thread.
-
-#include <atomic>
-#include <thread>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-std::atomic_int g_barrier;
-
-volatile int g_thread_created = 0;
-volatile int g_test = 0;
-
-void *
-step_thread_func ()
-{
-    g_test = 0;         // Set breakpoint here
-
-    while (!g_thread_created)
-        g_test++;
-
-    // One more time to provide a continue point
-    g_test++;           // Continue from here
-
-    // Return
-    return NULL;
-}
-
-void *
-create_thread_func (void *input)
-{
-    std::thread *step_thread = (std::thread*)input;
-
-    // Wait until the main thread knows this thread is started.
-    pseudo_barrier_wait(g_barrier);
-
-    // Wait until the other thread is done.
-    step_thread->join();
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-    // Use a simple count to simulate a barrier.
-    pseudo_barrier_init(g_barrier, 2);
-
-    // Create a thread to hit the breakpoint.
-    std::thread thread_1(step_thread_func);
-
-    // Wait until the step thread is stepping
-    while (g_test < 1)
-        do_nothing();
-
-    // Create a thread to exit while we're stepping.
-    std::thread thread_2(create_thread_func, &thread_1);
-
-    // Wait until that thread is started
-    pseudo_barrier_wait(g_barrier);
-
-    // Let the stepping thread know the other thread is there
-    g_thread_created = 1;
-
-    // Wait for the threads to finish.
-    thread_2.join();
-    thread_1.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/exit_during_break/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_break/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_break/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_break/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_break/TestExitDuringBreak.py (removed)
@@ -1,81 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ExitDuringBreakpointTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test(self):
-        """Test thread exit during breakpoint handling."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # The exit probably occurred during breakpoint handling, but it isn't
-        # guaranteed.  The main thing we're testing here is that the debugger
-        # handles this cleanly is some way.
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Make sure we see at least five threads
-        self.assertTrue(num_threads >= 5, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread objects
-        thread1 = process.GetThreadAtIndex(0)
-        thread2 = process.GetThreadAtIndex(1)
-        thread3 = process.GetThreadAtIndex(2)
-        thread4 = process.GetThreadAtIndex(3)
-        thread5 = process.GetThreadAtIndex(4)
-
-        # Make sure all threads are stopped
-        self.assertTrue(thread1.IsStopped(), "Thread 1 didn't stop during breakpoint")
-        self.assertTrue(thread2.IsStopped(), "Thread 2 didn't stop during breakpoint")
-        self.assertTrue(thread3.IsStopped(), "Thread 3 didn't stop during breakpoint")
-        self.assertTrue(thread4.IsStopped(), "Thread 4 didn't stop during breakpoint")
-        self.assertTrue(thread5.IsStopped(), "Thread 5 didn't stop during breakpoint")
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/exit_during_break/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_break/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_break/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_break/main.cpp (removed)
@@ -1,130 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which one thread will exit
-// while a breakpoint is being handled in another thread.  This may not always
-// happen because it's possible that the exiting thread will exit before the
-// breakpoint is hit.  The test case should be flexible enough to treat that
-// as success.
-
-#include <atomic>
-#include <chrono>
-#include <thread>
-
-volatile int g_test = 0;
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()  
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-// A barrier to synchronize all the threads except the one that will exit.
-std::atomic_int g_barrier1;
-
-// A barrier to synchronize all the threads including the one that will exit.
-std::atomic_int g_barrier2;
-
-// A barrier to keep the first group of threads from exiting until after the
-// breakpoint has been passed.
-std::atomic_int g_barrier3;
-
-void *
-break_thread_func ()
-{
-    // Wait until the entire first group of threads is running
-    pseudo_barrier_wait(g_barrier1);
-
-    // Wait for the exiting thread to start
-    pseudo_barrier_wait(g_barrier2);
-
-    // Do something
-    g_test++;       // Set breakpoint here
-
-    // Synchronize after the breakpoint
-    pseudo_barrier_wait(g_barrier3);
-
-    // Return
-    return NULL;
-}
-
-void *
-wait_thread_func ()
-{
-    // Wait until the entire first group of threads is running
-    pseudo_barrier_wait(g_barrier1);
-
-    // Wait for the exiting thread to start
-    pseudo_barrier_wait(g_barrier2);
-
-    // Wait until the breakpoint has been passed
-    pseudo_barrier_wait(g_barrier3);
-
-    // Return
-    return NULL;
-}
-
-void *
-exit_thread_func ()
-{
-    // Sync up with the rest of the threads.
-    pseudo_barrier_wait(g_barrier2);
-
-    // Try to make sure this thread doesn't exit until the breakpoint is hit.
-    std::this_thread::sleep_for(std::chrono::microseconds(1));
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-
-    // The first barrier waits for the non-exiting threads to start.
-    // This thread will also participate in that barrier.
-    // The idea here is to guarantee that the exiting thread will be
-    // last in the internal list maintained by the debugger.
-    pseudo_barrier_init(g_barrier1, 5);
-
-    // The second break synchronyizes thread exection with the breakpoint.
-    pseudo_barrier_init(g_barrier2, 5);
-
-    // The third barrier keeps the waiting threads around until the breakpoint
-    // has been passed.
-    pseudo_barrier_init(g_barrier3, 4);
-
-    // Create a thread to hit the breakpoint
-    std::thread thread_1(break_thread_func);
-
-    // Create more threads to slow the debugger down during processing.
-    std::thread thread_2(wait_thread_func);
-    std::thread thread_3(wait_thread_func);
-    std::thread thread_4(wait_thread_func);
-
-    // Wait for all these threads to get started.
-    pseudo_barrier_wait(g_barrier1);
-
-    // Create a thread to exit during the breakpoint
-    std::thread thread_5(exit_thread_func);
-
-    // Wait for the threads to finish
-    thread_5.join();
-    thread_4.join();
-    thread_3.join();
-    thread_2.join();
-    thread_1.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/exit_during_step/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_step/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_step/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_step/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_THREADS := YES
-CXX_SOURCES := main.cpp
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_step/TestExitDuringStep.py (removed)
@@ -1,143 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ExitDuringStepTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test_thread_state_is_stopped(self):
-        """Test thread exit during step handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', True)
-
-    @skipIfFreeBSD # llvm.org/pr21411: test is hanging
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test(self):
-        """Test thread exit during step handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.exit_during_step_base("thread step-inst -m all-threads", 'stop reason = instruction step', False)
-
-    @skipIfFreeBSD # llvm.org/pr21411: test is hanging
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test_step_over(self):
-        """Test thread exit during step-over handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.exit_during_step_base("thread step-over -m all-threads", 'stop reason = step over', False)
-
-    @skipIfFreeBSD # llvm.org/pr21411: test is hanging
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test_step_in(self):
-        """Test thread exit during step-in handling."""
-        self.build(dictionary=self.getBuildFlags())
-        self.exit_during_step_base("thread step-in -m all-threads", 'stop reason = step in', False)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break and continue.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-        self.continuepoint = line_number('main.cpp', '// Continue from here')
-
-    def exit_during_step_base(self, step_cmd, step_stop_reason, test_thread_state):
-        """Test thread exit during step handling."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        self.bp_num = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Make sure we see all three threads
-        self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread objects
-        thread1 = process.GetThreadAtIndex(0)
-        thread2 = process.GetThreadAtIndex(1)
-        thread3 = process.GetThreadAtIndex(2)
-
-        # Make sure all threads are stopped
-        if test_thread_state:
-            self.assertTrue(thread1.IsStopped(), "Thread 1 didn't stop during breakpoint")
-            self.assertTrue(thread2.IsStopped(), "Thread 2 didn't stop during breakpoint")
-            self.assertTrue(thread3.IsStopped(), "Thread 3 didn't stop during breakpoint")
-            return
-
-        # Find the thread that is stopped at the breakpoint
-        stepping_thread = None
-        for thread in process:
-            expected_bp_desc = "breakpoint %s." % self.bp_num
-            if expected_bp_desc in thread.GetStopDescription(100):
-                stepping_thread = thread
-                break
-        self.assertTrue(stepping_thread != None, "unable to find thread stopped at %s" % expected_bp_desc)
-
-        current_line = self.breakpoint
-        stepping_frame = stepping_thread.GetFrameAtIndex(0)
-        self.assertTrue(current_line == stepping_frame.GetLineEntry().GetLine(), "Starting line for stepping doesn't match breakpoint line.")
-
-        # Keep stepping until we've reached our designated continue point
-        while current_line != self.continuepoint:
-            # Since we're using the command interpreter to issue the thread command
-            # (on the selected thread) we need to ensure the selected thread is the
-            # stepping thread.
-            if stepping_thread != process.GetSelectedThread():
-                process.SetSelectedThread(stepping_thread)
-
-            self.runCmd(step_cmd)
-
-            frame = stepping_thread.GetFrameAtIndex(0)
-
-            current_line = frame.GetLineEntry().GetLine()
-
-            self.assertTrue(current_line >= self.breakpoint, "Stepped to unexpected line, " + str(current_line))
-            self.assertTrue(current_line <= self.continuepoint, "Stepped to unexpected line, " + str(current_line))
-
-        self.runCmd("thread list")
-
-        # Update the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Check to see that we reduced the number of threads as expected
-        self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match after thread exit.')
-
-        self.expect("thread list", 'Process state is stopped due to step',
-                substrs = ['stopped',
-                           step_stop_reason])
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/exit_during_step/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/exit_during_step/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/exit_during_step/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/exit_during_step/main.cpp (removed)
@@ -1,87 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which one thread will exit
-// while the debugger is stepping in another thread.
-
-#include <thread>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-// A barrier to synchronize thread start.
-volatile int g_barrier;
-
-volatile int g_thread_exited = 0;
-
-volatile int g_test = 0;
-
-void *
-step_thread_func ()
-{
-    // Wait until both threads are started.
-    pseudo_barrier_wait(g_barrier);
-
-    g_test = 0;         // Set breakpoint here
-
-    while (!g_thread_exited)
-        g_test++;
-
-    // One more time to provide a continue point
-    g_test++;           // Continue from here
-
-    // Return
-    return NULL;
-}
-
-void *
-exit_thread_func ()
-{
-    // Wait until both threads are started.
-    pseudo_barrier_wait(g_barrier);
-
-    // Wait until the other thread is stepping.
-    while (g_test == 0)
-      do_nothing();
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-    // Synchronize thread start so that doesn't happen during stepping.
-    pseudo_barrier_init(g_barrier, 2);
-
-    // Create a thread to hit the breakpoint.
-    std::thread thread_1(step_thread_func);
-
-    // Create a thread to exit while we're stepping.
-    std::thread thread_2(exit_thread_func);
-
-    // Wait for the exit thread to finish.
-    thread_2.join();
-
-    // Let the stepping thread know the other thread is gone.
-    g_thread_exited = 1;
-
-    // Wait for the stepping thread to finish.
-    thread_1.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/jump/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/jump/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_THREADS := YES
-CXX_SOURCES := main.cpp other.cpp
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py (original)
+++ lldb/trunk/test/functionalities/thread/jump/TestThreadJump.py (removed)
@@ -1,60 +0,0 @@
-"""
-Test jumping to different places.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ThreadJumpTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test(self):
-        """Test thread jump handling."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Find the line numbers for our breakpoints.
-        self.mark1 = line_number('main.cpp', '// 1st marker')
-        self.mark2 = line_number('main.cpp', '// 2nd marker')
-        self.mark3 = line_number('main.cpp', '// 3rd marker')
-        self.mark4 = line_number('main.cpp', '// 4th marker')
-        self.mark5 = line_number('other.cpp', '// other marker')
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.mark3, num_expected_locations=1)
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint 1.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1",
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint 1'])
-
-        self.do_min_test(self.mark3, self.mark1, "i", "4"); # Try the int path, force it to return 'a'
-        self.do_min_test(self.mark3, self.mark2, "i", "5"); # Try the int path, force it to return 'b'
-        self.do_min_test(self.mark4, self.mark1, "j", "7"); # Try the double path, force it to return 'a'
-        self.do_min_test(self.mark4, self.mark2, "j", "8"); # Try the double path, force it to return 'b'
-
-        # Try jumping to another function in a different file.
-        self.runCmd("thread jump --file other.cpp --line %i --force" % self.mark5)
-        self.expect("process status",
-            substrs = ["at other.cpp:%i" % self.mark5])
-
-        # Try jumping to another function (without forcing)
-        self.expect("j main.cpp:%i" % self.mark1, COMMAND_FAILED_AS_EXPECTED, error = True,
-            substrs = ["error"])
-    
-    def do_min_test(self, start, jump, var, value):
-        self.runCmd("j %i" % start)                     # jump to the start marker
-        self.runCmd("thread step-in")                   # step into the min fn
-        self.runCmd("j %i" % jump)                      # jump to the branch we're interested in
-        self.runCmd("thread step-out")                  # return out
-        self.runCmd("thread step-over")                 # assign to the global
-        self.expect("expr %s" % var, substrs = [value]) # check it

Removed: lldb/trunk/test/functionalities/thread/jump/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/jump/main.cpp (removed)
@@ -1,35 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test verifies the correct handling of program counter jumps.
-
-int otherfn();
-
-template<typename T>
-T min(T a, T b)
-{
-    if (a < b)
-    {
-        return a; // 1st marker
-    } else {
-        return b; // 2nd marker
-    }
-}
-
-int main ()
-{
-    int i;
-    double j;
-    int min_i_a = 4, min_i_b = 5;
-    double min_j_a = 7.0, min_j_b = 8.0;
-    i = min(min_i_a, min_i_b); // 3rd marker
-    j = min(min_j_a, min_j_b); // 4th marker
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/jump/other.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/jump/other.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/jump/other.cpp (original)
+++ lldb/trunk/test/functionalities/thread/jump/other.cpp (removed)
@@ -1,13 +0,0 @@
-//===-- other.cpp -----------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-int otherfn()
-{
-    return 4; // other marker
-}

Removed: lldb/trunk/test/functionalities/thread/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/main.cpp (removed)
@@ -1,50 +0,0 @@
-#include <condition_variable>
-#include <mutex>
-#include <thread>
-
-std::mutex mutex;
-std::condition_variable cond;
-
-void *
-thread3(void *input)
-{
-    std::unique_lock<std::mutex> lock(mutex);
-    cond.notify_all(); // Set break point at this line.
-    return NULL;
-}
-
-void *
-thread2(void *input)
-{
-    std::unique_lock<std::mutex> lock(mutex);
-    cond.notify_all();
-    cond.wait(lock);
-    return NULL;
-}
-
-void *
-thread1(void *input)
-{
-    std::thread thread_2(thread2, nullptr);
-    thread_2.join();
-
-    return NULL;
-}
-
-int main()
-{
-    std::unique_lock<std::mutex> lock(mutex);
-
-    std::thread thread_1(thread1, nullptr);
-    cond.wait(lock);
-
-    std::thread thread_3(thread3, nullptr);
-    cond.wait(lock);
-
-    lock.unlock();
-
-    thread_1.join();
-    thread_3.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/multi_break/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/multi_break/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/multi_break/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/multi_break/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_THREADS := YES
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py (original)
+++ lldb/trunk/test/functionalities/thread/multi_break/TestMultipleBreakpoints.py (removed)
@@ -1,77 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class MultipleBreakpointTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-
-    @expectedFailureDarwin("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test(self):
-        """Test simultaneous breakpoints in multiple threads."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        # The breakpoint may be hit in either thread 2 or thread 3.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        # Make sure we see all three threads
-        self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread objects
-        thread1 = process.GetThreadAtIndex(0)
-        thread2 = process.GetThreadAtIndex(1)
-        thread3 = process.GetThreadAtIndex(2)
-
-        # Make sure both threads are stopped
-        self.assertTrue(thread1.IsStopped(), "Primary thread didn't stop during breakpoint")
-        self.assertTrue(thread2.IsStopped(), "Secondary thread didn't stop during breakpoint")
-        self.assertTrue(thread3.IsStopped(), "Tertiary thread didn't stop during breakpoint")
-
-        # Delete the first breakpoint then continue
-        self.runCmd("breakpoint delete 1")
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/multi_break/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/multi_break/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/multi_break/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/multi_break/main.cpp (removed)
@@ -1,61 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which a breakpoint will be
-// hit in two threads at nearly the same moment.  The expected result is that
-// the breakpoint in the second thread will be hit while the breakpoint handler
-// in the first thread is trying to stop all threads.
-
-#include <atomic>
-#include <thread>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-std::atomic_int g_barrier;
-
-volatile int g_test = 0;
-
-void *
-thread_func ()
-{
-    // Wait until both threads are running
-    pseudo_barrier_wait(g_barrier);
-
-    // Do something
-    g_test++;       // Set breakpoint here
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-    // Don't let either thread do anything until they're both ready.
-    pseudo_barrier_init(g_barrier, 2);
-
-    // Create two threads
-    std::thread thread_1(thread_func);
-    std::thread thread_2(thread_func);
-
-    // Wait for the threads to finish
-    thread_1.join();
-    thread_2.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/state/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/state/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/state/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/state/Makefile (removed)
@@ -1,4 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/state/TestThreadStates.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/state/TestThreadStates.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/state/TestThreadStates.py (original)
+++ lldb/trunk/test/functionalities/thread/state/TestThreadStates.py (removed)
@@ -1,346 +0,0 @@
-"""
-Test thread states.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ThreadStateTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureDarwin("rdar://15367566")
-    @expectedFailureFreeBSD('llvm.org/pr15824')
-    @expectedFailureLinux("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_state_after_breakpoint(self):
-        """Test thread state after breakpoint."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.thread_state_after_breakpoint_test()
-
-    @skipIfDarwin # 'llvm.org/pr23669', cause Python crash randomly
-    @expectedFailureDarwin('llvm.org/pr23669')
-    @expectedFailureWindows("llvm.org/pr24660")
-    def test_state_after_continue(self):
-        """Test thread state after continue."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.thread_state_after_continue_test()
-
-    @skipIfDarwin # 'llvm.org/pr23669', cause Python crash randomly
-    @expectedFailureDarwin('llvm.org/pr23669')
-    @expectedFailureWindows("llvm.org/pr24660")
-    def test_state_after_expression(self):
-        """Test thread state after expression."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.thread_state_after_continue_test()
-
-    @unittest2.expectedFailure("llvm.org/pr16712") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_process_interrupt(self):
-        """Test process interrupt."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.process_interrupt_test()
-
-    @unittest2.expectedFailure("llvm.org/pr15824") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24668") # Breakpoints not resolved correctly
-    def test_process_state(self):
-        """Test thread states (comprehensive)."""
-        self.build(dictionary=self.getBuildFlags(use_cpp11=False))
-        self.thread_states_test()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers for our breakpoints.
-        self.break_1 = line_number('main.cpp', '// Set first breakpoint here')
-        self.break_2 = line_number('main.cpp', '// Set second breakpoint here')
-
-    def thread_state_after_breakpoint_test(self):
-        """Test thread state after breakpoint."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-
-        # The breakpoint list should show 1 breakpoint with 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.break_1])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread object
-        thread = process.GetThreadAtIndex(0)
-
-        # Make sure the thread is in the stopped state.
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' during breakpoint 1.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' during breakpoint 1.")
-
-        # Kill the process
-        self.runCmd("process kill")
-
-    def thread_state_after_continue_test(self):
-        """Test thread state after continue."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_2, num_expected_locations=1)
-
-        # The breakpoint list should show 1 breakpoints with 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_1])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread object
-        thread = process.GetThreadAtIndex(0)
-
-        # Continue, the inferior will go into an infinite loop waiting for 'g_test' to change.
-        self.dbg.SetAsync(True)
-        self.runCmd("continue")
-        time.sleep(1)
-
-        # Check the thread state. It should be running.
-        self.assertFalse(thread.IsStopped(), "Thread state is \'stopped\' when it should be running.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' when it should be running.")
-
-        # Go back to synchronous interactions
-        self.dbg.SetAsync(False)
-
-        # Kill the process
-        self.runCmd("process kill")
-
-    def thread_state_after_expression_test(self):
-        """Test thread state after expression."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_2, num_expected_locations=1)
-
-        # The breakpoint list should show 1 breakpoints with 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.break_1])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread object
-        thread = process.GetThreadAtIndex(0)
-
-        # Get the inferior out of its loop
-        self.runCmd("expression g_test = 1")
-
-        # Check the thread state
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' after expression evaluation.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' after expression evaluation.")
-
-        # Let the process run to completion
-        self.runCmd("process continue")
-
-
-    def process_interrupt_test(self):
-        """Test process interrupt and continue."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-
-        # The breakpoint list should show 1 breakpoints with 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.break_1])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
-
-        # Continue, the inferior will go into an infinite loop waiting for 'g_test' to change.
-        self.dbg.SetAsync(True)
-        self.runCmd("continue")
-        time.sleep(1)
-
-        # Go back to synchronous interactions
-        self.dbg.SetAsync(False)
-
-        # Stop the process
-        self.runCmd("process interrupt")
-
-        # The stop reason of the thread should be signal.
-        self.expect("process status", STOPPED_DUE_TO_SIGNAL,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = signal'])
-
-        # Get the inferior out of its loop
-        self.runCmd("expression g_test = 1")
-
-        # Run to completion
-        self.runCmd("continue")
-
-    def thread_states_test(self):
-        """Test thread states (comprehensive)."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_2, num_expected_locations=1)
-
-        # The breakpoint list should show 2 breakpoints with 1 location each.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, locations = 1" % self.break_1,
-                       "2: file = 'main.cpp', line = %d, locations = 1" % self.break_2])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match.')
-
-        # Get the thread object
-        thread = process.GetThreadAtIndex(0)
-
-        # Make sure the thread is in the stopped state.
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' during breakpoint 1.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' during breakpoint 1.")
-
-        # Continue, the inferior will go into an infinite loop waiting for 'g_test' to change.
-        self.dbg.SetAsync(True)
-        self.runCmd("continue")
-        time.sleep(1)
-
-        # Check the thread state. It should be running.
-        self.assertFalse(thread.IsStopped(), "Thread state is \'stopped\' when it should be running.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' when it should be running.")
-
-        # Go back to synchronous interactions
-        self.dbg.SetAsync(False)
-
-        # Stop the process
-        self.runCmd("process interrupt")
-
-        # The stop reason of the thread should be signal.
-        self.expect("process status", STOPPED_DUE_TO_SIGNAL,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = signal'])
-
-        # Check the thread state
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' after process stop.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' after process stop.")
-
-        # Get the inferior out of its loop
-        self.runCmd("expression g_test = 1")
-
-        # Check the thread state
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' after expression evaluation.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' after expression evaluation.")
-
-        # The stop reason of the thread should be signal.
-        self.expect("process status", STOPPED_DUE_TO_SIGNAL,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = signal'])
-
-        # Run to breakpoint 2
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint'])
-
-        # Make sure both threads are stopped
-        self.assertTrue(thread.IsStopped(), "Thread state isn't \'stopped\' during breakpoint 2.")
-        self.assertFalse(thread.IsSuspended(), "Thread state is \'suspended\' during breakpoint 2.")
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/state/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/state/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/state/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/state/main.cpp (removed)
@@ -1,45 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to verify that thread states are properly maintained
-// when transitional actions are performed in the debugger.  Most of the logic
-// is in the test script.  This program merely provides places where the test
-// can create the intended states.
-
-#include <chrono>
-#include <thread>
-
-volatile int g_test = 0;
-
-int addSomething(int a)
-{
-    return a + g_test;
-}
-
-int doNothing()
-{
-    int temp = 0;   // Set first breakpoint here
-
-    while (!g_test && temp < 5)
-    {
-        ++temp;
-        std::this_thread::sleep_for(std::chrono::seconds(2));
-    }
-
-    return temp;    // Set second breakpoint here
-}
-
-int main ()
-{
-    int result = doNothing();
-
-    int i = addSomething(result);
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/step_out/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/step_out/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/step_out/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/step_out/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py (original)
+++ lldb/trunk/test/functionalities/thread/step_out/TestThreadStepOut.py (removed)
@@ -1,131 +0,0 @@
-"""
-Test stepping out from a function in a multi-threaded program.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ThreadStepOutTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfLinux                              # Test occasionally times out on the Linux build bot
-    @expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
-    @expectedFailureFreeBSD("llvm.org/pr18066") # inferior does not exit
-    @expectedFailureWindows # Test crashes
-    def test_step_single_thread(self):
-        """Test thread step out on one thread via command interpreter. """
-        self.build(dictionary=self.getBuildFlags())
-        self.step_out_test(self.step_out_single_thread_with_cmd)
-
-    @skipIfLinux                              # Test occasionally times out on the Linux build bot
-    @expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
-    @expectedFailureFreeBSD("llvm.org/pr19347") # 2nd thread stops at breakpoint
-    @expectedFailureWindows # Test crashes
-    def test_step_all_threads(self):
-        """Test thread step out on all threads via command interpreter. """
-        self.build(dictionary=self.getBuildFlags())
-        self.step_out_test(self.step_out_all_threads_with_cmd)
-
-    @skipIfLinux                              # Test occasionally times out on the Linux build bot
-    @expectedFailureLinux("llvm.org/pr23477") # Test occasionally times out on the Linux build bot
-    @expectedFailureFreeBSD("llvm.org/pr19347")
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test_python(self):
-        """Test thread step out on one thread via Python API (dwarf)."""
-        self.build(dictionary=self.getBuildFlags())
-        self.step_out_test(self.step_out_with_python)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number for our breakpoint.
-        self.breakpoint = line_number('main.cpp', '// Set breakpoint here')
-        if "gcc" in self.getCompiler() or self.isIntelCompiler(): 
-            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (icc and gcc)')
-        else:
-            self.step_out_destination = line_number('main.cpp', '// Expect to stop here after step-out (clang)')
-
-    def step_out_single_thread_with_cmd(self):
-        self.step_out_with_cmd("this-thread")
-        self.expect("thread backtrace all", "Thread location after step out is correct",
-            substrs = ["main.cpp:%d" % self.step_out_destination,
-                       "main.cpp:%d" % self.breakpoint])
-
-    def step_out_all_threads_with_cmd(self):
-        self.step_out_with_cmd("all-threads")
-        self.expect("thread backtrace all", "Thread location after step out is correct",
-            substrs = ["main.cpp:%d" % self.step_out_destination])
-
-    def step_out_with_cmd(self, run_mode):
-        self.runCmd("thread select %d" % self.step_out_thread.GetIndexID())
-        self.runCmd("thread step-out -m %s" % run_mode)
-        self.expect("process status", "Expected stop reason to be step-out",
-            substrs = ["stop reason = step out"])
-
-        self.expect("thread list", "Selected thread did not change during step-out",
-            substrs = ["* thread #%d" % self.step_out_thread.GetIndexID()])
-
-    def step_out_with_python(self):
-        self.step_out_thread.StepOut()
-
-        reason = self.step_out_thread.GetStopReason()
-        self.assertEqual(lldb.eStopReasonPlanComplete, reason,
-            "Expected thread stop reason 'plancomplete', but got '%s'" % lldbutil.stop_reason_to_str(reason))
-
-        # Verify location after stepping out
-        frame = self.step_out_thread.GetFrameAtIndex(0)
-        desc = lldbutil.get_description(frame.GetLineEntry())
-        expect = "main.cpp:%d" % self.step_out_destination
-        self.assertTrue(expect in desc, "Expected %s but thread stopped at %s" % (expect, desc))
-
-    def step_out_test(self, step_out_func):
-        """Test single thread step out of a function."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint in the main thread.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.breakpoint, num_expected_locations=1)
-
-        # The breakpoint list should show 1 location.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.breakpoint])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Get the target process
-        self.inferior_target = self.dbg.GetSelectedTarget()
-        self.inferior_process = self.inferior_target.GetProcess()
-
-        # Get the number of threads, ensure we see all three.
-        num_threads = self.inferior_process.GetNumThreads()
-        self.assertEqual(num_threads, 3, 'Number of expected threads and actual threads do not match.')
-
-        (breakpoint_threads, other_threads) = ([], [])
-        lldbutil.sort_stopped_threads(self.inferior_process,
-                                      breakpoint_threads=breakpoint_threads,
-                                      other_threads=other_threads)
-
-        while len(breakpoint_threads) < 2:
-            self.runCmd("thread continue %s" % " ".join([str(x.GetIndexID()) for x in other_threads]))
-            lldbutil.sort_stopped_threads(self.inferior_process,
-                                          breakpoint_threads=breakpoint_threads,
-                                          other_threads=other_threads)
-
-        self.step_out_thread = breakpoint_threads[0]
-
-        # Step out of thread stopped at breakpoint
-        step_out_func()
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(self.inferior_process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/step_out/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/step_out/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/step_out/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/step_out/main.cpp (removed)
@@ -1,63 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test is intended to create a situation in which two threads are stopped
-// at a breakpoint and the debugger issues a step-out command.
-
-#include <atomic>
-#include <thread>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-std::atomic_int g_barrier;
-
-volatile int g_test = 0;
-
-void step_out_of_here() {
-  g_test += 5; // Set breakpoint here
-}
-
-void *
-thread_func ()
-{
-    // Wait until both threads are running
-    pseudo_barrier_wait(g_barrier);
-
-    // Do something
-    step_out_of_here(); // Expect to stop here after step-out (clang)
-
-    // Return
-    return NULL;  // Expect to stop here after step-out (icc and gcc)
-}
-
-int main ()
-{
-    // Don't let either thread do anything until they're both ready.
-    pseudo_barrier_init(g_barrier, 2);
-
-    // Create two threads
-    std::thread thread_1(thread_func);
-    std::thread thread_2(thread_func);
-
-    // Wait for the threads to finish
-    thread_1.join();
-    thread_2.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/thread/thread_exit/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_exit/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_exit/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/thread_exit/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_THREADS := YES
-CXX_SOURCES := main.cpp
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py (original)
+++ lldb/trunk/test/functionalities/thread/thread_exit/TestThreadExit.py (removed)
@@ -1,117 +0,0 @@
-"""
-Test number of threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ThreadExitTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers for our breakpoints.
-        self.break_1 = line_number('main.cpp', '// Set first breakpoint here')
-        self.break_2 = line_number('main.cpp', '// Set second breakpoint here')
-        self.break_3 = line_number('main.cpp', '// Set third breakpoint here')
-        self.break_4 = line_number('main.cpp', '// Set fourth breakpoint here')
-
-    @expectedFailureFreeBSD("llvm.org/pr18190") # thread states not properly maintained
-    @expectedFailureWindows("llvm.org/pr24681")
-    def test(self):
-        """Test thread exit handling."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # This should create a breakpoint with 1 location.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_1, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_2, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_3, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.break_4, num_expected_locations=1)
-
-        # The breakpoint list should show 1 locations.
-        self.expect("breakpoint list -f", "Breakpoint location shown correctly",
-            substrs = ["1: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_1,
-                       "2: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_2,
-                       "3: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_3,
-                       "4: file = 'main.cpp', line = %d, exact_match = 0, locations = 1" % self.break_4])
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint 1.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 1",
-            substrs = ['stopped',
-                       '* thread #1',
-                       'stop reason = breakpoint 1',
-                       'thread #2'])
-
-        # Get the target process
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # Get the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match at breakpoint 1.')
-
-        # Run to the second breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint 1.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 2",
-            substrs = ['stopped',
-                       'thread #1',
-                       'thread #2',
-                       'stop reason = breakpoint 2',
-                       'thread #3'])
-
-        # Update the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 3, 'Number of expected threads and actual threads do not match at breakpoint 2.')
-
-        # Run to the third breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint 3.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 3",
-            substrs = ['stopped',
-                       'thread #1',
-                       'stop reason = breakpoint 3',
-                       'thread #3',
-                       ])
-
-        # Update the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 2, 'Number of expected threads and actual threads do not match at breakpoint 3.')
-
-        # Run to the fourth breakpoint
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint 4.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT + " 4",
-            substrs = ['stopped',
-                       'thread #1',
-                       'stop reason = breakpoint 4'])
-
-        # Update the number of threads
-        num_threads = process.GetNumThreads()
-
-        self.assertTrue(num_threads == 1, 'Number of expected threads and actual threads do not match at breakpoint 4.')
-
-        # Run to completion
-        self.runCmd("continue")
-
-        # At this point, the inferior process should have exited.
-        self.assertTrue(process.GetState() == lldb.eStateExited, PROCESS_EXITED)

Removed: lldb/trunk/test/functionalities/thread/thread_exit/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_exit/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_exit/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/thread_exit/main.cpp (removed)
@@ -1,85 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// This test verifies the correct handling of child thread exits.
-
-#include <atomic>
-#include <thread>
-
-// Note that although hogging the CPU while waiting for a variable to change
-// would be terrible in production code, it's great for testing since it
-// avoids a lot of messy context switching to get multiple threads synchronized.
-#define do_nothing()
-
-#define pseudo_barrier_wait(bar) \
-    --bar;                       \
-    while (bar > 0)              \
-        do_nothing();
-
-#define pseudo_barrier_init(bar, count) (bar = count)
-
-std::atomic_int g_barrier1;
-std::atomic_int g_barrier2;
-std::atomic_int g_barrier3;
-
-void *
-thread1 ()
-{
-    // Synchronize with the main thread.
-    pseudo_barrier_wait(g_barrier1);
-
-    // Synchronize with the main thread and thread2.
-    pseudo_barrier_wait(g_barrier2);
-
-    // Return
-    return NULL;                                      // Set second breakpoint here
-}
-
-void *
-thread2 ()
-{
-    // Synchronize with thread1 and the main thread.
-    pseudo_barrier_wait(g_barrier2);
-
-    // Synchronize with the main thread.
-    pseudo_barrier_wait(g_barrier3);
-
-    // Return
-    return NULL;
-}
-
-int main ()
-{
-    pseudo_barrier_init(g_barrier1, 2);
-    pseudo_barrier_init(g_barrier2, 3);
-    pseudo_barrier_init(g_barrier3, 2);
-
-    // Create a thread.
-    std::thread thread_1(thread1);
-
-    // Wait for thread1 to start.
-    pseudo_barrier_wait(g_barrier1);
-
-    // Create another thread.
-    std::thread thread_2(thread2);  // Set first breakpoint here
-
-    // Wait for thread2 to start.
-    pseudo_barrier_wait(g_barrier2);
-
-    // Wait for the first thread to finish
-    thread_1.join();
-
-    // Synchronize with the remaining thread
-    pseudo_barrier_wait(g_barrier3);                  // Set third breakpoint here
-
-    // Wait for the second thread to finish
-    thread_2.join();
-
-    return 0;                                         // Set fourth breakpoint here
-}

Removed: lldb/trunk/test/functionalities/thread/thread_specific_break/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_specific_break/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_specific_break/Makefile (original)
+++ lldb/trunk/test/functionalities/thread/thread_specific_break/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-ENABLE_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py (original)
+++ lldb/trunk/test/functionalities/thread/thread_specific_break/TestThreadSpecificBreakpoint.py (removed)
@@ -1,64 +0,0 @@
-"""
-Test that we obey thread conditioned breakpoints.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ThreadSpecificBreakTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfFreeBSD # test frequently times out or hangs
-    @expectedFailureFreeBSD('llvm.org/pr18522') # hits break in another thread in testrun
-    @expectedFailureWindows("llvm.org/pr24777")
-    @add_test_categories(['pyapi'])
-    @expectedFlakeyLinux # this test fails 6/100 dosep runs
-    def test_python(self):
-        """Test that we obey thread conditioned breakpoints."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        self.dbg.HandleCommand ("log enable -f /tmp/lldb-testsuite-log.txt lldb step breakpoint process") 
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        main_source_spec = lldb.SBFileSpec ("main.cpp")
-
-        # Set a breakpoint in the thread body, and make it active for only the first thread.
-        break_thread_body = target.BreakpointCreateBySourceRegex ("Break here in thread body.", main_source_spec)
-        self.assertTrue (break_thread_body.IsValid() and break_thread_body.GetNumLocations() > 0, "Failed to set thread body breakpoint.")
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_thread_body)
-        
-        victim_thread = threads[0]
-
-        # Pick one of the threads, and change the breakpoint so it ONLY stops for this thread,
-        # but add a condition that it won't stop for this thread's my_value.  The other threads
-        # pass the condition, so they should stop, but if the thread-specification is working
-        # they should not stop.  So nobody should hit the breakpoint anymore, and we should
-        # just exit cleanly.
-
-        frame = victim_thread.GetFrameAtIndex(0)
-        value = frame.FindVariable("my_value").GetValueAsSigned(0)
-        self.assertTrue (value > 0 and value < 11, "Got a reasonable value for my_value.")
-
-        cond_string = "my_value != %d"%(value)
-
-        break_thread_body.SetThreadID(victim_thread.GetThreadID())
-        break_thread_body.SetCondition (cond_string)
-
-        process.Continue()
-
-        next_stop_state = process.GetState()
-        self.assertTrue (next_stop_state == lldb.eStateExited, "We should have not hit the breakpoint again.")

Removed: lldb/trunk/test/functionalities/thread/thread_specific_break/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/thread/thread_specific_break/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/thread/thread_specific_break/main.cpp (original)
+++ lldb/trunk/test/functionalities/thread/thread_specific_break/main.cpp (removed)
@@ -1,39 +0,0 @@
-#include <chrono>
-#include <thread>
-#include <vector>
-
-void *
-thread_function (void *thread_marker)
-{
-    int keep_going = 1; 
-    int my_value = *((int *)thread_marker);
-    int counter = 0;
-
-    while (counter < 20)
-    {
-        counter++; // Break here in thread body.
-        std::this_thread::sleep_for(std::chrono::microseconds(10));
-    }
-    return NULL;
-}
-
-
-int 
-main ()
-{
-    std::vector<std::thread> threads;
-
-    int thread_value = 0;
-    int i;
-
-    for (i = 0; i < 10; i++)
-    {
-        thread_value += 1;
-        threads.push_back(std::thread(thread_function, &thread_value));
-    }
-
-    for (i = 0; i < 10; i++)
-        threads[i].join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/tty/TestTerminal.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/tty/TestTerminal.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/tty/TestTerminal.py (original)
+++ lldb/trunk/test/functionalities/tty/TestTerminal.py (removed)
@@ -1,39 +0,0 @@
-"""
-Test lldb command aliases.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class LaunchInTerminalTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    # Darwin is the only platform that I know of that supports optionally launching
-    # a program in a separate terminal window. It would be great if other platforms
-    # added support for this.
-    @skipUnlessDarwin
-    # If the test is being run under sudo, the spawned terminal won't retain that elevated
-    # privilege so it can't open the socket to talk back to the test case
-    @unittest2.skipIf(hasattr(os, 'geteuid') and os.geteuid() == 0, "test cannot be run as root")
-    # Do we need to disable this test if the testsuite is being run on a remote system?
-    # This env var is only defined when the shell is running in a local mac terminal window
-    @unittest2.skipUnless('TERM_PROGRAM' in os.environ, "test must be run on local system")
-    @no_debug_info_test
-    def test_launch_in_terminal (self):
-        exe = "/bin/ls"
-        target = self.dbg.CreateTarget(exe)
-        launch_info = lldb.SBLaunchInfo(["-lAF", "/tmp/"])
-        launch_info.SetLaunchFlags(lldb.eLaunchFlagLaunchInTTY | lldb.eLaunchFlagCloseTTYOnExit)
-        error = lldb.SBError()
-        process = target.Launch (launch_info, error)
-        self.assertTrue(error.Success(), "Make sure launch happened successfully in a terminal window")
-        # Running in synchronous mode our process should have run and already exited by the time target.Launch() returns
-        self.assertTrue(process.GetState() == lldb.eStateExited)

Removed: lldb/trunk/test/functionalities/type_completion/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_completion/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_completion/Makefile (original)
+++ lldb/trunk/test/functionalities/type_completion/Makefile (removed)
@@ -1,12 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-
-# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
-# targets.  Other targets do not, which causes this test to fail.
-# This flag enables FullDebugInfo for all targets.
-ifneq (,$(findstring clang,$(CC)))
-  CFLAGS_EXTRAS += -fno-limit-debug-info
-endif
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py (original)
+++ lldb/trunk/test/functionalities/type_completion/TestTypeCompletion.py (removed)
@@ -1,108 +0,0 @@
-"""
-Check that types only get completed when necessary.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TypeCompletionTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureIcc # often fails with 'NameAndAddress should be valid'
-    # Fails with gcc 4.8.1 with llvm.org/pr15301 LLDB prints incorrect sizes of STL containers
-    def test_with_run_command(self):
-        """Check that types only get completed when necessary."""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_source_regexp (self, "// Set break point at this line.")
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # This is the function to remove the custom formats in order to have a
-        # clean slate for the next test case.
-        def cleanup():
-            self.runCmd('type category enable -l c++', check=False)
-
-        self.runCmd('type category disable -l c++', check=False)
-
-        # Execute the cleanup function during test case tear down.
-        self.addTearDownHook(cleanup)
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertFalse(p_type.IsTypeComplete(), 'vector<T> complete but it should not be')
-
-        self.runCmd("continue")
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertFalse(p_type.IsTypeComplete(), 'vector<T> complete but it should not be')
-
-        self.runCmd("continue")
-
-        self.runCmd("frame variable p --show-types")
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertTrue(p_type.IsTypeComplete(), 'vector<T> should now be complete')
-        name_address_type = p_type.GetTemplateArgumentType(0)
-        self.assertTrue(name_address_type.IsValid(), 'NameAndAddress should be valid')
-        self.assertFalse(name_address_type.IsTypeComplete(), 'NameAndAddress complete but it should not be')
-
-        self.runCmd("continue")
-
-        self.runCmd("frame variable guy --show-types")
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertTrue(p_type.IsTypeComplete(), 'vector<T> should now be complete')
-        name_address_type = p_type.GetTemplateArgumentType(0)
-        self.assertTrue(name_address_type.IsValid(), 'NameAndAddress should be valid')
-        self.assertTrue(name_address_type.IsTypeComplete(), 'NameAndAddress should now be complete')
-        field0 = name_address_type.GetFieldAtIndex(0)
-        self.assertTrue(field0.IsValid(), 'NameAndAddress::m_name should be valid')
-        string = field0.GetType().GetPointeeType()
-        self.assertTrue(string.IsValid(), 'CustomString should be valid')
-        self.assertFalse(string.IsTypeComplete(), 'CustomString complete but it should not be')
-
-        self.runCmd("continue")
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertTrue(p_type.IsTypeComplete(), 'vector<T> should now be complete')
-        name_address_type = p_type.GetTemplateArgumentType(0)
-        self.assertTrue(name_address_type.IsValid(), 'NameAndAddress should be valid')
-        self.assertTrue(name_address_type.IsTypeComplete(), 'NameAndAddress should now be complete')
-        field0 = name_address_type.GetFieldAtIndex(0)
-        self.assertTrue(field0.IsValid(), 'NameAndAddress::m_name should be valid')
-        string = field0.GetType().GetPointeeType()
-        self.assertTrue(string.IsValid(), 'CustomString should be valid')
-        self.assertFalse(string.IsTypeComplete(), 'CustomString complete but it should not be')
-
-        self.runCmd('type category enable -l c++', check=False)
-        self.runCmd('frame variable guy --show-types --ptr-depth=1')
-
-        p_vector = self.dbg.GetSelectedTarget().GetProcess().GetSelectedThread().GetSelectedFrame().FindVariable('p')
-        p_type = p_vector.GetType()
-        self.assertTrue(p_type.IsTypeComplete(), 'vector<T> should now be complete')
-        name_address_type = p_type.GetTemplateArgumentType(0)
-        self.assertTrue(name_address_type.IsValid(), 'NameAndAddress should be valid')
-        self.assertTrue(name_address_type.IsTypeComplete(), 'NameAndAddress should now be complete')
-        field0 = name_address_type.GetFieldAtIndex(0)
-        self.assertTrue(field0.IsValid(), 'NameAndAddress::m_name should be valid')
-        string = field0.GetType().GetPointeeType()
-        self.assertTrue(string.IsValid(), 'CustomString should be valid')
-        self.assertTrue(string.IsTypeComplete(), 'CustomString should now be complete')

Removed: lldb/trunk/test/functionalities/type_completion/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_completion/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_completion/main.cpp (original)
+++ lldb/trunk/test/functionalities/type_completion/main.cpp (removed)
@@ -1,81 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <string.h>
-#include <vector>
-#include <iostream>
-
-class CustomString
-{
-public:
-  CustomString (const char* buffer) :
-    m_buffer(nullptr)
-  {
-    if (buffer)
-    {
-      auto l = strlen(buffer);
-      m_buffer = new char[1 + l];
-      strcpy(m_buffer, buffer);
-    }
-  }
-  
-  ~CustomString ()
-  {
-    delete[] m_buffer;
-  }
-  
-  const char*
-  GetBuffer ()
-  {
-    return m_buffer;
-  }
-  
-private:
-  char *m_buffer;
-};
-
-class NameAndAddress
-	{
-	public:
-		CustomString& GetName() { return *m_name; }
-		CustomString& GetAddress() { return *m_address; }
-		NameAndAddress(const char* N, const char* A) : m_name(new CustomString(N)), m_address(new CustomString(A))
-		{
-		}
-		~NameAndAddress()
-		{
-		}
-		
-	private:
-		CustomString* m_name;
-		CustomString* m_address;
-};
-
-typedef std::vector<NameAndAddress> People;
-
-int main (int argc, const char * argv[])
-{
-	People p;
-	p.push_back(NameAndAddress("Enrico","123 Main Street"));
-	p.push_back(NameAndAddress("Foo","10710 Johnson Avenue")); // Set break point at this line.
-	p.push_back(NameAndAddress("Arpia","6956 Florey Street"));
-	p.push_back(NameAndAddress("Apple","1 Infinite Loop")); // Set break point at this line.
-	p.push_back(NameAndAddress("Richard","9500 Gilman Drive"));
-	p.push_back(NameAndAddress("Bar","3213 Windsor Rd"));
-
-	for (int j = 0; j<p.size(); j++)
-	{
-		NameAndAddress guy = p[j];
-		std::cout << "Person " << j << " is named " << guy.GetName().GetBuffer() << " and lives at " << guy.GetAddress().GetBuffer() << std::endl; // Set break point at this line.
-	}
-
-	return 0;
-	
-}
-

Removed: lldb/trunk/test/functionalities/type_lookup/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_lookup/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_lookup/Makefile (original)
+++ lldb/trunk/test/functionalities/type_lookup/Makefile (removed)
@@ -1,9 +0,0 @@
-LEVEL = ../../make
-
-OBJC_SOURCES := main.m
-
-CFLAGS_EXTRAS += -w
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py (original)
+++ lldb/trunk/test/functionalities/type_lookup/TestTypeLookup.py (removed)
@@ -1,43 +0,0 @@
-"""
-Test type lookup command.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import datetime
-import lldbutil
-
-class TypeLookupTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break at.
-        self.line = line_number('main.m', '// break here')
-
-    @skipUnlessDarwin
-    def test_type_lookup(self):
-        """Test type lookup command."""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-                       
-        self.expect('type lookup NoSuchType', substrs=['@interface'], matching=False)
-        self.expect('type lookup NSURL', substrs=['NSURL'])
-        self.expect('type lookup NSArray', substrs=['NSArray'])
-        self.expect('type lookup NSObject', substrs=['NSObject', 'isa'])

Removed: lldb/trunk/test/functionalities/type_lookup/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/type_lookup/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/type_lookup/main.m (original)
+++ lldb/trunk/test/functionalities/type_lookup/main.m (removed)
@@ -1,16 +0,0 @@
-//===-- main.m ------------------------------------------------*- ObjC -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#import <Foundation/Foundation.h>
-
-int main (int argc, const char * argv[])
-{
-  return 0; // break here
-}
-

Removed: lldb/trunk/test/functionalities/unwind/noreturn/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/noreturn/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/noreturn/Makefile (original)
+++ lldb/trunk/test/functionalities/unwind/noreturn/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-CFLAGS ?= -g -Os
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/noreturn/TestNoreturnUnwind.py (removed)
@@ -1,76 +0,0 @@
-"""
-Test that we can backtrace correctly with 'noreturn' functions on the stack
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class NoreturnUnwind(TestBase):
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailurei386 #xfail to get buildbot green, failing config: i386 binary running on ubuntu 14.04 x86_64
-    @skipIfWindows # clang-cl does not support gcc style attributes.
-    def test (self):
-        """Test that we can backtrace correctly with 'noreturn' functions on the stack"""
-        self.build()
-        self.setTearDownCleanup()
-
-        exe = os.path.join(os.getcwd(), "a.out")
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if process.GetState() != lldb.eStateStopped:
-            self.fail("Process should be in the 'stopped' state, "
-                      "instead the actual state is: '%s'" %
-                      lldbutil.state_type_to_str(process.GetState()))
-
-        thread = process.GetThreadAtIndex(0)
-        abort_frame_number = 0
-        for f in thread.frames:
-            # Some C libraries mangle the abort symbol into __GI_abort.
-            if f.GetFunctionName() in ["abort", "__GI_abort"]:
-                break
-            abort_frame_number = abort_frame_number + 1
-
-        if self.TraceOn():
-            print("Backtrace once we're stopped:")
-            for f in thread.frames:
-                print("  %d %s" % (f.GetFrameID(), f.GetFunctionName()))
-
-        # I'm going to assume that abort() ends up calling/invoking another
-        # function before halting the process.  In which case if abort_frame_number
-        # equals 0, we didn't find abort() in the backtrace.
-        if abort_frame_number == len(thread.frames):
-            self.fail("Unable to find abort() in backtrace.")
-
-        func_c_frame_number = abort_frame_number + 1
-        if thread.GetFrameAtIndex (func_c_frame_number).GetFunctionName() != "func_c":
-            self.fail("Did not find func_c() above abort().")
-
-        # This depends on whether we see the func_b inlined function in the backtrace
-        # or not.  I'm not interested in testing that aspect of the backtrace here
-        # right now.
-
-        if thread.GetFrameAtIndex (func_c_frame_number + 1).GetFunctionName() == "func_b":
-            func_a_frame_number = func_c_frame_number + 2
-        else:
-            func_a_frame_number = func_c_frame_number + 1
-
-        if thread.GetFrameAtIndex (func_a_frame_number).GetFunctionName() != "func_a":
-            self.fail("Did not find func_a() above func_c().")
-
-        main_frame_number = func_a_frame_number + 1
-
-        if thread.GetFrameAtIndex (main_frame_number).GetFunctionName() != "main":
-            self.fail("Did not find main() above func_a().")

Removed: lldb/trunk/test/functionalities/unwind/noreturn/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/noreturn/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/noreturn/main.c (original)
+++ lldb/trunk/test/functionalities/unwind/noreturn/main.c (removed)
@@ -1,37 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <unistd.h>
-
-static void func_a (void) __attribute__((noinline));
-static void func_b (void) __attribute__((noreturn));
-static void func_c (void) __attribute__((noinline));
-
-static void
-func_c (void)
-{
-	abort ();
-}
-
-static void
-func_b (void)
-{
-	func_c ();
-	while (1)
-        ;
-}
-
-static void
-func_a (void)
-{
-	func_b ();
-}
-
-int
-main (int argc, char *argv[])
-{
-    sleep (2);
-
-	func_a ();
-
-	return 0;
-}

Removed: lldb/trunk/test/functionalities/unwind/sigtramp/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/sigtramp/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/sigtramp/Makefile (original)
+++ lldb/trunk/test/functionalities/unwind/sigtramp/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/sigtramp/TestSigtrampUnwind.py (removed)
@@ -1,81 +0,0 @@
-"""
-Test that we can backtrace correctly with 'sigtramp' functions on the stack
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SigtrampUnwind(TestBase):
-    mydir = TestBase.compute_mydir(__file__)
-
-    # On different platforms the "_sigtramp" and "__kill" frames are likely to be different.
-    # This test could probably be adapted to run on linux/*bsd easily enough.
-    @skipUnlessDarwin
-    def test (self):
-        """Test that we can backtrace correctly with _sigtramp on the stack"""
-        self.build()
-        self.setTearDownCleanup()
-
-        exe = os.path.join(os.getcwd(), "a.out")
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", line_number('main.c', '// Set breakpoint here'), num_expected_locations=1)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if process.GetState() != lldb.eStateStopped:
-            self.fail("Process should be in the 'stopped' state, "
-                      "instead the actual state is: '%s'" %
-                      lldbutil.state_type_to_str(process.GetState()))
-
-        self.expect("pro handle  -n false -p true -s false SIGUSR1", "Have lldb pass SIGUSR1 signals",
-            substrs = ["SIGUSR1", "true", "false", "false"])
-
-        lldbutil.run_break_set_by_symbol (self, "handler", num_expected_locations=1, module_name="a.out")
-
-        self.runCmd("continue")
-
-        thread = process.GetThreadAtIndex(0)
-
-        found_handler = False
-        found_sigtramp = False
-        found_kill = False
-        found_main = False
-
-        for f in thread.frames:
-            if f.GetFunctionName() == "handler":
-                found_handler = True
-            if f.GetFunctionName() == "_sigtramp":
-                found_sigtramp = True
-            if f.GetFunctionName() == "__kill":
-                found_kill = True
-            if f.GetFunctionName() == "main":
-                found_main = True
-
-        if self.TraceOn():
-            print("Backtrace once we're stopped:")
-            for f in thread.frames:
-                print("  %d %s" % (f.GetFrameID(), f.GetFunctionName()))
-
-        if found_handler == False:
-            self.fail("Unable to find handler() in backtrace.")
-
-        if found_sigtramp == False:
-            self.fail("Unable to find _sigtramp() in backtrace.")
-
-        if found_kill == False:
-            self.fail("Unable to find kill() in backtrace.")
-
-        if found_main == False:
-            self.fail("Unable to find main() in backtrace.")

Removed: lldb/trunk/test/functionalities/unwind/sigtramp/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/sigtramp/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/sigtramp/main.c (original)
+++ lldb/trunk/test/functionalities/unwind/sigtramp/main.c (removed)
@@ -1,27 +0,0 @@
-#include <stdlib.h>
-#include <signal.h>
-#include <stdio.h>
-#include <unistd.h>
-
-void handler (int in)
-{
-    puts ("in handler routine");
-    while (1)
-        ;
-}
-
-void
-foo ()
-{
-    puts ("in foo ()");
-    kill (getpid(), SIGUSR1);
-}
-int main ()
-{
-    puts ("in main");           // Set breakpoint here
-    signal (SIGUSR1, handler);
-    puts ("signal handler set up");
-    foo();
-    puts ("exiting");
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/unwind/standard/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/Makefile (original)
+++ lldb/trunk/test/functionalities/unwind/standard/Makefile (removed)
@@ -1,3 +0,0 @@
-LEVEL = ../../../make
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py (original)
+++ lldb/trunk/test/functionalities/unwind/standard/TestStandardUnwind.py (removed)
@@ -1,145 +0,0 @@
-"""
-Test that we can backtrace correctly from standard functions.
-
-This test suit is a collection of automatically generated tests from the source files in the
-directory. Please DON'T add individual test cases to this file.
-
-To add a new test case to this test suit please create a simple C/C++ application and put the
-source file into the directory of the test cases. The test suit will automatically pick the
-file up and generate a test case from it in run time (with name test_standard_unwind_<file_name>
-after escaping some special characters).
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-test_source_dirs = ["."]
-
-class StandardUnwindTest(TestBase):
-    mydir = TestBase.compute_mydir(__file__)
-
-    def standard_unwind_tests (self):
-        # The following variables have to be defined for each architecture and OS we testing for:
-        # base_function_names: List of function names where we accept that the stack unwinding is
-        #                      correct if they are on the stack. It should include the bottom most
-        #                      function on the stack and a list of functions where we know we can't
-        #                      unwind for any reason (list of expected failure functions)
-        # no_step_function_names: The list of functions where we don't want to step through
-        #                         instruction by instruction for any reason. (A valid reason is if
-        #                         it is impossible to step through a function instruction by
-        #                         instruction because it is special for some reason.) For these
-        #                         functions we will immediately do a step-out when we hit them.
-
-        triple = self.dbg.GetSelectedPlatform().GetTriple()
-        if re.match("arm-.*-.*-android", triple):
-            base_function_names = [
-                "_start",                # Base function on the stack
-                "__memcpy_base",         # Function reached by a fall through from the previous function
-                "__memcpy_base_aligned", # Function reached by a fall through from the previous function
-            ]
-            no_step_function_names = [
-                "__sync_fetch_and_add_4", # Calls into a special SO where we can't set a breakpoint
-                "pthread_mutex_lock",     # Uses ldrex and strex what interferes with the software single stepping
-                "pthread_mutex_unlock",   # Uses ldrex and strex what interferes with the software single stepping
-                "pthread_once",           # Uses ldrex and strex what interferes with the software single stepping
-            ]
-        elif re.match("aarch64-.*-.*-android", triple):
-            base_function_names = [
-                "do_arm64_start",         # Base function on the stack
-            ]
-            no_step_function_names = [
-                None,
-                "__cxa_guard_acquire",    # Uses ldxr and stxr what interferes with the software single stepping
-                "__cxa_guard_release",    # Uses ldxr and stxr what interferes with the software single stepping
-                "pthread_mutex_lock",     # Uses ldxr and stxr what interferes with the software single stepping
-                "pthread_mutex_unlock",   # Uses ldxr and stxr what interferes with the software single stepping
-                "pthread_once",           # Uses ldxr and stxr what interferes with the software single stepping
-            ]
-        else:
-            self.skipTest("No expectations for the current architecture")
-
-        exe = os.path.join(os.getcwd(), "a.out")
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        target.BreakpointCreateByName("main")
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process is not None, "SBTarget.Launch() failed")
-        self.assertEqual(process.GetState(), lldb.eStateStopped, "The process didn't hit main")
-
-        index = 0
-        while process.GetState() == lldb.eStateStopped:
-            index += 1
-            if process.GetNumThreads() > 1:
-                # In case of a multi threaded inferior if one of the thread is stopped in a blocking
-                # syscall and we try to step it then SBThread::StepInstruction() will block forever
-                self.skipTest("Multi threaded inferiors are not supported by this test")
-
-            thread = process.GetThreadAtIndex(0)
-
-            if self.TraceOn():
-                print("INDEX: %u" % index)
-                for f in thread.frames:
-                    print(f)
-
-            if thread.GetFrameAtIndex(0).GetFunctionName() is not None:
-                found_main = False
-                for f in thread.frames:
-                    if f.GetFunctionName() in base_function_names:
-                        found_main = True
-                        break
-                self.assertTrue(found_main, "Main function isn't found on the backtrace")
-
-            if thread.GetFrameAtIndex(0).GetFunctionName() in no_step_function_names:
-                thread.StepOut()
-            else:
-                thread.StepInstruction(False)
-
-# Collect source files in the specified directories
-test_source_files = set([])
-for d in test_source_dirs:
-    if os.path.isabs(d):
-        dirname = d
-    else:
-        dirname = os.path.join(os.path.dirname(__file__), d)
-
-    for root, _, files in os.walk(dirname):
-        test_source_files = test_source_files | set(os.path.abspath(os.path.join(root, f)) for f in files)
-
-# Generate test cases based on the collected source files
-for f in test_source_files:
-    if f.endswith(".cpp") or f.endswith(".c"):
-        @dwarf_test
-        @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-        def test_function_dwarf(self, f=f):
-            if f.endswith(".cpp"):
-                d = {'CXX_SOURCES': f}
-            elif f.endswith(".c"):
-                d = {'C_SOURCES': f}
-
-            # If we can't compile the inferior just skip the test instead of failing it.
-            # It makes the test suit more robust when testing on several different architecture
-            # avoid the hassle of skipping tests manually.
-            try:
-                self.buildDwarf(dictionary=d)
-                self.setTearDownCleanup(d)
-            except:
-                if self.TraceOn():
-                    print(sys.exc_info()[0])
-                self.skipTest("Inferior not supported")
-            self.standard_unwind_tests()
-
-        test_name = "test_unwind_" + str(f)
-        for c in ".=()/\\":
-            test_name = test_name.replace(c, '_')
-
-        test_function_dwarf.__name__ = test_name
-        setattr(StandardUnwindTest, test_function_dwarf.__name__, test_function_dwarf)

Removed: lldb/trunk/test/functionalities/unwind/standard/hand_written/divmod.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/hand_written/divmod.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/hand_written/divmod.cpp (original)
+++ lldb/trunk/test/functionalities/unwind/standard/hand_written/divmod.cpp (removed)
@@ -1,15 +0,0 @@
-//===-- divmod.cpp ----------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-int
-main(int argc, char const *argv[])
-{
-    signed long long a = 123456789, b = 12, c = a / b, d = a % b;
-    unsigned long long e = 123456789, f = 12, g = e / f, h = e % f;
-}

Removed: lldb/trunk/test/functionalities/unwind/standard/hand_written/fprintf.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/hand_written/fprintf.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/hand_written/fprintf.cpp (original)
+++ lldb/trunk/test/functionalities/unwind/standard/hand_written/fprintf.cpp (removed)
@@ -1,16 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <cstdio>
-
-int
-main(int argc, char const *argv[])
-{
-    fprintf(stderr, "%d %p %s\n", argc, argv, argv[0]);
-}

Removed: lldb/trunk/test/functionalities/unwind/standard/hand_written/new_delete.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/unwind/standard/hand_written/new_delete.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/unwind/standard/hand_written/new_delete.cpp (original)
+++ lldb/trunk/test/functionalities/unwind/standard/hand_written/new_delete.cpp (removed)
@@ -1,15 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-int
-main(int argc, char const *argv[])
-{
-    int* p = new int;
-    delete p;
-}

Removed: lldb/trunk/test/functionalities/value_md5_crash/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/value_md5_crash/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/value_md5_crash/Makefile (original)
+++ lldb/trunk/test/functionalities/value_md5_crash/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py (original)
+++ lldb/trunk/test/functionalities/value_md5_crash/TestValueMD5Crash.py (removed)
@@ -1,52 +0,0 @@
-"""
-Verify that the hash computing logic for ValueObject's values can't crash us.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ValueMD5CrashTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break at.
-        self.line = line_number('main.cpp', '// break here')
-
-    @expectedFailureWindows("llvm.org/pr24663")
-    def test_with_run_command(self):
-        """Verify that the hash computing logic for ValueObject's values can't crash us."""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        value = self.frame().FindVariable("a")
-        value.SetPreferDynamicValue(lldb.eDynamicCanRunTarget)
-        
-        v = value.GetValue()
-        type_name = value.GetTypeName()
-        self.assertTrue(type_name == "B *", "a is a B*")
-        
-        self.runCmd("next")
-        self.runCmd("process kill")
-        
-        # now the process is dead, and value needs updating
-        v = value.GetValue()
-        
-        # if we are here, instead of crashed, the test succeeded

Removed: lldb/trunk/test/functionalities/value_md5_crash/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/value_md5_crash/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/value_md5_crash/main.cpp (original)
+++ lldb/trunk/test/functionalities/value_md5_crash/main.cpp (removed)
@@ -1,29 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-class A {
-public:
-    virtual int foo() { return 1; }
-    virtual ~A () = default;
-    A() = default;
-};
-
-class B : public A {
-public:
-    virtual int foo() { return 2; }
-    virtual ~B () = default;
-    B() = default;
-};
-
-int main() {
-    A* a = new B();
-    a->foo();  // break here
-    return 0;  // break here
-}
-

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_STD_THREADS := YES
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/TestWatchLocation.py (removed)
@@ -1,97 +0,0 @@
-"""
-Test lldb watchpoint that uses '-s size' to watch a pointed location with size.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-class HelloWatchLocationTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # This is for verifying that watch location works.
-        self.violating_func = "do_bad_thing_with_location";
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = self.testMethodName
-        self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_hello_watchlocation(self):
-        """Test watching a location with '-s size' option."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1, loc_exact=False)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint pointed to by 'g_char_ptr'.
-        # The main.cpp, by design, misbehaves by not following the agreed upon
-        # protocol of using a mutex while accessing the global pool and by not
-        # incrmenting the global pool by 2.
-        self.expect("watchpoint set expression -w write -s 1 -- g_char_ptr", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 1', 'type = w'])
-        # Get a hold of the watchpoint id just created, it is used later on to
-        # match the watchpoint id which is expected to be fired.
-        match = re.match("Watchpoint created: Watchpoint (.*):", self.res.GetOutput().splitlines()[0])
-        if match:
-            expected_wp_id = int(match.group(1), 0)
-        else:
-            self.fail("Grokking watchpoint id faailed!") 
-
-        self.runCmd("expr unsigned val = *g_char_ptr; val")
-        self.expect(self.res.GetOutput().splitlines()[0], exe=False,
-            endstr = ' = 0')
-
-        self.runCmd("watchpoint set expression -w write -s 4 -- &threads[0]")
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type), but
-        # only once.  The stop reason of the thread should be watchpoint.
-        self.expect("thread list", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stopped',
-                       'stop reason = watchpoint %d' % expected_wp_id])
-
-        # Switch to the thread stopped due to watchpoint and issue some commands.
-        self.switch_to_thread_with_stop_reason(lldb.eStopReasonWatchpoint)
-        self.runCmd("thread backtrace")
-        self.expect("frame info",
-            substrs = [self.violating_func])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])
-
-        self.runCmd("thread backtrace all")

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/main.cpp (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchlocation/main.cpp (removed)
@@ -1,106 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <chrono>
-#include <condition_variable>
-#include <cstdio>
-#include <random>
-#include <thread>
-
-std::default_random_engine g_random_engine{std::random_device{}()};
-std::uniform_int_distribution<> g_distribution{0, 3000000};
-std::condition_variable g_condition_variable;
-std::mutex g_mutex;
-int g_count;
-
-char *g_char_ptr = nullptr;
-
-void
-barrier_wait()
-{
-    std::unique_lock<std::mutex> lock{g_mutex};
-    if (--g_count > 0)
-        g_condition_variable.wait(lock);
-    else
-        g_condition_variable.notify_all();
-}
-
-void
-do_bad_thing_with_location(char *char_ptr, char new_val)
-{
-    unsigned what = new_val;
-    printf("new value written to location(%p) = %u\n", char_ptr, what);
-    *char_ptr = new_val;
-}
-
-uint32_t
-access_pool (bool flag = false)
-{
-    static std::mutex g_access_mutex;
-    if (!flag)
-        g_access_mutex.lock();
-
-    char old_val = *g_char_ptr;
-    if (flag)
-        do_bad_thing_with_location(g_char_ptr, old_val + 1);
-
-    if (!flag)
-        g_access_mutex.unlock();
-    return *g_char_ptr;
-}
-
-void
-thread_func (uint32_t thread_index)
-{
-    printf ("%s (thread index = %u) startng...\n", __FUNCTION__, thread_index);
-
-    barrier_wait();
-
-    uint32_t count = 0;
-    uint32_t val;
-    while (count++ < 15)
-    {
-        // random micro second sleep from zero to 3 seconds
-        int usec = g_distribution(g_random_engine);
-        printf ("%s (thread = %u) doing a usleep (%d)...\n", __FUNCTION__, thread_index, usec);
-        std::this_thread::sleep_for(std::chrono::microseconds{usec});
-
-        if (count < 7)
-            val = access_pool ();
-        else
-            val = access_pool (true);
-
-        printf ("%s (thread = %u) after usleep access_pool returns %d (count=%d)...\n", __FUNCTION__, thread_index, val, count);
-    }
-    printf ("%s (thread index = %u) exiting...\n", __FUNCTION__, thread_index);
-}
-
-
-int main (int argc, char const *argv[])
-{
-    g_count = 4;
-    std::thread threads[3];
-
-    g_char_ptr = new char{};
-
-    // Create 3 threads
-    for (auto &thread : threads)
-        thread = std::thread{thread_func, std::distance(threads, &thread)};
-
-    printf ("Before turning all three threads loose...\n"); // Set break point at this line.
-    barrier_wait();
-
-    // Join all of our threads
-    for (auto &thread : threads)
-        thread.join();
-
-    delete g_char_ptr;
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/TestMyFirstWatchpoint.py (removed)
@@ -1,84 +0,0 @@
-"""
-Test my first lldb watchpoint.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class HelloWatchpointTestCase(TestBase):
-
-    def getCategories (self):
-        return ['basic_process']
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.c'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # And the watchpoint variable declaration line number.
-        self.decl = line_number(self.source, '// Watchpoint variable declaration.')
-        self.exe_name = 'a.out'
-        self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446")
-    def test_hello_watchpoint_using_watchpoint_set(self):
-        """Test a simple sequence of watchpoint creation and watchpoint hit."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for 'global'.
-        # There should be only one watchpoint hit (see main.c).
-        self.expect("watchpoint set variable -w write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type), but
-        # only once.  The stop reason of the thread should be watchpoint.
-        self.expect("thread list", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stopped',
-                       'stop reason = watchpoint'])
-
-        self.runCmd("process continue")
-
-        # Don't expect the read of 'global' to trigger a stop exception.
-        process = self.dbg.GetSelectedTarget().GetProcess()
-        if process.GetState() == lldb.eStateStopped:
-            self.assertFalse(lldbutil.get_stopped_thread(process, lldb.eStopReasonWatchpoint))
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])

Removed: lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/hello_watchpoint/main.c (removed)
@@ -1,30 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdint.h>
-
-int32_t global = 10; // Watchpoint variable declaration.
-char gchar1 = 'a';
-char gchar2 = 'b';
-
-int main(int argc, char** argv) {
-    int local = 0;
-    printf("&global=%p\n", &global);
-    printf("about to write to 'global'...\n"); // Set break point at this line.
-                                               // When stopped, watch 'global' for write.
-    global = 20;
-    gchar1 += 1;
-    gchar2 += 1;
-    local += argc;
-    ++local;
-    printf("local: %d\n", local);
-    printf("global=%d\n", global);
-    printf("gchar1='%c'\n", gchar1);
-    printf("gchar2='%c'\n", gchar2);
-}

Removed: lldb/trunk/test/functionalities/watchpoint/multiple_threads/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/multiple_threads/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/multiple_threads/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/multiple_threads/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_STD_THREADS := YES
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/multiple_threads/TestWatchpointMultipleThreads.py (removed)
@@ -1,137 +0,0 @@
-"""
-Test that lldb watchpoint works for multiple threads.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointForMultipleThreadsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchpoint_multiple_threads(self):
-        """Test that lldb watchpoint works for multiple threads."""
-        self.build()
-        self.setTearDownCleanup()
-        self.hello_multiple_threads()
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchpoint_multiple_threads_wp_set_and_then_delete(self):
-        """Test that lldb watchpoint works for multiple threads, and after the watchpoint is deleted, the watchpoint event should no longer fires."""
-        self.build()
-        self.setTearDownCleanup()
-        self.hello_multiple_threads_wp_set_and_then_delete()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.first_stop = line_number(self.source, '// Set break point at this line')
-
-    def hello_multiple_threads(self):
-        """Test that lldb watchpoint works for multiple threads."""
-        self.runCmd("file %s" % os.path.join(os.getcwd(), 'a.out'), CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for variable 'g_val'.
-        # The main.cpp, by design, misbehaves by not following the agreed upon
-        # protocol of using a mutex while accessing the global pool and by not
-        # writing to the variable.
-        self.expect("watchpoint set variable -w write g_val", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        while True:
-            self.runCmd("process continue")
-
-            self.runCmd("thread list")
-            if "stop reason = watchpoint" in self.res.GetOutput():
-                # Good, we verified that the watchpoint works!
-                self.runCmd("thread backtrace all")
-                break
-            else:
-                self.fail("The stop reason should be either break or watchpoint")
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])
-
-    def hello_multiple_threads_wp_set_and_then_delete(self):
-        """Test that lldb watchpoint works for multiple threads, and after the watchpoint is deleted, the watchpoint event should no longer fires."""
-        self.runCmd("file %s" % os.path.join(os.getcwd(), 'a.out'), CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.first_stop, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for variable 'g_val'.
-        # The main.cpp, by design, misbehaves by not following the agreed upon
-        # protocol of using a mutex while accessing the global pool and by not
-        # writing to the variable.
-        self.expect("watchpoint set variable -w write g_val", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        watchpoint_stops = 0
-        while True:
-            self.runCmd("process continue")
-            self.runCmd("process status")
-            if re.search("Process .* exited", self.res.GetOutput()):
-                # Great, we are done with this test!
-                break
-
-            self.runCmd("thread list")
-            if "stop reason = watchpoint" in self.res.GetOutput():
-                self.runCmd("thread backtrace all")
-                watchpoint_stops += 1
-                if watchpoint_stops > 1:
-                    self.fail("Watchpoint hits not supposed to exceed 1 by design!")
-                # Good, we verified that the watchpoint works!  Now delete the watchpoint.
-                if self.TraceOn():
-                    print("watchpoint_stops=%d at the moment we delete the watchpoint" % watchpoint_stops)
-                self.runCmd("watchpoint delete 1")
-                self.expect("watchpoint list -v",
-                    substrs = ['No watchpoints currently set.'])
-                continue
-            else:
-                self.fail("The stop reason should be either break or watchpoint")

Removed: lldb/trunk/test/functionalities/watchpoint/multiple_threads/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/multiple_threads/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/multiple_threads/main.cpp (original)
+++ lldb/trunk/test/functionalities/watchpoint/multiple_threads/main.cpp (removed)
@@ -1,83 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <chrono>
-#include <cstdio>
-#include <mutex>
-#include <random>
-#include <thread>
-
-std::default_random_engine g_random_engine{std::random_device{}()};
-std::uniform_int_distribution<> g_distribution{0, 3000000};
-
-uint32_t g_val = 0;
-
-
-uint32_t
-access_pool (bool flag = false)
-{
-    static std::mutex g_access_mutex;
-    if (!flag)
-        g_access_mutex.lock();
-
-    uint32_t old_val = g_val;
-    if (flag)
-    {
-        printf("changing g_val to %d...\n", old_val + 1);
-        g_val = old_val + 1;
-    }
-
-    if (!flag)
-        g_access_mutex.unlock();
-    return g_val;
-}
-
-void
-thread_func (uint32_t thread_index)
-{
-    // Break here in order to allow the thread
-    // to inherit the global watchpoint state.
-    printf ("%s (thread index = %u) startng...\n", __FUNCTION__, thread_index);
-
-    uint32_t count = 0;
-    uint32_t val;
-    while (count++ < 15)
-    {
-        // random micro second sleep from zero to 3 seconds
-        int usec = g_distribution(g_random_engine);
-        printf ("%s (thread = %u) doing a usleep (%d)...\n", __FUNCTION__, thread_index, usec);
-        std::this_thread::sleep_for(std::chrono::microseconds{usec});
-
-        if (count < 7)
-            val = access_pool ();
-        else
-            val = access_pool (true);
-
-        printf ("%s (thread = %u) after usleep access_pool returns %d (count=%d)...\n", __FUNCTION__, thread_index, val, count);
-    }
-    printf ("%s (thread index = %u) exiting...\n", __FUNCTION__, thread_index);
-}
-
-
-int main (int argc, char const *argv[])
-{
-    std::thread threads[3];
-
-    printf ("Before turning all three threads loose...\n"); // Set break point at this line,
-                                                            // in order to set our watchpoint.
-    // Create 3 threads
-    for (auto &thread : threads)
-        thread = std::thread{thread_func, std::distance(threads, &thread)};
-
-    // Join all of our threads
-    for (auto &thread : threads)
-        thread.join();
-
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/TestStepOverWatchpoint.py (removed)
@@ -1,108 +0,0 @@
-"""Test stepping over watchpoints."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import lldb
-import lldbutil
-from lldbtest import *
-
-
-class TestStepOverWatchpoint(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def getCategories(self):
-        return ['basic_process']
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446")
-    def test(self):
-        """Test stepping over watchpoints."""
-        self.build()
-        exe = os.path.join(os.getcwd(), 'a.out')
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(self.target, VALID_TARGET)
-
-        lldbutil.run_break_set_by_symbol(self, 'main')
-
-        process = target.LaunchSimple(None, None,
-                                      self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        thread = lldbutil.get_stopped_thread(process,
-                                             lldb.eStopReasonBreakpoint)
-        self.assertTrue(thread.IsValid(), "Failed to get thread.")
-
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue(frame.IsValid(), "Failed to get frame.")
-
-        read_value = frame.FindValue('g_watch_me_read',
-                                     lldb.eValueTypeVariableGlobal)
-        self.assertTrue(read_value.IsValid(), "Failed to find read value.")
-
-        error = lldb.SBError()
-
-        # resolve_location=True, read=True, write=False
-        read_watchpoint = read_value.Watch(True, True, False, error)
-        self.assertTrue(error.Success(),
-                        "Error while setting watchpoint: %s" %
-                        error.GetCString())
-        self.assertTrue(read_watchpoint, "Failed to set read watchpoint.")
-
-        write_value = frame.FindValue('g_watch_me_write',
-                                      lldb.eValueTypeVariableGlobal)
-        self.assertTrue(write_value, "Failed to find write value.")
-
-        # resolve_location=True, read=False, write=True
-        write_watchpoint = write_value.Watch(True, False, True, error)
-        self.assertTrue(read_watchpoint, "Failed to set write watchpoint.")
-        self.assertTrue(error.Success(),
-                        "Error while setting watchpoint: %s" %
-                        error.GetCString())
-
-        thread.StepOver()
-        self.assertTrue(thread.GetStopReason() == lldb.eStopReasonWatchpoint,
-                        STOPPED_DUE_TO_WATCHPOINT)
-        self.assertTrue(thread.GetStopDescription(20) == 'watchpoint 1')
-
-        process.Continue()
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-        self.assertTrue(thread.GetStopDescription(20) == 'step over')
-
-        self.step_inst_for_watchpoint(1)
-
-        thread.StepOver()
-        self.assertTrue(thread.GetStopReason() == lldb.eStopReasonWatchpoint,
-                        STOPPED_DUE_TO_WATCHPOINT)
-        self.assertTrue(thread.GetStopDescription(20) == 'watchpoint 2')
-
-        process.Continue()
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-        self.assertTrue(thread.GetStopDescription(20) == 'step over')
-
-        self.step_inst_for_watchpoint(2)
-
-    def step_inst_for_watchpoint(self, wp_id):
-        watchpoint_hit = False
-        current_line = self.frame().GetLineEntry().GetLine()
-        while self.frame().GetLineEntry().GetLine() == current_line:
-            self.thread().StepInstruction(False)  # step_over=False
-            stop_reason = self.thread().GetStopReason()
-            if stop_reason == lldb.eStopReasonWatchpoint:
-                self.assertFalse(watchpoint_hit, "Watchpoint already hit.")
-                expected_stop_desc = "watchpoint %d" % wp_id
-                actual_stop_desc = self.thread().GetStopDescription(20)
-                self.assertTrue(actual_stop_desc == expected_stop_desc,
-                                "Watchpoint ID didn't match.")
-                watchpoint_hit = True
-            else:
-                self.assertTrue(stop_reason == lldb.eStopReasonPlanComplete,
-                                STOPPED_DUE_TO_STEP_IN)
-        self.assertTrue(watchpoint_hit, "Watchpoint never hit.")

Removed: lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/step_over_watchpoint/main.c (removed)
@@ -1,19 +0,0 @@
-char g_watch_me_read;
-char g_watch_me_write;
-char g_temp;
-
-void watch_read() {
-    g_temp = g_watch_me_read;
-}
-
-void watch_write() {
-    g_watch_me_write = g_temp;
-}
-
-int main() {
-    watch_read();
-    g_temp = g_watch_me_read;
-    watch_write();
-    g_watch_me_write = g_temp;
-    return 0;
-}

Removed: lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/TestWatchedVarHitWhenInScope.py (removed)
@@ -1,83 +0,0 @@
-"""
-Test that a variable watchpoint should only hit when in scope.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchedVariableHitWhenInScopeTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    #
-    # This test depends on not tracking watchpoint expression hits if we have
-    # left the watchpoint scope.  We will provide such an ability at some point
-    # but the way this was done was incorrect, and it is unclear that for the
-    # most part that's not what folks mostly want, so we have to provide a 
-    # clearer API to express this.
-    #
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.c'
-        self.exe_name = self.testMethodName
-        self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @unittest2.expectedFailure("rdar://problem/18685649")
-    def test_watched_var_should_only_hit_when_in_scope(self):
-        """Test that a variable watchpoint should only hit when in scope."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped in main.
-        lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=-1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a watchpoint for 'c.a'.
-        # There should be only one watchpoint hit (see main.c).
-        self.expect("watchpoint set variable c.a", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type), but
-        # only once.  The stop reason of the thread should be watchpoint.
-        self.expect("thread list", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stopped',
-                       'stop reason = watchpoint'])
-
-        self.runCmd("process continue")
-        # Don't expect the read of 'global' to trigger a stop exception.
-        # The process status should be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])

Removed: lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/variable_out_of_scope/main.c (removed)
@@ -1,15 +0,0 @@
-typedef struct
-{
-    int a;
-    float b;
-} mystruct;
-
-int main()
-{
-    mystruct c;
-    
-    c.a = 5;
-    c.b = 3.6;
-    
-    return 0;
-}
\ No newline at end of file

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/TestWatchpointCommands.py (removed)
@@ -1,313 +0,0 @@
-"""
-Test watchpoint list, enable, disable, and delete commands.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointCommandsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.c'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        self.line2 = line_number(self.source, '// Set 2nd break point for disable_then_enable test case.')
-        # And the watchpoint variable declaration line number.
-        self.decl = line_number(self.source, '// Watchpoint variable declaration.')
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = self.testMethodName
-        self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_rw_watchpoint(self):
-        """Test read_write watchpoint and expect to stop two times."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a read_write-type watchpoint for 'global'.
-        # There should be two watchpoint hits (see main.c).
-        self.expect("watchpoint set variable -w read_write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = rw',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['Number of supported hardware watchpoints:',
-                       'hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (read_write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (read_write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 2.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 2'])
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_rw_watchpoint_delete(self):
-        """Test delete watchpoint and expect not to stop for watchpoint."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a read_write-type watchpoint for 'global'.
-        # There should be two watchpoint hits (see main.c).
-        self.expect("watchpoint set variable -w read_write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = rw',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Delete the watchpoint immediately, but set auto-confirm to true first.
-        self.runCmd("settings set auto-confirm true")
-        self.expect("watchpoint delete",
-            substrs = ['All watchpoints removed.'])
-        # Restore the original setting of auto-confirm.
-        self.runCmd("settings clear auto-confirm")
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        self.runCmd("watchpoint list -v")
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_rw_watchpoint_set_ignore_count(self):
-        """Test watchpoint ignore count and expect to not to stop at all."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a read_write-type watchpoint for 'global'.
-        # There should be two watchpoint hits (see main.c).
-        self.expect("watchpoint set variable -w read_write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = rw',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Set the ignore count of the watchpoint immediately.
-        self.expect("watchpoint ignore -i 2",
-            substrs = ['All watchpoints ignored.'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # Expect to find an ignore_count of 2.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0', 'ignore_count = 2'])
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # Expect to find a hit_count of 2 as well.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 2', 'ignore_count = 2'])
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_rw_disable_after_first_stop(self):
-        """Test read_write watchpoint but disable it after the first stop."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a read_write-type watchpoint for 'global'.
-        # There should be two watchpoint hits (see main.c).
-        self.expect("watchpoint set variable -w read_write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = rw',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['state = enabled', 'hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (read_write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        # Before continuing, we'll disable the watchpoint, which means we won't
-        # stop again after this.
-        self.runCmd("watchpoint disable")
-
-        self.expect("watchpoint list -v",
-            substrs = ['state = disabled', 'hit_count = 1'])
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_rw_disable_then_enable(self):
-        """Test read_write watchpoint, disable initially, then enable it."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line2, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a read_write-type watchpoint for 'global'.
-        # There should be two watchpoint hits (see main.c).
-        self.expect("watchpoint set variable -w read_write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = rw',
-                       '%s:%d' % (self.source, self.decl)])
-
-        # Immediately, we disable the watchpoint.  We won't be stopping due to a
-        # watchpoint after this.
-        self.runCmd("watchpoint disable")
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['state = disabled', 'hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the breakpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stop reason = breakpoint'])
-
-        # Before continuing, we'll enable the watchpoint, which means we will
-        # stop again after this.
-        self.runCmd("watchpoint enable")
-
-        self.expect("watchpoint list -v",
-            substrs = ['state = enabled', 'hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (read_write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandLLDB.py (removed)
@@ -1,139 +0,0 @@
-"""
-Test 'watchpoint command'.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointLLDBCommandTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # And the watchpoint variable declaration line number.
-        self.decl = line_number(self.source, '// Watchpoint variable declaration.')
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = 'a%d.out' % self.test_number
-        self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchpoint_command(self):
-        """Test 'watchpoint command'."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for 'global'.
-        self.expect("watchpoint set variable -w write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w',
-                       '%s:%d' % (self.source, self.decl)])
-
-        self.runCmd('watchpoint command add 1 -o "expr -- cookie = 777"')
-
-        # List the watchpoint command we just added.
-        self.expect("watchpoint command list 1",
-            substrs = ['expr -- cookie = 777'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        # Check that the watchpoint snapshoting mechanism is working.
-        self.expect("watchpoint list -v",
-            substrs = ['old value:', ' = 0',
-                       'new value:', ' = 1'])
-
-        # The watchpoint command "forced" our global variable 'cookie' to become 777.
-        self.expect("frame variable --show-globals cookie",
-            substrs = ['(int32_t)', 'cookie = 777'])
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchpoint_command_can_disable_a_watchpoint(self):
-        """Test that 'watchpoint command' action can disable a watchpoint after it is triggered."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for 'global'.
-        self.expect("watchpoint set variable -w write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w',
-                       '%s:%d' % (self.source, self.decl)])
-
-        self.runCmd('watchpoint command add 1 -o "watchpoint disable 1"')
-
-        # List the watchpoint command we just added.
-        self.expect("watchpoint command list 1",
-            substrs = ['watchpoint disable 1'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        # Check that the watchpoint has been disabled.
-        self.expect("watchpoint list -v",
-            substrs = ['disabled'])
-
-        self.runCmd("process continue")
-
-        # There should be no more watchpoint hit and the process status should
-        # be 'exited'.
-        self.expect("process status",
-            substrs = ['exited'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/TestWatchpointCommandPython.py (removed)
@@ -1,87 +0,0 @@
-"""
-Test 'watchpoint command'.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointPythonCommandTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # And the watchpoint variable declaration line number.
-        self.decl = line_number(self.source, '// Watchpoint variable declaration.')
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = self.testMethodName
-        self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @skipIfFreeBSD # timing out on buildbot
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    def test_watchpoint_command(self):
-        """Test 'watchpoint command'."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-#        self.expect("breakpoint set -l %d" % self.line, BREAKPOINT_CREATED,
-#            startstr = "Breakpoint created: 1: file ='%s', line = %d, locations = 1" %
-#                       (self.source, self.line))#
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for 'global'.
-        self.expect("watchpoint set variable -w write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w',
-                       '%s:%d' % (self.source, self.decl)])
-
-        self.runCmd('watchpoint command add -s python 1 -o \'frame.EvaluateExpression("cookie = 777")\'')
-
-        # List the watchpoint command we just added.
-        self.expect("watchpoint command list 1",
-            substrs = ['frame.EvaluateExpression', 'cookie = 777'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-
-        # Check that the watchpoint snapshoting mechanism is working.
-        self.expect("watchpoint list -v",
-            substrs = ['old value:', ' = 0',
-                       'new value:', ' = 1'])
-
-        # The watchpoint command "forced" our global variable 'cookie' to become 777.
-        self.expect("frame variable --show-globals cookie",
-            substrs = ['(int32_t)', 'cookie = 777'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/command/main.cpp (removed)
@@ -1,28 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdint.h>
-
-int32_t global = 0; // Watchpoint variable declaration.
-int32_t cookie = 0;
-
-static void modify(int32_t &var) {
-    ++var;
-}
-
-int main(int argc, char** argv) {
-    int local = 0;
-    printf("&global=%p\n", &global);
-    printf("about to write to 'global'...\n"); // Set break point at this line.
-    for (int i = 0; i < 10; ++i)
-        modify(global);
-
-    printf("global=%d\n", global);
-    printf("cookie=%d\n", cookie);
-}

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/TestWatchpointConditionCmd.py (removed)
@@ -1,78 +0,0 @@
-"""
-Test watchpoint modify command to set condition on a watchpoint.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointConditionCmdTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # And the watchpoint variable declaration line number.
-        self.decl = line_number(self.source, '// Watchpoint variable declaration.')
-        # Build dictionary to have unique executable names for each test method.
-        self.exe_name = self.testMethodName
-        self.d = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchpoint_cond(self):
-        """Test watchpoint condition."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint for 'global'.
-        # With a condition of 'global==5'.
-        self.expect("watchpoint set variable -w write global", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 4', 'type = w',
-                       '%s:%d' % (self.source, self.decl)])
-
-        self.runCmd("watchpoint modify -c 'global==5'")
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0', 'global==5'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type).
-        # The stop reason of the thread should be watchpoint.
-        self.expect("thread backtrace", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stop reason = watchpoint'])
-        self.expect("frame variable --show-globals global",
-            substrs = ['(int32_t)', 'global = 5'])
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 2.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 5'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/main.cpp (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/condition/main.cpp (removed)
@@ -1,28 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdint.h>
-
-int32_t global = 0; // Watchpoint variable declaration.
-
-static void modify(int32_t &var) {
-    ++var;
-}
-
-int main(int argc, char** argv) {
-    int local = 0;
-    printf("&global=%p\n", &global);
-    printf("about to write to 'global'...\n"); // Set break point at this line.
-                                               // When stopped, watch 'global',
-                                               // for the condition "global == 5".
-    for (int i = 0; i < 10; ++i)
-        modify(global);
-
-    printf("global=%d\n", global);
-}

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_commands/main.c (removed)
@@ -1,24 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdint.h>
-
-int32_t global = 10; // Watchpoint variable declaration.
-
-int main(int argc, char** argv) {
-    int local = 0;
-    printf("&global=%p\n", &global);
-    printf("about to write to 'global'...\n"); // Set break point at this line.
-                                               // When stopped, watch 'global'.
-    global = 20;
-    local += argc;
-    ++local; // Set 2nd break point for disable_then_enable test case.
-    printf("local: %d\n", local);
-    printf("global=%d\n", global);
-}

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_events/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_events/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_events/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_events/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_events/TestWatchpointEvents.py (removed)
@@ -1,89 +0,0 @@
-"""Test that adding, deleting and modifying watchpoints sends the appropriate events."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestWatchpointEvents (TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers that we will step to in main:
-        self.main_source = "main.c"
-
-    @add_test_categories(['pyapi'])
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_with_python_api(self):
-        """Test that adding, deleting and modifying watchpoints sends the appropriate events."""
-        self.build()
-        
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        self.main_source_spec = lldb.SBFileSpec (self.main_source)
-
-        break_in_main = target.BreakpointCreateBySourceRegex ('// Put a breakpoint here.', self.main_source_spec)
-        self.assertTrue(break_in_main, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_main)
-
-        if len(threads) != 1:
-            self.fail ("Failed to stop at first breakpoint in main.")
-
-        thread = threads[0]
-        frame = thread.GetFrameAtIndex(0)
-        local_var = frame.FindVariable ("local_var")
-        self.assertTrue (local_var.IsValid())
-
-        self.listener = lldb.SBListener("com.lldb.testsuite_listener")
-        self.target_bcast = target.GetBroadcaster()
-        self.target_bcast.AddListener (self.listener, lldb.SBTarget.eBroadcastBitWatchpointChanged)
-        self.listener.StartListeningForEvents (self.target_bcast, lldb.SBTarget.eBroadcastBitWatchpointChanged)
-
-        error = lldb.SBError()
-        local_watch = local_var.Watch(True, True, True, error)
-        if not error.Success():
-            self.fail ("Failed to make watchpoint for local_var: %s"%(error.GetCString()))
-
-        self.GetWatchpointEvent (lldb.eWatchpointEventTypeAdded)
-        # Now change some of the features of this watchpoint and make sure we get events:
-        local_watch.SetEnabled(False)
-        self.GetWatchpointEvent (lldb.eWatchpointEventTypeDisabled)
-
-        local_watch.SetIgnoreCount(10)
-        self.GetWatchpointEvent (lldb.eWatchpointEventTypeIgnoreChanged)
-
-        local_watch.SetCondition ("1 == 2")
-        self.GetWatchpointEvent (lldb.eWatchpointEventTypeConditionChanged)
-
-    def GetWatchpointEvent (self, event_type):
-        # We added a watchpoint so we should get a watchpoint added event.
-        event = lldb.SBEvent()
-        success = self.listener.WaitForEvent (1, event)
-        self.assertTrue(success == True, "Successfully got watchpoint event")
-        self.assertTrue (lldb.SBWatchpoint.EventIsWatchpointEvent(event), "Event is a watchpoint event.")
-        found_type = lldb.SBWatchpoint.GetWatchpointEventTypeFromEvent (event)
-        self.assertTrue (found_type == event_type, "Event is not correct type, expected: %d, found: %d"%(event_type, found_type))
-        # There shouldn't be another event waiting around:
-        found_event = self.listener.PeekAtNextEventForBroadcasterWithType (self.target_bcast, lldb.SBTarget.eBroadcastBitBreakpointChanged, event)
-        if found_event:
-            print("Found an event I didn't expect: ", event)
-
-        self.assertTrue (not found_event, "Only one event per change.")

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_events/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_events/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_events/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_events/main.c (removed)
@@ -1,9 +0,0 @@
-#include <stdio.h>
-
-int 
-main (int argc, char **argv)
-{
-  int local_var = 10; 
-  printf ("local_var is: %d.\n", local_var++); // Put a breakpoint here.
-  return local_var;
-}

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValueOfVectorVariable.py (removed)
@@ -1,47 +0,0 @@
-"""
-Test displayed value of a vector variable while doing watchpoint operations
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestValueOfVectorVariableTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_value_of_vector_variable_using_watchpoint_set(self):
-        """Test verify displayed value of vector variable."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(dictionary=self.d)
-        self.value_of_vector_variable_with_watchpoint_set()
-    
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.c'
-        self.exe_name = 'a.out'
-        self.d = {'C_SOURCES': self.source, 'EXE': self.exe_name}
-
-    def value_of_vector_variable_with_watchpoint_set(self):
-        """Test verify displayed value of vector variable"""
-        exe = os.path.join(os.getcwd(), 'a.out')
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Set break to get a frame
-        self.runCmd("b main")
-            
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Value of a vector variable should be displayed correctly
-        self.expect("watchpoint set variable global_vector", WATCHPOINT_CREATED,
-            substrs = ['new value: (1, 2, 3, 4)'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/main.c (removed)
@@ -1,16 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-typedef char v4i8 __attribute__ ((vector_size(4)));
-v4i8 global_vector = {1, 2, 3, 4};
-
-int
-main ()
-{
-  return 0;
-}

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/Makefile (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-ENABLE_STD_THREADS := YES
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchLocationWithWatchSet.py (removed)
@@ -1,87 +0,0 @@
-"""
-Test lldb watchpoint that uses 'watchpoint set -w write -s size' to watch a pointed location with size.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchLocationUsingWatchpointSetTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # This is for verifying that watch location works.
-        self.violating_func = "do_bad_thing_with_location";
-        # Build dictionary to have unique executable names for each test method.
-
-    @expectedFailureAndroid(archs=['arm', 'aarch64']) # Watchpoints not supported
-    @expectedFailureWindows("llvm.org/pr24446") # WINDOWS XFAIL TRIAGE - Watchpoints not supported on Windows
-    def test_watchlocation_using_watchpoint_set(self):
-        """Test watching a location with 'watchpoint set expression -w write -s size' option."""
-        self.build()
-        self.setTearDownCleanup()
-
-        exe = os.path.join(os.getcwd(), 'a.out')
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Now let's set a write-type watchpoint pointed to by 'g_char_ptr' and
-        # with offset as 7.
-        # The main.cpp, by design, misbehaves by not following the agreed upon
-        # protocol of only accessing the allowable index range of [0, 6].
-        self.expect("watchpoint set expression -w write -s 1 -- g_char_ptr + 7", WATCHPOINT_CREATED,
-            substrs = ['Watchpoint created', 'size = 1', 'type = w'])
-        self.runCmd("expr unsigned val = g_char_ptr[7]; val")
-        self.expect(self.res.GetOutput().splitlines()[0], exe=False,
-            endstr = ' = 0')
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should be 0 initially.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 0'])
-
-        self.runCmd("process continue")
-
-        # We should be stopped again due to the watchpoint (write type), but
-        # only once.  The stop reason of the thread should be watchpoint.
-        self.expect("thread list", STOPPED_DUE_TO_WATCHPOINT,
-            substrs = ['stopped',
-                       'stop reason = watchpoint',
-                       self.violating_func])
-
-        # Switch to the thread stopped due to watchpoint and issue some commands.
-        self.switch_to_thread_with_stop_reason(lldb.eStopReasonWatchpoint)
-        self.runCmd("thread backtrace")
-        self.runCmd("expr unsigned val = g_char_ptr[7]; val")
-        self.expect(self.res.GetOutput().splitlines()[0], exe=False,
-            endstr = ' = 99')
-
-        # Use the '-v' option to do verbose listing of the watchpoint.
-        # The hit count should now be 1.
-        self.expect("watchpoint list -v",
-            substrs = ['hit_count = 1'])
-
-        self.runCmd("thread backtrace all")

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/TestWatchpointSetErrorCases.py (removed)
@@ -1,67 +0,0 @@
-"""
-Test error cases for the 'watchpoint set' command to make sure it errors out when necessary.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class WatchpointSetErrorTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Our simple source filename.
-        self.source = 'main.cpp'
-        # Find the line number to break inside main().
-        self.line = line_number(self.source, '// Set break point at this line.')
-        # Build dictionary to have unique executable names for each test method.
-
-    def test_error_cases_with_watchpoint_set(self):
-        """Test error cases with the 'watchpoint set' command."""
-        self.build()
-        self.setTearDownCleanup()
-
-        exe = os.path.join(os.getcwd(), 'a.out')
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Add a breakpoint to set a watchpoint when stopped on the breakpoint.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=1)
-
-        # Run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # We should be stopped again due to the breakpoint.
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Try some error conditions:
-
-        # 'watchpoint set' is now a multiword command.
-        self.expect("watchpoint set",
-            substrs = ['The following subcommands are supported:',
-                       'expression',
-                       'variable'])
-        self.runCmd("watchpoint set variable -w read_write", check=False)
-
-        # 'watchpoint set expression' with '-w' or '-s' specified now needs
-        # an option terminator and a raw expression after that.
-        self.expect("watchpoint set expression -w write --", error=True,
-            startstr = 'error: ')
-
-        # It's an error if the expression did not evaluate to an address.
-        self.expect("watchpoint set expression MyAggregateDataType", error=True,
-            startstr = 'error: expression did not evaluate to an address')
-
-        # Wrong size parameter is an error.
-        self.expect("watchpoint set variable -s -128", error=True,
-            substrs = ['invalid enumeration value'])

Removed: lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/main.cpp (original)
+++ lldb/trunk/test/functionalities/watchpoint/watchpoint_set_command/main.cpp (removed)
@@ -1,121 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <chrono>
-#include <condition_variable>
-#include <cstdio>
-#include <random>
-#include <thread>
-
-std::default_random_engine g_random_engine{std::random_device{}()};
-std::uniform_int_distribution<> g_distribution{0, 3000000};
-std::condition_variable g_condition_variable;
-std::mutex g_mutex;
-int g_count;
-
-char *g_char_ptr = nullptr;
-
-void
-barrier_wait()
-{
-    std::unique_lock<std::mutex> lock{g_mutex};
-    if (--g_count > 0)
-        g_condition_variable.wait(lock);
-    else
-        g_condition_variable.notify_all();
-}
-
-void
-do_bad_thing_with_location(unsigned index, char *char_ptr, char new_val)
-{
-    unsigned what = new_val;
-    printf("new value written to array(%p) and index(%u) = %u\n", char_ptr, index, what);
-    char_ptr[index] = new_val;
-}
-
-uint32_t
-access_pool (bool flag = false)
-{
-    static std::mutex g_access_mutex;
-    static unsigned idx = 0; // Well-behaving thread only writes into indexs from 0..6.
-    if (!flag)
-        g_access_mutex.lock();
-
-    // idx valid range is [0, 6].
-    if (idx > 6)
-        idx = 0;
-
-    if (flag)
-    {
-        // Write into a forbidden area.
-        do_bad_thing_with_location(7, g_char_ptr, 99);
-    }
-
-    unsigned index = idx++;
-
-    if (!flag)
-        g_access_mutex.unlock();
-    return g_char_ptr[index];
-}
-
-void
-thread_func (uint32_t thread_index)
-{
-    printf ("%s (thread index = %u) startng...\n", __FUNCTION__, thread_index);
-
-    barrier_wait();
-
-    uint32_t count = 0;
-    uint32_t val;
-    while (count++ < 15)
-    {
-        // random micro second sleep from zero to 3 seconds
-        int usec = g_distribution(g_random_engine);
-        printf ("%s (thread = %u) doing a usleep (%d)...\n", __FUNCTION__, thread_index, usec);
-        std::this_thread::sleep_for(std::chrono::microseconds{usec});
-
-        if (count < 7)
-            val = access_pool ();
-        else
-            val = access_pool (true);
-
-        printf ("%s (thread = %u) after usleep access_pool returns %d (count=%d)...\n", __FUNCTION__, thread_index, val, count);
-    }
-    printf ("%s (thread index = %u) exiting...\n", __FUNCTION__, thread_index);
-}
-
-
-int main (int argc, char const *argv[])
-{
-    g_count = 4;
-    std::thread threads[3];
-
-    g_char_ptr = new char[10]{};
-
-    // Create 3 threads
-    for (auto &thread : threads)
-        thread = std::thread{thread_func, std::distance(threads, &thread)};
-
-    struct {
-        int a;
-        int b;
-        int c;
-    } MyAggregateDataType;
-
-    printf ("Before turning all three threads loose...\n"); // Set break point at this line.
-    barrier_wait();
-
-    // Join all of our threads
-    for (auto &thread : threads)
-        thread.join();
-
-    delete[] g_char_ptr;
-
-    return 0;
-}

Removed: lldb/trunk/test/help/TestHelp.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/help/TestHelp.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/help/TestHelp.py (original)
+++ lldb/trunk/test/help/TestHelp.py (removed)
@@ -1,165 +0,0 @@
-"""
-Test some lldb help commands.
-
-See also CommandInterpreter::OutputFormattedHelpText().
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-
-class HelpCommandTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @no_debug_info_test
-    def test_simplehelp(self):
-        """A simple test of 'help' command and its output."""
-        self.expect("help",
-            startstr = 'Debugger commands:')
-
-        self.expect("help -a", matching=False,
-                    substrs = ['next'])
-        
-        self.expect("help", matching=True,
-                    substrs = ['next'])
-    
-    @no_debug_info_test
-    def test_help_on_help(self):
-        """Testing the help on the help facility."""
-        self.expect("help help", matching=True,
-                    substrs = ['--hide-aliases',
-                               '--hide-user-commands'])
-
-    @no_debug_info_test
-    def version_number_string(self):
-        """Helper function to find the version number string of lldb."""
-        plist = os.path.join(os.environ["LLDB_SRC"], "resources", "LLDB-Info.plist")
-        try:
-            CFBundleVersionSegFound = False
-            with open(plist, 'r') as f:
-                for line in f:
-                    if CFBundleVersionSegFound:
-                        version_line = line.strip()
-                        import re
-                        m = re.match("<string>(.*)</string>", version_line)
-                        if m:
-                            version = m.group(1)
-                            return version
-                        else:
-                            # Unsuccessful, let's juts break out of the for loop.
-                            break
-
-                    if line.find("<key>CFBundleVersion</key>") != -1:
-                        # Found our match.  The next line contains our version
-                        # string, for example:
-                        # 
-                        #     <string>38</string>
-                        CFBundleVersionSegFound = True
-
-        except:
-            # Just fallthrough...
-            import traceback
-            traceback.print_exc()
-            pass
-
-        # Use None to signify that we are not able to grok the version number.
-        return None
-
-    @no_debug_info_test
-    def test_help_arch(self):
-        """Test 'help arch' which should list of supported architectures."""
-        self.expect("help arch",
-            substrs = ['arm', 'x86_64', 'i386'])
-
-    @no_debug_info_test
-    def test_help_version(self):
-        """Test 'help version' and 'version' commands."""
-        self.expect("help version",
-            substrs = ['Show version of LLDB debugger.'])
-        version_str = self.version_number_string()
-        import re
-        match = re.match('[0-9]+', version_str)
-        if sys.platform.startswith("darwin"):
-            search_regexp = ['lldb-' + (version_str if match else '[0-9]+')]
-        else:
-            search_regexp = ['lldb version (\d|\.)+.*$']
-
-        self.expect("version",
-            patterns = search_regexp)
-
-    @no_debug_info_test
-    def test_help_should_not_crash_lldb(self):
-        """Command 'help disasm' should not crash lldb."""
-        self.runCmd("help disasm", check=False)
-        self.runCmd("help unsigned-integer")
-
-    @no_debug_info_test
-    def test_help_should_not_hang_emacsshell(self):
-        """Command 'settings set term-width 0' should not hang the help command."""
-        self.expect("settings set term-width 0",
-                    COMMAND_FAILED_AS_EXPECTED, error=True,
-            substrs = ['error: 0 is out of range, valid values must be between'])
-        # self.runCmd("settings set term-width 0")
-        self.expect("help",
-            startstr = 'Debugger commands:')
-
-    @no_debug_info_test
-    def test_help_breakpoint_set(self):
-        """Test that 'help breakpoint set' does not print out redundant lines of:
-        'breakpoint set [-s <shlib-name>] ...'."""
-        self.expect("help breakpoint set", matching=False,
-            substrs = ['breakpoint set [-s <shlib-name>]'])
-
-    @no_debug_info_test
-    def test_help_image_dump_symtab_should_not_crash(self):
-        """Command 'help image dump symtab' should not crash lldb."""
-        # 'image' is an alias for 'target modules'.
-        self.expect("help image dump symtab",
-            substrs = ['dump symtab',
-                       'sort-order'])
-
-    @no_debug_info_test
-    def test_help_image_du_sym_is_ambiguous(self):
-        """Command 'help image du sym' is ambiguous and spits out the list of candidates."""
-        self.expect("help image du sym",
-                    COMMAND_FAILED_AS_EXPECTED, error=True,
-            substrs = ['error: ambiguous command image du sym',
-                       'symfile',
-                       'symtab'])
-
-    @no_debug_info_test
-    def test_help_image_du_line_should_work(self):
-        """Command 'help image du line' is not ambiguous and should work."""
-        # 'image' is an alias for 'target modules'.
-        self.expect("help image du line",
-            substrs = ['Dump the line table for one or more compilation units'])
-
-    @no_debug_info_test
-    def test_help_target_variable_syntax(self):
-        """Command 'help target variable' should display <variable-name> ..."""
-        self.expect("help target variable",
-            substrs = ['<variable-name> [<variable-name> [...]]'])
-
-    @no_debug_info_test
-    def test_help_watchpoint_and_its_args(self):
-        """Command 'help watchpoint', 'help watchpt-id', and 'help watchpt-id-list' should work."""
-        self.expect("help watchpoint",
-            substrs = ['delete', 'disable', 'enable', 'list'])
-        self.expect("help watchpt-id",
-            substrs = ['<watchpt-id>'])
-        self.expect("help watchpt-id-list",
-            substrs = ['<watchpt-id-list>'])
-
-    @no_debug_info_test
-    def test_help_watchpoint_set(self):
-        """Test that 'help watchpoint set' prints out 'expression' and 'variable'
-        as the possible subcommands."""
-        self.expect("help watchpoint set",
-            substrs = ['The following subcommands are supported:'],
-            patterns = ['expression +--',
-                        'variable +--'])

Removed: lldb/trunk/test/lang/c/anonymous/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/anonymous/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/anonymous/Makefile (original)
+++ lldb/trunk/test/lang/c/anonymous/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/anonymous/TestAnonymous.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/anonymous/TestAnonymous.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/anonymous/TestAnonymous.py (original)
+++ lldb/trunk/test/lang/c/anonymous/TestAnonymous.py (removed)
@@ -1,147 +0,0 @@
-"""Test that anonymous structs/unions are transparent to member access"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class AnonymousTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfIcc # llvm.org/pr15036: LLDB generates an incorrect AST layout for an anonymous struct when DWARF is generated by ICC
-    def test_expr_nest(self):
-        self.build()
-        self.common_setup(self.line0)
-
-        # These should display correctly.
-        self.expect("expression n->foo.d", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 4"])
-            
-        self.expect("expression n->b", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 2"])
-
-    def test_expr_child(self):
-        self.build()
-        self.common_setup(self.line1)
-
-        # These should display correctly.
-        self.expect("expression c->foo.d", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 4"])
-            
-        self.expect("expression c->grandchild.b", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 2"])
-
-    @skipIfIcc # llvm.org/pr15036: This particular regression was introduced by r181498
-    def test_expr_grandchild(self):
-        self.build()
-        self.common_setup(self.line2)
-
-        # These should display correctly.
-        self.expect("expression g.child.foo.d", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 4"])
-            
-        self.expect("expression g.child.b", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 2"])
-
-    def test_expr_parent(self):
-        self.build()
-        if "clang" in self.getCompiler() and "3.4" in self.getCompilerVersion():
-            self.skipTest("llvm.org/pr16214 -- clang emits partial DWARF for structures referenced via typedef")
-        self.common_setup(self.line2)
-
-        # These should display correctly.
-        self.expect("expression pz", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(type_z *) $", " = 0x0000"])
-
-        self.expect("expression z.y", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(type_y) $", "dummy = 2"])
-
-    @expectedFailureWindows('llvm.org/pr21550')
-    def test_expr_null(self):
-        self.build()
-        self.common_setup(self.line2)
-
-        # This should fail because pz is 0, but it succeeds on OS/X.
-        # This fails on Linux with an upstream error "Couldn't dematerialize struct", as does "p *n" with "int *n = 0".
-        # Note that this can also trigger llvm.org/pr15036 when run interactively at the lldb command prompt.
-        self.expect("expression *(type_z *)pz", error = True)
-
-    def test_child_by_name(self):
-        self.build()
-        
-        # Set debugger into synchronous mode
-        self.dbg.SetAsync(False)
-
-        # Create a target
-        exe = os.path.join (os.getcwd(), "a.out")
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        break_in_main = target.BreakpointCreateBySourceRegex ('// Set breakpoint 2 here.', lldb.SBFileSpec(self.source))
-        self.assertTrue(break_in_main, VALID_BREAKPOINT)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue (process, PROCESS_IS_VALID)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_main)
-        if len(threads) != 1:
-            self.fail ("Failed to stop at breakpoint in main.")
-
-        thread = threads[0]
-        frame = thread.frames[0]
-
-        if not frame.IsValid():
-            self.fail ("Failed to get frame 0.")
-
-        var_n = frame.FindVariable("n")
-        if not var_n.IsValid():
-            self.fail ("Failed to get the variable 'n'")
-
-        elem_a = var_n.GetChildMemberWithName("a")
-        if not elem_a.IsValid():
-            self.fail ("Failed to get the element a in n")
-
-        error = lldb.SBError()
-        value = elem_a.GetValueAsSigned(error, 1000)
-        if not error.Success() or value != 0:
-            self.fail ("failed to get the correct value for element a in n")
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break in main.c.
-        self.source = 'main.c'
-        self.line0 = line_number(self.source, '// Set breakpoint 0 here.')
-        self.line1 = line_number(self.source, '// Set breakpoint 1 here.')
-        self.line2 = line_number(self.source, '// Set breakpoint 2 here.')
-
-    def common_setup(self, line):
-        
-        # Set debugger into synchronous mode
-        self.dbg.SetAsync(False)
-
-        # Create a target
-        exe = os.path.join(os.getcwd(), "a.out")
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set breakpoints inside and outside methods that take pointers to the containing struct.
-        lldbutil.run_break_set_by_file_and_line (self, self.source, line, num_expected_locations=1, loc_exact=True)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])

Removed: lldb/trunk/test/lang/c/anonymous/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/anonymous/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/anonymous/main.c (original)
+++ lldb/trunk/test/lang/c/anonymous/main.c (removed)
@@ -1,82 +0,0 @@
-#include <stdio.h>
-
-struct anonymous_nest {
-  struct {
-    struct {
-      int a;
-      int b;
-    }; // anonymous
-    struct {
-      int c;
-      int d;
-    } foo;
-  }; // anonymous
-};
-
-struct anonymous_child {
-  struct {
-    struct {
-      int a;
-      int b;
-    } grandchild;
-    struct {
-      int c;
-      int d;
-    } foo;
-  }; // anonymous
-};
-
-struct anonymous_grandchild {
-  struct {
-    struct {
-      int a;
-      int b;
-    }; // anonymous
-    struct {
-      int c;
-      int d;
-    } foo;
-  } child;
-};
-
-int processor_nest (struct anonymous_nest *n)
-{
-  return n->foo.d + n->b; // Set breakpoint 0 here.
-}
-
-int processor_child (struct anonymous_child *c)
-{
-  return c->foo.d + c->grandchild.b; // Set breakpoint 1 here.
-}
-
-int processor_grandchild (struct anonymous_grandchild *g)
-{
-  return g->child.foo.d + g->child.b;
-}
-
-
-
-typedef struct {
-    int dummy;
-} type_y;
-
-typedef struct {
-    type_y y;
-} type_z;
-
-
-
-int main()
-{
-  struct anonymous_nest n = { 0, 2, 0, 4 };
-  struct anonymous_child c = { 0, 2, 0, 4 };
-  struct anonymous_grandchild g = { 0, 2, 0, 4 };
-  type_z *pz = 0;
-  type_z z = {{2}};
-
-  printf("%d\n", processor_nest(&n));
-  printf("%d\n", processor_child(&c));
-  printf("%d\n", processor_grandchild(&g)); // Set breakpoint 2 here.
-
-  return 0;
-}

Removed: lldb/trunk/test/lang/c/array_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/array_types/Makefile (original)
+++ lldb/trunk/test/lang/c/array_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/array_types/TestArrayTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/TestArrayTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/array_types/TestArrayTypes.py (original)
+++ lldb/trunk/test/lang/c/array_types/TestArrayTypes.py (removed)
@@ -1,198 +0,0 @@
-"""Test breakpoint by file/line number; and list variables with array types."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ArrayTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', '// Set break point at this line.')
-
-    def test_and_run_command(self):
-        """Test 'frame variable var_name' on some variables with array types."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=False)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The test suite sometimes shows that the process has exited without stopping.
-        #
-        # CC=clang ./dotest.py -v -t array_types
-        # ...
-        # Process 76604 exited with status = 0 (0x00000000)
-        self.runCmd("process status")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = ['resolved, hit count = 1'])
-
-        # Issue 'variable list' command on several array-type variables.
-
-        self.expect("frame variable --show-types strings", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(char *[4])',
-            substrs = ['(char *) [0]',
-                       '(char *) [1]',
-                       '(char *) [2]',
-                       '(char *) [3]',
-                       'Hello',
-                       'Hola',
-                       'Bonjour',
-                       'Guten Tag'])
-
-        self.expect("frame variable --show-types --raw -- char_16", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(char) [0]',
-                       '(char) [15]'])
-
-        self.expect("frame variable --show-types ushort_matrix", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(unsigned short [2][3])')
-
-        self.expect("frame variable --show-types long_6", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(long [6])')
-
-    @add_test_categories(['pyapi'])
-    def test_and_python_api(self):
-        """Use Python APIs to inspect variables with array types."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation("main.c", self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Sanity check the print representation of breakpoint.
-        bp = str(breakpoint)
-        self.expect(bp, msg="Breakpoint looks good", exe=False,
-            substrs = ["file = 'main.c'",
-                       "line = %d" % self.line,
-                       "locations = 1"])
-        self.expect(bp, msg="Breakpoint is not resolved as yet", exe=False, matching=False,
-            substrs = ["resolved = 1"])
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # Sanity check the print representation of process.
-        proc = str(process)
-        self.expect(proc, msg="Process looks good", exe=False,
-            substrs = ["state = stopped",
-                       "executable = a.out"])
-
-        # The stop reason of the thread should be breakpoint.
-        thread = process.GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        # Sanity check the print representation of thread.
-        thr = str(thread)
-        # TODO(zturner): Whether the TID is printed in hex or decimal should be controlled by a setting,
-        # and this test should read the value of the setting.  This check is currently hardcoded to
-        # match the check in Core/FormatEntity.cpp in the function FormatEntity::Format() for
-        # the Entry::Type::ThreadID case of the switch statement.
-        if self.getPlatform() == "linux" or self.getPlatform() == "freebsd":
-            tidstr = "tid = %u" % thread.GetThreadID()
-        else:
-            tidstr = "tid = 0x%4.4x" % thread.GetThreadID()
-        self.expect(thr, "Thread looks good with stop reason = breakpoint", exe=False,
-            substrs = [tidstr])
-
-        # The breakpoint should have a hit count of 1.
-        self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)
-
-        # The breakpoint should be resolved by now.
-        bp = str(breakpoint)
-        self.expect(bp, "Breakpoint looks good and is resolved", exe=False,
-            substrs = ["file = 'main.c'",
-                       "line = %d" % self.line,
-                       "locations = 1"])
-
-        # Sanity check the print representation of frame.
-        frame = thread.GetFrameAtIndex(0)
-        frm = str(frame)
-        self.expect(frm,
-                    "Frame looks good with correct index %d" % frame.GetFrameID(),
-                    exe=False,
-            substrs = ["#%d" % frame.GetFrameID()])
-
-        # Lookup the "strings" string array variable and sanity check its print
-        # representation.
-        variable = frame.FindVariable("strings")
-        var = str(variable)
-        self.expect(var, "Variable for 'strings' looks good with correct name", exe=False,
-            substrs = ["%s" % variable.GetName()])
-        self.DebugSBValue(variable)
-        self.assertTrue(variable.GetNumChildren() == 4,
-                        "Variable 'strings' should have 4 children")
-
-        child3 = variable.GetChildAtIndex(3)
-        self.DebugSBValue(child3)
-        self.assertTrue(child3.GetSummary() == '"Guten Tag"',
-                        'strings[3] == "Guten Tag"')
-
-        # Lookup the "char_16" char array variable.
-        variable = frame.FindVariable("char_16")
-        self.DebugSBValue(variable)
-        self.assertTrue(variable.GetNumChildren() == 16,
-                        "Variable 'char_16' should have 16 children")
-
-        # Lookup the "ushort_matrix" ushort[] array variable.
-        # Notice the pattern of int(child0_2.GetValue(), 0).  We pass a
-        # base of 0 so that the proper radix is determined based on the contents
-        # of the string.  Same applies to long().
-        variable = frame.FindVariable("ushort_matrix")
-        self.DebugSBValue(variable)
-        self.assertTrue(variable.GetNumChildren() == 2,
-                        "Variable 'ushort_matrix' should have 2 children")
-        child0 = variable.GetChildAtIndex(0)
-        self.DebugSBValue(child0)
-        self.assertTrue(child0.GetNumChildren() == 3,
-                        "Variable 'ushort_matrix[0]' should have 3 children")
-        child0_2 = child0.GetChildAtIndex(2)
-        self.DebugSBValue(child0_2)
-        self.assertTrue(int(child0_2.GetValue(), 0) == 3,
-                        "ushort_matrix[0][2] == 3")
-
-        # Lookup the "long_6" char array variable.
-        variable = frame.FindVariable("long_6")
-        self.DebugSBValue(variable)
-        self.assertTrue(variable.GetNumChildren() == 6,
-                        "Variable 'long_6' should have 6 children")
-        child5 = variable.GetChildAtIndex(5)
-        self.DebugSBValue(child5)
-        self.assertTrue(int(child5.GetValue(), 0) == 6,
-                        "long_6[5] == 6")
-
-        # Last, check that "long_6" has a value type of eValueTypeVariableLocal
-        # and "argc" has eValueTypeVariableArgument.
-        from lldbutil import value_type_to_str
-        self.assertTrue(variable.GetValueType() == lldb.eValueTypeVariableLocal,
-                        "Variable 'long_6' should have '%s' value type." %
-                        value_type_to_str(lldb.eValueTypeVariableLocal))
-        argc = frame.FindVariable("argc")
-        self.DebugSBValue(argc)
-        self.assertTrue(argc.GetValueType() == lldb.eValueTypeVariableArgument,
-                        "Variable 'argc' should have '%s' value type." %
-                        value_type_to_str(lldb.eValueTypeVariableArgument))

Removed: lldb/trunk/test/lang/c/array_types/cmds.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/cmds.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/array_types/cmds.txt (original)
+++ lldb/trunk/test/lang/c/array_types/cmds.txt (removed)
@@ -1,3 +0,0 @@
-break main.c:42
-continue
-var

Removed: lldb/trunk/test/lang/c/array_types/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/array_types/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/array_types/main.c (original)
+++ lldb/trunk/test/lang/c/array_types/main.c (removed)
@@ -1,51 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-int main (int argc, char const *argv[])
-{
-    struct point_tag {
-        int x;
-        int y;
-    };
-
-    struct rect_tag {
-        struct point_tag bottom_left;
-        struct point_tag top_right;
-    };
-    char char_16[16] = "Hello World\n";
-    char *strings[] = { "Hello", "Hola", "Bonjour", "Guten Tag" };
-    char char_matrix[3][3] = {{'a', 'b', 'c' }, {'d', 'e', 'f' }, {'g', 'h', 'i' }};
-    char char_matrix_matrix[3][2][3] =
-    {   {{'a', 'b', 'c' }, {'d', 'e', 'f' }},
-        {{'A', 'B', 'C' }, {'D', 'E', 'F' }},
-        {{'1', '2', '3' }, {'4', '5', '6' }}};
-    short short_4[4] = { 1,2,3,4 };
-    short short_matrix[1][2] = { {1,2} };
-    unsigned short ushort_4[4] = { 1,2,3,4 };
-    unsigned short ushort_matrix[2][3] = {
-        { 1, 2, 3},
-        {11,22,33}
-    };
-    int int_2[2] = { 1, 2 };
-    unsigned int uint_2[2] = { 1, 2 };
-    long long_6[6] = { 1, 2, 3, 4, 5, 6 };
-    unsigned long ulong_6[6] = { 1, 2, 3, 4, 5, 6 };
-    struct point_tag points_2[2] = {
-        {1,2},
-        {3,4}
-    };
-    struct point_tag points_2_4_matrix[2][4] = { // Set break point at this line. 
-        {{ 1, 2}, { 3, 4}, { 5, 6}, { 7, 8}},
-        {{11,22}, {33,44}, {55,66}, {77,88}}
-    };
-    struct rect_tag rects_2[2] = {
-        {{1,2}, {3,4}},
-        {{5,6}, {7,8}}
-    };
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/bitfields/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/bitfields/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/bitfields/Makefile (original)
+++ lldb/trunk/test/lang/c/bitfields/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/bitfields/TestBitfields.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/bitfields/TestBitfields.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/bitfields/TestBitfields.py (original)
+++ lldb/trunk/test/lang/c/bitfields/TestBitfields.py (removed)
@@ -1,162 +0,0 @@
-"""Show bitfields and check that they display correctly."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class BitfieldsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', '// Set break point at this line.')
-
-    @skipIfWindows # BitFields exhibit crashes in record layout on Windows (http://llvm.org/pr21800)
-    def test_and_run_command(self):
-        """Test 'frame variable ...' on a variable with bitfields."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the main.
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # This should display correctly.
-        self.expect("frame variable --show-types bits", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(uint32_t:1) b1 = 1',
-                       '(uint32_t:2) b2 = 3',
-                       '(uint32_t:3) b3 = 7',
-                       '(uint32_t) b4 = 15',
-                       '(uint32_t:5) b5 = 31',
-                       '(uint32_t:6) b6 = 63',
-                       '(uint32_t:7) b7 = 127',
-                       '(uint32_t:4) four = 15'])
-
-        # And so should this.
-        # rdar://problem/8348251
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(uint32_t:1) b1 = 1',
-                       '(uint32_t:2) b2 = 3',
-                       '(uint32_t:3) b3 = 7',
-                       '(uint32_t) b4 = 15',
-                       '(uint32_t:5) b5 = 31',
-                       '(uint32_t:6) b6 = 63',
-                       '(uint32_t:7) b7 = 127',
-                       '(uint32_t:4) four = 15'])
-
-        self.expect("expr (bits.b1)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '1'])
-        self.expect("expr (bits.b2)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '3'])
-        self.expect("expr (bits.b3)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '7'])
-        self.expect("expr (bits.b4)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '15'])
-        self.expect("expr (bits.b5)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '31'])
-        self.expect("expr (bits.b6)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '63'])
-        self.expect("expr (bits.b7)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '127'])
-        self.expect("expr (bits.four)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '15'])
-
-        self.expect("frame variable --show-types more_bits", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(uint32_t:3) a = 3',
-                       '(uint8_t:1) b = \'\\0\'',
-                       '(uint8_t:1) c = \'\\x01\'',
-                       '(uint8_t:1) d = \'\\0\''])
-
-        self.expect("expr (more_bits.a)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint32_t', '3'])
-        self.expect("expr (more_bits.b)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint8_t', '\\0'])
-        self.expect("expr (more_bits.c)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint8_t', '\\x01'])
-        self.expect("expr (more_bits.d)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['uint8_t', '\\0'])
-
-    @add_test_categories(['pyapi'])
-    @skipIfWindows # BitFields exhibit crashes in record layout on Windows (http://llvm.org/pr21800)
-    def test_and_python_api(self):
-        """Use Python APIs to inspect a bitfields variable."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation("main.c", self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread = target.GetProcess().GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        # The breakpoint should have a hit count of 1.
-        self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)
-
-        # Lookup the "bits" variable which contains 8 bitfields.
-        frame = thread.GetFrameAtIndex(0)
-        bits = frame.FindVariable("bits")
-        self.DebugSBValue(bits)
-        self.assertTrue(bits.GetTypeName() == 'Bits', "bits.GetTypeName() == 'Bits'");
-        self.assertTrue(bits.GetNumChildren() == 10, "bits.GetNumChildren() == 10");
-        test_compiler = self.getCompiler()
-        self.assertTrue(bits.GetByteSize() == 32, "bits.GetByteSize() == 32");
-
-        # Notice the pattern of int(b1.GetValue(), 0).  We pass a base of 0
-        # so that the proper radix is determined based on the contents of the
-        # string.
-        b1 = bits.GetChildMemberWithName("b1")
-        self.DebugSBValue(b1)
-        self.assertTrue(b1.GetName() == "b1" and
-                        b1.GetTypeName() == "uint32_t:1" and
-                        b1.IsInScope() and
-                        int(b1.GetValue(), 0) == 1,
-                        'bits.b1 has type uint32_t:1, is in scope, and == 1')
-
-        b7 = bits.GetChildMemberWithName("b7")
-        self.DebugSBValue(b7)
-        self.assertTrue(b7.GetName() == "b7" and
-                        b7.GetTypeName() == "uint32_t:7" and
-                        b7.IsInScope() and
-                        int(b7.GetValue(), 0) == 127,
-                        'bits.b7 has type uint32_t:7, is in scope, and == 127')
-
-        four = bits.GetChildMemberWithName("four")
-        self.DebugSBValue(four)
-        self.assertTrue(four.GetName() == "four" and
-                        four.GetTypeName() == "uint32_t:4" and
-                        four.IsInScope() and
-                        int(four.GetValue(), 0) == 15,
-                        'bits.four has type uint32_t:4, is in scope, and == 15')
-
-        # Now kill the process, and we are done.
-        rc = target.GetProcess().Kill()
-        self.assertTrue(rc.Success())

Removed: lldb/trunk/test/lang/c/bitfields/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/bitfields/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/bitfields/main.c (original)
+++ lldb/trunk/test/lang/c/bitfields/main.c (removed)
@@ -1,67 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdint.h>
-#include <stdio.h>
-int main (int argc, char const *argv[])
-{
-    struct Bits
-    {
-        uint32_t    : 1, // Unnamed bitfield
-                    b1 : 1,
-                    b2 : 2,
-                    : 2, // Unnamed bitfield
-                    b3 : 3,
-                    : 2, // Unnamed bitfield (this will get removed)
-                    b4 __attribute__ ((aligned(16))),
-                    b5 : 5,
-                    b6 : 6,
-                    b7 : 7,
-                    four : 4;
-    };
-
-    printf("%lu", sizeof(struct Bits));
-
-    struct Bits bits;
-    int i;
-    for (i=0; i<(1<<1); i++)
-        bits.b1 = i;        //// break $source:$line
-    for (i=0; i<(1<<2); i++)
-        bits.b2 = i;        //// break $source:$line
-    for (i=0; i<(1<<3); i++)
-        bits.b3 = i;        //// break $source:$line
-    for (i=0; i<(1<<4); i++)
-        bits.b4 = i;        //// break $source:$line
-    for (i=0; i<(1<<5); i++)
-        bits.b5 = i;        //// break $source:$line
-    for (i=0; i<(1<<6); i++)
-        bits.b6 = i;        //// break $source:$line
-    for (i=0; i<(1<<7); i++)
-        bits.b7 = i;        //// break $source:$line
-    for (i=0; i<(1<<4); i++)
-        bits.four = i;      //// break $source:$line
-
-    struct MoreBits
-    {
-        uint32_t    a : 3;
-        uint8_t       : 1;
-        uint8_t     b : 1;
-        uint8_t     c : 1;
-        uint8_t     d : 1;
-    };
-
-    struct MoreBits more_bits;
-
-    more_bits.a = 3;
-    more_bits.b = 0;
-    more_bits.c = 1;
-    more_bits.d = 0;
-
-    return 0;               //// Set break point at this line.
-
-}

Removed: lldb/trunk/test/lang/c/blocks/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/blocks/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/blocks/Makefile (original)
+++ lldb/trunk/test/lang/c/blocks/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-CFLAGS_EXTRAS += -fblocks
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/blocks/TestBlocks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/blocks/TestBlocks.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/blocks/TestBlocks.py (original)
+++ lldb/trunk/test/lang/c/blocks/TestBlocks.py (removed)
@@ -1,61 +0,0 @@
-"""Test that lldb can invoke blocks and access variables inside them"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class BlocksTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    lines = []
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break at.
-        self.lines.append(line_number('main.c', '// Set breakpoint 0 here.'))
-        self.lines.append(line_number('main.c', '// Set breakpoint 1 here.'))
-    
-    @unittest2.expectedFailure("rdar://problem/10413887 - Call blocks in expressions")
-    def test_expr(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        self.is_started = False
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        for line in self.lines:
-            lldbutil.run_break_set_by_file_and_line (self, "main.c", line, num_expected_locations=1, loc_exact=True)
-
-        self.wait_for_breakpoint()
-
-        self.expect("expression a + b", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 7"])
-
-        self.expect("expression c", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 1"])
-
-        self.wait_for_breakpoint()
-
-        # This should display correctly.
-        self.expect("expression (int)neg (-12)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 12"])
-    
-    def wait_for_breakpoint(self):
-        if self.is_started == False:
-            self.is_started = True
-            self.runCmd("process launch", RUN_SUCCEEDED)
-        else:
-            self.runCmd("process continue", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])

Removed: lldb/trunk/test/lang/c/blocks/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/blocks/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/blocks/main.c (original)
+++ lldb/trunk/test/lang/c/blocks/main.c (removed)
@@ -1,21 +0,0 @@
-#include <stdio.h>
-
-int main()
-{
-    int c = 1;
-
-    int (^add)(int, int) = ^int(int a, int b)
-    {
-        return a + b + c; // Set breakpoint 0 here.
-    };
-
-    int (^neg)(int) = ^int(int a)
-    {
-        return -a;
-    };
-
-    printf("%d\n", add(3, 4));
-    printf("%d\n", neg(-5)); // Set breakpoint 1 here.
-
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/const_variables/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/const_variables/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/const_variables/Makefile (original)
+++ lldb/trunk/test/lang/c/const_variables/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c functions.c
-
-CFLAGS_EXTRAS += -O3
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/const_variables/TestConstVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/const_variables/TestConstVariables.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/const_variables/TestConstVariables.py (original)
+++ lldb/trunk/test/lang/c/const_variables/TestConstVariables.py (removed)
@@ -1,62 +0,0 @@
-"""Check that compiler-generated constant values work correctly"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ConstVariableTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureAll(
-        oslist=["freebsd", "linux"],
-        compiler="clang", compiler_version=["<", "3.5"])
-    @expectedFailureAll(
-        oslist=["freebsd", "linux"],
-        compiler="clang", compiler_version=["=", "3.7"])
-    @expectedFailureAll(
-        oslist=["freebsd", "linux"],
-        compiler="clang", compiler_version=["=", "3.8"])
-    @expectedFailureAll(oslist=["freebsd", "linux"], compiler="icc")
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    @expectedFailureWindows("llvm.org/pr24490: We shouldn't be using platform-specific names like `getpid` in tests")
-    def test_and_run_command(self):
-        """Test interpreted and JITted expressions on constant values."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the main.
-        lldbutil.run_break_set_by_symbol (self, "main", num_expected_locations=1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.runCmd("next")
-
-        # Try frame variable.
-        self.expect("frame variable index", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int32_t) index = 512'])
-
-        # Try an interpreted expression.
-        self.expect("expr (index + 512)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $0 = 1024'])
-
-        # Try a JITted expression.
-        self.expect("expr (int)getpid(); (index - 256)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $1 = 256'])
-
-        self.runCmd("kill")

Removed: lldb/trunk/test/lang/c/const_variables/functions.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/const_variables/functions.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/const_variables/functions.c (original)
+++ lldb/trunk/test/lang/c/const_variables/functions.c (removed)
@@ -1,18 +0,0 @@
-#include <stdio.h>
-
-void foo()
-{
-  printf("foo()\n");
-}
-
-int bar()
-{
-  int ret = 3;
-  printf("bar()->%d\n", ret);
-  return ret;
-}
-
-void baaz(int i)
-{
-  printf("baaz(%d)\n", i);
-}

Removed: lldb/trunk/test/lang/c/const_variables/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/const_variables/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/const_variables/main.c (original)
+++ lldb/trunk/test/lang/c/const_variables/main.c (removed)
@@ -1,19 +0,0 @@
-#include <stdint.h>
-
-extern int foo();
-extern int bar();
-extern int baaz(int i);
-
-int main()
-{
-  int32_t index;
-
-  foo();
-
-  index = 512;
-
-  if (bar())
-    index = 256;
-
-  baaz(index);
-}

Removed: lldb/trunk/test/lang/c/enum_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/enum_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/enum_types/Makefile (original)
+++ lldb/trunk/test/lang/c/enum_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py (original)
+++ lldb/trunk/test/lang/c/enum_types/TestEnumTypes.py (removed)
@@ -1,71 +0,0 @@
-"""Look up enum type information and check for correct display."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class EnumTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', '// Set break point at this line.')
-
-    def test(self):
-        """Test 'image lookup -t days' and check for correct display and enum value printing."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the main.
-        bkpt_id = lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Look up information about the 'days' enum type.
-        # Check for correct display.
-        self.expect("image lookup -t days", DATA_TYPES_DISPLAYED_CORRECTLY,
-            substrs = ['enum days {',
-                       'Monday',
-                       'Tuesday',
-                       'Wednesday',
-                       'Thursday',
-                       'Friday',
-                       'Saturday',
-                       'Sunday',
-                       'kNumDays',
-                       '}'])
-
-        enum_values = [ '-4', 
-                        'Monday', 
-                        'Tuesday', 
-                        'Wednesday', 
-                        'Thursday',
-                        'Friday',
-                        'Saturday',
-                        'Sunday',
-                        'kNumDays',
-                        '5'];
-
-        bkpt = self.target().FindBreakpointByID(bkpt_id)
-        for enum_value in enum_values:
-            self.expect("frame variable day", 'check for valid enumeration value',
-                substrs = [enum_value])
-            lldbutil.continue_to_breakpoint (self.process(), bkpt)

Removed: lldb/trunk/test/lang/c/enum_types/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/enum_types/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/enum_types/main.c (original)
+++ lldb/trunk/test/lang/c/enum_types/main.c (removed)
@@ -1,29 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int main (int argc, char const *argv[])
-{
-    enum days {
-        Monday = -3,
-        Tuesday,
-        Wednesday,
-        Thursday,
-        Friday,
-        Saturday,
-        Sunday,
-        kNumDays
-    };
-    enum days day;
-    for (day = Monday - 1; day <= kNumDays + 1; day++)
-    {
-        printf("day as int is %i\n", (int)day); // Set break point at this line.
-    }
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/forward/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/Makefile (original)
+++ lldb/trunk/test/lang/c/forward/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c foo.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/forward/README.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/README.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/README.txt (original)
+++ lldb/trunk/test/lang/c/forward/README.txt (removed)
@@ -1,5 +0,0 @@
-This example has a function call in foo.c named "foo" that takes a forward
-declaration to "struct bar" and uses it as a pointer argument. In main.c
-we have a real declaration for "struct bar". We want to be able to find the
-real definition of "struct bar" when we are stopped in foo in foo.c such that
-when we stop in "foo" we see the contents of the "bar_ptr".

Removed: lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py (original)
+++ lldb/trunk/test/lang/c/forward/TestForwardDeclaration.py (removed)
@@ -1,47 +0,0 @@
-"""Test that forward declaration of a data structure gets resolved correctly."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ForwardDeclarationTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_and_run_command(self):
-        """Display *bar_ptr when stopped on a function with forward declaration of struct bar."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_symbol (self, "foo", num_expected_locations=1, sym_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # This should display correctly.
-        # Note that the member fields of a = 1 and b = 2 is by design.
-        self.expect("frame variable --show-types *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(bar) *bar_ptr = ',
-                       '(int) a = 1',
-                       '(int) b = 2'])
-
-        # And so should this.
-        self.expect("expression --show-types -- *bar_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(bar)',
-                       '(int) a = 1',
-                       '(int) b = 2'])

Removed: lldb/trunk/test/lang/c/forward/foo.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/foo.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/foo.c (original)
+++ lldb/trunk/test/lang/c/forward/foo.c (removed)
@@ -1,8 +0,0 @@
-#include <stdio.h>
-#include "foo.h"
-
-int 
-foo (struct bar *bar_ptr)
-{
-    return printf ("bar_ptr = %p\n", bar_ptr);
-}

Removed: lldb/trunk/test/lang/c/forward/foo.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/foo.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/foo.h (original)
+++ lldb/trunk/test/lang/c/forward/foo.h (removed)
@@ -1,4 +0,0 @@
-
-struct bar;
-
-int foo (struct bar *bar_ptr);

Removed: lldb/trunk/test/lang/c/forward/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/forward/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/forward/main.c (original)
+++ lldb/trunk/test/lang/c/forward/main.c (removed)
@@ -1,18 +0,0 @@
-#include <stdio.h>
-#include "foo.h"
-
-struct bar
-{
-    int a;
-    int b;
-};
-
-int
-main (int argc, char const *argv[])
-{
-    struct bar b= { 1, 2 };
-    
-    foo (&b);
-
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/function_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/function_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/function_types/Makefile (original)
+++ lldb/trunk/test/lang/c/function_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py (original)
+++ lldb/trunk/test/lang/c/function_types/TestFunctionTypes.py (removed)
@@ -1,76 +0,0 @@
-"""Test variable with function ptr type and that break on the function works."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class FunctionTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', '// Set break point at this line.')
-
-    def test(self):
-        """Test 'callback' has function ptr type, then break on the function."""
-        self.build()
-        self.runToBreakpoint()
-
-        # Check that the 'callback' variable display properly.
-        self.expect("frame variable --show-types callback", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(int (*)(const char *)) callback =')
-
-        # And that we can break on the callback function.
-        lldbutil.run_break_set_by_symbol (self, "string_not_empty", num_expected_locations=1, sym_exact=True)
-        self.runCmd("continue")
-
-        # Check that we do indeed stop on the string_not_empty function.
-        self.expect("process status", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['a.out`string_not_empty',
-                       'stop reason = breakpoint'])
-    
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test_pointers(self):
-        """Test that a function pointer to 'printf' works and can be called."""
-        self.build()
-        self.runToBreakpoint()
-
-        self.expect("expr string_not_empty",
-                    substrs = ['(int (*)(const char *)) $0 = ', '(a.out`'])
-
-        if self.platformIsDarwin():
-            regexps = ['lib.*\.dylib`printf']
-        else:
-            regexps = ['printf']
-        self.expect("expr (int (*)(const char*, ...))printf",
-                    substrs = ['(int (*)(const char *, ...)) $1 = '],
-                    patterns = regexps)
-
-        self.expect("expr $1(\"Hello world\\n\")",
-                    startstr = '(int) $2 = 12')
-
-    def runToBreakpoint(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        
-        # Break inside the main.
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-        
-        self.runCmd("run", RUN_SUCCEEDED)
-        
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-                    substrs = ['stopped',
-                               'stop reason = breakpoint'])
-        
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-                    substrs = [' resolved, hit count = 1'])

Removed: lldb/trunk/test/lang/c/function_types/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/function_types/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/function_types/main.c (original)
+++ lldb/trunk/test/lang/c/function_types/main.c (removed)
@@ -1,22 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-int string_not_empty (const char *s)
-{
-    if (s && s[0])
-        return 1;
-    return 0;
-}
-
-int main (int argc, char const *argv[])
-{
-    int (*callback)(const char *) = string_not_empty;
-
-    return callback(0); // Set break point at this line.
-}

Removed: lldb/trunk/test/lang/c/global_variables/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/Makefile (original)
+++ lldb/trunk/test/lang/c/global_variables/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-DYLIB_NAME := a
-DYLIB_C_SOURCES := a.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py (original)
+++ lldb/trunk/test/lang/c/global_variables/TestGlobalVariables.py (removed)
@@ -1,77 +0,0 @@
-"""Show global variables and check that they do indeed have global scopes."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class GlobalVariablesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.c'
-        self.line = line_number(self.source, '// Set break point at this line.')
-        self.shlib_names = ["a"]
-
-    @expectedFailureWindows("llvm.org/pr24764")
-    def test(self):
-        """Test 'frame variable --scope --no-args' which omits args and shows scopes."""
-        self.build()
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Break inside the main.
-        lldbutil.run_break_set_by_file_and_line (self, self.source, self.line, num_expected_locations=1, loc_exact=True)
-
-        # Register our shared libraries for remote targets so they get automatically uploaded
-        environment = self.registerSharedLibrariesWithTarget(target, self.shlib_names)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, environment, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Check that GLOBAL scopes are indicated for the variables.
-        self.expect("frame variable --show-types --scope --show-globals --no-args", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['GLOBAL: (int) g_file_global_int = 42',
-                       'GLOBAL: (const char *) g_file_global_cstr',
-                       '"g_file_global_cstr"',
-                       'STATIC: (const char *) g_file_static_cstr',
-                       '"g_file_static_cstr"',
-                       'GLOBAL: (int) g_common_1 = 21'])
-
-        # 'frame variable' should support address-of operator.
-        self.runCmd("frame variable &g_file_global_int")
-
-        # Exercise the 'target variable' command to display globals in a.c file.
-        self.expect("target variable g_a", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['g_a', '123'])
-        self.expect("target variable g_marked_spot.x", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['g_marked_spot.x', '20'])
-
-        # rdar://problem/9747668
-        # runCmd: target variable g_marked_spot.y
-        # output: (int) g_marked_spot.y = <a.o[0x214] can't be resolved,  in not currently loaded.
-        #         >
-        self.expect("target variable g_marked_spot.y", VARIABLES_DISPLAYED_CORRECTLY,
-                    substrs = ['g_marked_spot.y', '21'])
-        self.expect("target variable g_marked_spot.y", VARIABLES_DISPLAYED_CORRECTLY, matching=False,
-                    substrs = ["can't be resolved"])

Removed: lldb/trunk/test/lang/c/global_variables/a.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/a.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/a.c (original)
+++ lldb/trunk/test/lang/c/global_variables/a.c (removed)
@@ -1,15 +0,0 @@
-//===-- a.c -----------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-int g_a = 123;
-struct Point {
-    int x;
-    int y;
-};
-struct Point g_marked_spot = { 20, 21 };
-

Removed: lldb/trunk/test/lang/c/global_variables/cmds.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/cmds.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/cmds.txt (original)
+++ lldb/trunk/test/lang/c/global_variables/cmds.txt (removed)
@@ -1,3 +0,0 @@
-break main.c:5
-continue
-var -global g_a -global g_global_int

Removed: lldb/trunk/test/lang/c/global_variables/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/global_variables/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/global_variables/main.c (original)
+++ lldb/trunk/test/lang/c/global_variables/main.c (removed)
@@ -1,23 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int g_common_1; // Not initialized on purpose to cause it to be undefined external in .o file
-int g_file_global_int = 42;
-const char *g_file_global_cstr = "g_file_global_cstr";
-static const char *g_file_static_cstr = "g_file_static_cstr";
-
-extern int g_a;
-int main (int argc, char const *argv[])
-{
-    g_common_1 = g_file_global_int / 2;
-    static const char *g_func_static_cstr = "g_func_static_cstr";
-    printf ("%s %s\n", g_file_global_cstr, g_file_static_cstr);
-    return g_file_global_int + g_a + g_common_1; // Set break point at this line.  //// break $source:$line; continue; var -global g_a -global g_global_int
-}

Removed: lldb/trunk/test/lang/c/inlines/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/inlines/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/inlines/Makefile (original)
+++ lldb/trunk/test/lang/c/inlines/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := inlines.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/inlines/inlines.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/inlines/inlines.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/inlines/inlines.c (original)
+++ lldb/trunk/test/lang/c/inlines/inlines.c (removed)
@@ -1,53 +0,0 @@
-#include <stdio.h>
-#include "inlines.h"
-
-#define INLINE_ME __inline__ __attribute__((always_inline))
-
-int
-not_inlined_2 (int input)
-{
-  printf ("Called in not_inlined_2 with : %d.\n", input);
-  return input;
-}
-
-int 
-not_inlined_1 (int input)
-{
-  printf ("Called in not_inlined_1 with %d.\n", input);
-  return not_inlined_2(input);
-}
-  
-INLINE_ME int
-inner_inline (int inner_input, int mod_value)
-{
-  int inner_result;
-  inner_result = inner_input % mod_value;
-  printf ("Returning: %d.\n", inner_result);
-  return not_inlined_1 (inner_result);
-}
-
-INLINE_ME int
-outer_inline (int outer_input)
-{
-  int outer_result;
-
-  outer_result = inner_inline (outer_input, outer_input % 3);
-  return outer_result;
-}
-
-int
-main (int argc, char **argv)
-{
-  printf ("Starting...\n");
-
-  int (*func_ptr) (int);
-  func_ptr = outer_inline;
-
-  outer_inline (argc);
-
-  func_ptr (argc);
-
-  return 0;
-}
-
-

Removed: lldb/trunk/test/lang/c/inlines/inlines.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/inlines/inlines.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/inlines/inlines.h (original)
+++ lldb/trunk/test/lang/c/inlines/inlines.h (removed)
@@ -1,4 +0,0 @@
-int inner_inline (int inner_input, int mod_value);
-int outer_inline (int outer_input);
-int not_inlined_2 (int input);
-int not_inlined_1 (int input);

Removed: lldb/trunk/test/lang/c/modules/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/modules/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/modules/Makefile (original)
+++ lldb/trunk/test/lang/c/modules/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/modules/TestCModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/modules/TestCModules.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/modules/TestCModules.py (original)
+++ lldb/trunk/test/lang/c/modules/TestCModules.py (removed)
@@ -1,65 +0,0 @@
-"""Test that importing modules in C works as expected."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class CModulesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfFreeBSD
-    @expectedFailureDarwin('http://llvm.org/pr24302')
-    @expectedFailureLinux('http://llvm.org/pr23456') # 'fopen' has unknown return type
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_expr(self):
-        if platform.system() == "Darwin" and platform.release() < StrictVersion('12.0.0'):
-            self.skipTest()
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.expect("expr @import Darwin; 3", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "3"])
-
-        self.expect("expr *fopen(\"/dev/zero\", \"w\")", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["FILE", "_close", "__sclose"])
-
-        self.expect("expr *myFile", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["a", "5", "b", "9"])
-
-        self.expect("expr MIN((uint64_t)2, (uint64_t)3)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["uint64_t", "2"])
-
-        self.expect("expr stdin", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(FILE *)", "0x"])
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.c', '// Set breakpoint 0 here.')

Removed: lldb/trunk/test/lang/c/modules/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/modules/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/modules/main.c (original)
+++ lldb/trunk/test/lang/c/modules/main.c (removed)
@@ -1,20 +0,0 @@
-#include <stdlib.h>
-
-int printf(const char * __restrict format, ...);
-
-typedef struct {
-    int a;
-    int b;
-} FILE;
-
-int main()
-{
-    FILE *myFile = malloc(sizeof(FILE));
-
-    myFile->a = 5;
-    myFile->b = 9;
-
-    printf("%d\n", myFile->a + myFile->b); // Set breakpoint 0 here.
-
-    free(myFile);
-}

Removed: lldb/trunk/test/lang/c/recurse/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/recurse/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/recurse/Makefile (original)
+++ lldb/trunk/test/lang/c/recurse/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/recurse/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/recurse/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/recurse/main.c (original)
+++ lldb/trunk/test/lang/c/recurse/main.c (removed)
@@ -1,28 +0,0 @@
-#include <stdint.h>
-#include <stdio.h>
-
-uint32_t
-recurse_crash (uint32_t depth)
-{
-    if (depth > 0)
-        return recurse_crash (depth - 1);
-    return 0;
-}
-
-int
-main (int argc, char const *argv[])
-{
-    // If we have more than one argument, then it should a depth to recurse to.
-    // If we have just the program name as an argument, use UINT32_MAX so we
-    // eventually crash the program by overflowing the stack
-    uint32_t depth = UINT32_MAX;
-    if (argc > 1)
-    {
-        char *end = NULL;
-        depth = strtoul (argv[1], &end, 0);
-        if (end == NULL || *end != '\0')
-            depth = UINT32_MAX;
-    }
-    recurse_crash (depth);
-    return 0;
-}
\ No newline at end of file

Removed: lldb/trunk/test/lang/c/register_variables/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/register_variables/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/register_variables/Makefile (original)
+++ lldb/trunk/test/lang/c/register_variables/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := test.c
-
-CFLAGS ?= -g -O1
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py (original)
+++ lldb/trunk/test/lang/c/register_variables/TestRegisterVariables.py (removed)
@@ -1,70 +0,0 @@
-"""Check that compiler-generated register values work correctly"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class RegisterVariableTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureAll(oslist=['macosx'], compiler='clang', compiler_version=['<', '7.0.0'], debug_info="dsym")
-    @expectedFailureClang(None, ['<', '3.5'])
-    @expectedFailureGcc(None, ['is', '4.8.2'])
-    def test_and_run_command(self):
-        """Test expressions on register values."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the main.
-        lldbutil.run_break_set_by_source_regexp(self, "break", num_expected_locations=2)
-
-        ####################
-        # First breakpoint
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Try some variables that should be visible
-        self.expect("expr a", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $0 = 2'])
-
-        self.expect("expr b->m1", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $1 = 3'])
-
-        #####################
-        # Second breakpoint
-
-        self.runCmd("continue")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Try some variables that should be visible
-        self.expect("expr b->m2", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $2 = 5'])
-
-        self.expect("expr c", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(int) $3 = 5'])
-
-        self.runCmd("kill")

Removed: lldb/trunk/test/lang/c/register_variables/test.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/register_variables/test.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/register_variables/test.c (original)
+++ lldb/trunk/test/lang/c/register_variables/test.c (removed)
@@ -1,27 +0,0 @@
-#include <stdio.h>
-
-struct bar {
-  int m1;
-  int m2;
-};
-
-void f1(int a, struct bar *b) __attribute__ ((noinline));
-void f1(int a, struct bar *b)
-{
-  b->m2 = b->m1 + a; // set breakpoint here
-}
-
-void f2(struct bar *b) __attribute__ ((noinline));
-void f2(struct bar *b)
-{
-  int c = b->m2;
-  printf("%d\n", c); // set breakpoint here
-}
-
-int main()
-{
-  struct bar myBar = { 3, 4 };
-  f1(2, &myBar);
-  f2(&myBar);
-  return 0;
-}

Removed: lldb/trunk/test/lang/c/set_values/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/set_values/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/set_values/Makefile (original)
+++ lldb/trunk/test/lang/c/set_values/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/set_values/TestSetValues.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/set_values/TestSetValues.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/set_values/TestSetValues.py (original)
+++ lldb/trunk/test/lang/c/set_values/TestSetValues.py (removed)
@@ -1,111 +0,0 @@
-"""Test settings and readings of program variables."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SetValuesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.line1 = line_number('main.c', '// Set break point #1.')
-        self.line2 = line_number('main.c', '// Set break point #2.')
-        self.line3 = line_number('main.c', '// Set break point #3.')
-        self.line4 = line_number('main.c', '// Set break point #4.')
-        self.line5 = line_number('main.c', '// Set break point #5.')
-
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test(self):
-        """Test settings and readings of program variables."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Set breakpoints on several places to set program variables.
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line1, num_expected_locations=1, loc_exact=True)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line2, num_expected_locations=1, loc_exact=True)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line3, num_expected_locations=1, loc_exact=True)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line4, num_expected_locations=1, loc_exact=True)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line5, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # main.c:15
-        # Check that 'frame variable --show-types' displays the correct data type and value.
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(char) i = 'a'")
-
-        # Now set variable 'i' and check that it is correctly displayed.
-        self.runCmd("expression i = 'b'")
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(char) i = 'b'")
-
-        self.runCmd("continue")
-
-        # main.c:36
-        # Check that 'frame variable --show-types' displays the correct data type and value.
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\((short unsigned int|unsigned short)\) i = 33"])
-
-        # Now set variable 'i' and check that it is correctly displayed.
-        self.runCmd("expression i = 333")
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\((short unsigned int|unsigned short)\) i = 333"])
-
-        self.runCmd("continue")
-
-        # main.c:57
-        # Check that 'frame variable --show-types' displays the correct data type and value.
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(long) i = 33")
-
-        # Now set variable 'i' and check that it is correctly displayed.
-        self.runCmd("expression i = 33333")
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(long) i = 33333")
-
-        self.runCmd("continue")
-
-        # main.c:78
-        # Check that 'frame variable --show-types' displays the correct data type and value.
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(double) i = 2.25")
-
-        # Now set variable 'i' and check that it is correctly displayed.
-        self.runCmd("expression i = 1.5")
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(double) i = 1.5")
-
-        self.runCmd("continue")
-
-        # main.c:85
-        # Check that 'frame variable --show-types' displays the correct data type and value.
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(long double) i = 2.25")
-
-        # Now set variable 'i' and check that it is correctly displayed.
-        self.runCmd("expression i = 1.5")
-        self.expect("frame variable --show-types", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(long double) i = 1.5")

Removed: lldb/trunk/test/lang/c/set_values/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/set_values/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/set_values/main.c (original)
+++ lldb/trunk/test/lang/c/set_values/main.c (removed)
@@ -1,116 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-void set_char(void)
-{
-    char i = 'a';
-    printf("before (char) i = %c\n", i);
-    printf("after  (char) i = %c\n", i);    // Set break point #1. //// break $source:$line
-}
-
-void set_uchar(void)
-{
-    unsigned char i = 'a';
-    printf("before (unsigned char) i = %c\n", i);
-    printf("after  (unsigned char) i = %c\n", i);   //// break $source:$line
-}
-
-void set_short(void)
-{
-    short i = 33;
-    printf("before (short) i = %i\n", i);
-    printf("after  (short) i = %i\n", i);   //// break $source:$line
-}
-
-void set_ushort(void)
-{
-    unsigned short i = 33;
-    printf("before (unsigned short) i = %i\n", i);
-    printf("after  (unsigned short) i = %i\n", i);  // Set break point #2. //// break $source:$line
-}
-
-void set_int(void)
-{
-    int i = 33;
-    printf("before (int) i = %i\n", i);
-    printf("after  (int) i = %i\n", i); //// break $source:$line
-}
-
-void set_uint(void)
-{
-    unsigned int i = 33;
-    printf("before (unsigned int) i = %u\n", i);
-    printf("after  (unsigned int) i = %u\n", i);    //// break $source:$line
-}
-
-void set_long(void)
-{
-    long i = 33;
-    printf("before (long) i = %li\n", i);
-    printf("after  (long) i = %li\n", i);   // Set break point #3. //// break $source:$line
-}
-
-void set_ulong(void)
-{
-    unsigned long i = 33;
-    printf("before (unsigned long) i = %lu\n", i);
-    printf("after  (unsigned long) i = %lu\n", i);  //// break $source:$line
-}
-
-void set_float(void)
-{
-    float i = 2.25;
-    printf("before (float) i = %g\n", i);
-    printf("after  (float) i = %g\n", i);   //// break $source:$line
-}
-
-void set_double(void)
-{
-    double i = 2.25;
-    printf("before (double) i = %g\n", i);
-    printf("after  (double) i = %g\n", i);  // Set break point #4. //// break $source:$line
-}
-
-void set_long_double(void)
-{
-    long double i = 2.25;
-    printf("before (long double) i = %Lg\n", i);
-    printf("after  (long double) i = %Lg\n", i);    // Set break point #5. //// break $source:$line
-}
-
-void set_point (void)
-{
-    struct point_tag {
-        int x;
-        int y;
-    };
-    struct point_tag points_2[2] = {
-        {1,2},
-        {3,4}
-    };
-}
-
-int main (int argc, char const *argv[])
-{
-    // Continue to the breakpoint in set_char()
-    set_char();         //// continue; var i; val -set 99 1
-    set_uchar();        //// continue; var i; val -set 99 2
-    set_short();        //// continue; var i; val -set -42 3
-    set_ushort();       //// continue; var i; val -set 42 4
-    set_int();          //// continue; var i; val -set -42 5
-    set_uint();         //// continue; var i; val -set 42 6
-    set_long();         //// continue; var i; val -set -42 7
-    set_ulong();        //// continue; var i; val -set 42 8
-    set_float();        //// continue; var i; val -set 123.456 9
-    set_double();       //// continue; var i; val -set 123.456 10
-    set_long_double();  //// continue; var i; val -set 123.456 11
-    set_point ();       //// continue
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/shared_lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/Makefile (original)
+++ lldb/trunk/test/lang/c/shared_lib/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-DYLIB_NAME := foo
-DYLIB_C_SOURCES := foo.c
-C_SOURCES := main.c
-CFLAGS_EXTRAS += -fPIC
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py (original)
+++ lldb/trunk/test/lang/c/shared_lib/TestSharedLib.py (removed)
@@ -1,71 +0,0 @@
-"""Test that types defined in shared libraries work correctly."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SharedLibTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_expr(self):
-        """Test that types work when defined in a shared library and forward-declared in the main executable"""
-        if "clang" in self.getCompiler() and "3.4" in self.getCompilerVersion():
-            self.skipTest("llvm.org/pr16214 -- clang emits partial DWARF for structures referenced via typedef")
-
-        self.build()
-        self.common_setup()
-
-        # This should display correctly.
-        self.expect("expression --show-types -- *my_foo_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(foo)", "(sub_foo)", "other_element = 3"])
-
-    @unittest2.expectedFailure("rdar://problem/10704639")
-    def test_frame_variable(self):
-        """Test that types work when defined in a shared library and forward-declared in the main executable"""
-        self.build()
-        self.common_setup()
-
-        # This should display correctly.
-        self.expect("frame variable --show-types -- *my_foo_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(foo)", "(sub_foo)", "other_element = 3"])
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.c'
-        self.line = line_number(self.source, '// Set breakpoint 0 here.')
-        self.shlib_names = ["foo"]
-    
-    def common_setup(self):
-        # Run in synchronous mode
-        self.dbg.SetAsync(False)
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, self.source, self.line, num_expected_locations=1, loc_exact=True)
-
-        # Register our shared libraries for remote targets so they get automatically uploaded
-        environment = self.registerSharedLibrariesWithTarget(target, self.shlib_names)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, environment, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])

Removed: lldb/trunk/test/lang/c/shared_lib/foo.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/foo.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/foo.c (original)
+++ lldb/trunk/test/lang/c/shared_lib/foo.c (removed)
@@ -1,22 +0,0 @@
-#include "foo.h"
-#include <stdlib.h>
-
-struct foo
-{
-  struct sub_foo sub_element;
-  int    other_element;
-};
-
-struct foo *
-GetMeAFoo()
-{
-  struct foo *ret_val = (struct foo *) malloc (sizeof (struct foo));
-  ret_val->other_element = 3;
-  return ret_val;
-}
-
-struct sub_foo *
-GetMeASubFoo (struct foo *in_foo)
-{
-  return &(in_foo->sub_element);
-}

Removed: lldb/trunk/test/lang/c/shared_lib/foo.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/foo.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/foo.h (original)
+++ lldb/trunk/test/lang/c/shared_lib/foo.h (removed)
@@ -1,10 +0,0 @@
-struct foo;
-
-struct sub_foo
-{
-  int sub_1;
-  char *sub_2;
-};
-
-LLDB_TEST_API struct foo *GetMeAFoo();
-LLDB_TEST_API struct sub_foo *GetMeASubFoo(struct foo *in_foo);

Removed: lldb/trunk/test/lang/c/shared_lib/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib/main.c (original)
+++ lldb/trunk/test/lang/c/shared_lib/main.c (removed)
@@ -1,13 +0,0 @@
-#include <stdio.h>
-#include "foo.h"
-
-int 
-main ()
-{
-  struct foo *my_foo_ptr;
-  my_foo_ptr = GetMeAFoo();
-  
-  printf ("My sub foo has: %d.\n", GetMeASubFoo(my_foo_ptr)->sub_1); // Set breakpoint 0 here.
-
-  return 0;
-}

Removed: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/Makefile (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/Makefile (removed)
@@ -1,10 +0,0 @@
-LEVEL = ../../../make
-
-DYLIB_NAME := foo
-DYLIB_C_SOURCES := foo.c
-C_SOURCES := main.c
-CFLAGS_EXTRAS += -fPIC
-
-SPLIT_DEBUG_SYMBOLS = YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/TestSharedLibStrippedSymbols.py (removed)
@@ -1,73 +0,0 @@
-"""Test that types defined in shared libraries with stripped symbols work correctly."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import lldb
-from lldbtest import *
-import lldbutil
-
-class SharedLibStrippedTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureWindows # Test crashes
-    def test_expr(self):
-        """Test that types work when defined in a shared library and forward-declared in the main executable"""
-        if "clang" in self.getCompiler() and "3.4" in self.getCompilerVersion():
-            self.skipTest("llvm.org/pr16214 -- clang emits partial DWARF for structures referenced via typedef")
-
-        self.build()
-        self.common_setup()
-
-        # This should display correctly.
-        self.expect("expression --show-types -- *my_foo_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(foo)", "(sub_foo)", "other_element = 3"])
-
-    @expectedFailureWindows # Test crashes
-    @unittest2.expectedFailure("rdar://problem/10381325")
-    def test_frame_variable(self):
-        """Test that types work when defined in a shared library and forward-declared in the main executable"""
-        self.build()
-        self.common_setup()
-
-        # This should display correctly.
-        self.expect("frame variable --show-types -- *my_foo_ptr", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(foo)", "(sub_foo)", "other_element = 3"])
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.c'
-        self.line = line_number(self.source, '// Set breakpoint 0 here.')
-        self.shlib_names = ["foo"]
-
-    def common_setup(self):
-        # Run in synchronous mode
-        self.dbg.SetAsync(False)
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, self.source, self.line, num_expected_locations=1, loc_exact=True)
-
-        # Register our shared libraries for remote targets so they get automatically uploaded
-        environment = self.registerSharedLibrariesWithTarget(target, self.shlib_names)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, environment, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])

Removed: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.c (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.c (removed)
@@ -1,22 +0,0 @@
-#include "foo.h"
-#include <stdlib.h>
-
-struct foo
-{
-  struct sub_foo sub_element;
-  int    other_element;
-};
-
-struct foo *
-GetMeAFoo()
-{
-  struct foo *ret_val = (struct foo *) malloc (sizeof (struct foo));
-  ret_val->other_element = 3;
-  return ret_val;
-}
-
-struct sub_foo *
-GetMeASubFoo (struct foo *in_foo)
-{
-  return &(in_foo->sub_element);
-}

Removed: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.h (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/foo.h (removed)
@@ -1,12 +0,0 @@
-struct foo;
-
-struct sub_foo
-{
-  int sub_1;
-  char *sub_2;
-};
-
-struct foo *GetMeAFoo();
-struct sub_foo *GetMeASubFoo (struct foo *in_foo);
-
-

Removed: lldb/trunk/test/lang/c/shared_lib_stripped_symbols/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/shared_lib_stripped_symbols/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/shared_lib_stripped_symbols/main.c (original)
+++ lldb/trunk/test/lang/c/shared_lib_stripped_symbols/main.c (removed)
@@ -1,13 +0,0 @@
-#include <stdio.h>
-#include "foo.h"
-
-int 
-main ()
-{
-  struct foo *my_foo_ptr;
-  my_foo_ptr = GetMeAFoo();
-  
-  printf ("My sub foo has: %d.\n", GetMeASubFoo(my_foo_ptr)->sub_1); // Set breakpoint 0 here.
-
-  return 0;
-}

Removed: lldb/trunk/test/lang/c/stepping/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/stepping/Makefile (original)
+++ lldb/trunk/test/lang/c/stepping/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py (original)
+++ lldb/trunk/test/lang/c/stepping/TestStepAndBreakpoints.py (removed)
@@ -1,242 +0,0 @@
-"""Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestCStepping(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def getCategories(self):
-        return ['basic_process']
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers that we will step to in main:
-        self.main_source = "main.c"
-
-    @expectedFailureFreeBSD('llvm.org/pr17932')
-    @expectedFailureLinux # llvm.org/pr14437
-    @expectedFailureWindows("llvm.org/pr24777")
-    @add_test_categories(['pyapi'])
-    def test_and_python_api(self):
-        """Test stepping over vrs. hitting breakpoints & subsequent stepping in various forms."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        self.main_source_spec = lldb.SBFileSpec (self.main_source)
-
-        breakpoints_to_disable = []
-
-        break_1_in_main = target.BreakpointCreateBySourceRegex ('// frame select 2, thread step-out while stopped at .c.1..', self.main_source_spec)
-        self.assertTrue(break_1_in_main, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break_1_in_main)
-
-        break_in_a = target.BreakpointCreateBySourceRegex ('// break here to stop in a before calling b', self.main_source_spec)
-        self.assertTrue(break_in_a, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break_in_a)
-
-        break_in_b = target.BreakpointCreateBySourceRegex ('// thread step-out while stopped at .c.2..', self.main_source_spec)
-        self.assertTrue(break_in_b, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break_in_b)
-
-        break_in_c = target.BreakpointCreateBySourceRegex ('// Find the line number of function .c. here.', self.main_source_spec)
-        self.assertTrue(break_in_c, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break_in_c)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_1_in_main)
-
-        if len(threads) != 1:
-            self.fail ("Failed to stop at first breakpoint in main.")
-
-        thread = threads[0]
-
-        # Get the stop id and for fun make sure it increases:
-        old_stop_id = process.GetStopID()
-
-        # Now step over, which should cause us to hit the breakpoint in "a"
-        thread.StepOver()
-
-        # The stop reason of the thread should be breakpoint.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_a)
-        if len(threads) != 1:
-            self.fail ("Failed to stop at breakpoint in a.")
-
-        # Check that the stop ID increases:
-        new_stop_id = process.GetStopID()
-        self.assertTrue(new_stop_id > old_stop_id, "Stop ID increases monotonically.")
-
-        thread = threads[0]
-
-        # Step over, and we should hit the breakpoint in b:
-        thread.StepOver()
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_b)
-        if len(threads) != 1:
-            self.fail ("Failed to stop at breakpoint in b.")
-        thread = threads[0]
-
-        # Now try running some function, and make sure that we still end up in the same place
-        # and with the same stop reason.
-        frame = thread.GetFrameAtIndex(0)
-        current_line = frame.GetLineEntry().GetLine()
-        current_file = frame.GetLineEntry().GetFileSpec()
-        current_bp = []
-        current_bp.append(thread.GetStopReasonDataAtIndex(0))
-        current_bp.append(thread.GetStopReasonDataAtIndex(1))
-
-        stop_id_before_expression = process.GetStopID()
-        stop_id_before_including_expressions = process.GetStopID(True)
-
-        frame.EvaluateExpression ("(int) printf (print_string)")
-
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (current_line == frame.GetLineEntry().GetLine(), "The line stayed the same after expression.")
-        self.assertTrue (current_file == frame.GetLineEntry().GetFileSpec(), "The file stayed the same after expression.")
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonBreakpoint, "We still say we stopped for a breakpoint.")
-        self.assertTrue (thread.GetStopReasonDataAtIndex(0) == current_bp[0] and thread.GetStopReasonDataAtIndex(1) == current_bp[1], "And it is the same breakpoint.")
-        
-        # Also make sure running the expression didn't change the public stop id
-        # but did change if we are asking for expression stops as well.
-        stop_id_after_expression = process.GetStopID()
-        stop_id_after_including_expressions = process.GetStopID(True)
-
-        self.assertTrue (stop_id_before_expression == stop_id_after_expression, "Expression calling doesn't change stop ID")
-
-        self.assertTrue (stop_id_after_including_expressions > stop_id_before_including_expressions, "Stop ID including expressions increments over expression call.")
-
-        # Do the same thing with an expression that's going to crash, and make sure we are still unchanged.
-
-        frame.EvaluateExpression ("((char *) 0)[0] = 'a'")
-
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (current_line == frame.GetLineEntry().GetLine(), "The line stayed the same after expression.")
-        self.assertTrue (current_file == frame.GetLineEntry().GetFileSpec(), "The file stayed the same after expression.")
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonBreakpoint, "We still say we stopped for a breakpoint.")
-        self.assertTrue (thread.GetStopReasonDataAtIndex(0) == current_bp[0] and thread.GetStopReasonDataAtIndex(1) == current_bp[1], "And it is the same breakpoint.")
-
-        # Now continue and make sure we just complete the step:
-        # Disable all our breakpoints first - sometimes the compiler puts two line table entries in for the
-        # breakpoint a "b" and we don't want to hit that.
-        for bkpt in breakpoints_to_disable:
-            bkpt.SetEnabled(False)
-
-        process.Continue()
-
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "a")
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-
-        # And one more time should get us back to main:
-        process.Continue()
-
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "main")
-        self.assertTrue (thread.GetStopReason() == lldb.eStopReasonPlanComplete)
-
-        # Now make sure we can call a function, break in the called function, then have "continue" get us back out again:
-        frame = thread.GetFrameAtIndex(0)
-        frame = thread.GetFrameAtIndex(0)
-        current_line = frame.GetLineEntry().GetLine()
-        current_file = frame.GetLineEntry().GetFileSpec()
-
-        break_in_b.SetEnabled(True)
-        frame.EvaluateExpression ("b (4)", lldb.eNoDynamicValues, False)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break_in_b)
-        if len(threads) != 1:
-            self.fail ("Failed to stop at breakpoint in b when calling b.")
-        thread = threads[0]
-
-        # So do a step over here to make sure we can still do that:
-
-        thread.StepOver()
-
-        # See that we are still in b:
-        func_name = thread.GetFrameAtIndex(0).GetFunctionName()
-        self.assertTrue (func_name == "b", "Should be in 'b', were in %s"%(func_name))
-
-        # Okay, now if we continue, we will finish off our function call and we should end up back in "a" as if nothing had happened:
-        process.Continue ()
-
-        self.assertTrue (thread.GetFrameAtIndex(0).GetLineEntry().GetLine() == current_line)
-        self.assertTrue (thread.GetFrameAtIndex(0).GetLineEntry().GetFileSpec() == current_file)
-
-        # Now we are going to test step in targeting a function:
-
-        break_in_b.SetEnabled (False)
-
-        break_before_complex_1 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targeting b.', self.main_source_spec)
-        self.assertTrue(break_before_complex_1, VALID_BREAKPOINT)
-
-        break_before_complex_2 = target.BreakpointCreateBySourceRegex ('// Stop here to try step in targeting complex.', self.main_source_spec)
-        self.assertTrue(break_before_complex_2, VALID_BREAKPOINT)
-
-        break_before_complex_3 = target.BreakpointCreateBySourceRegex ('// Stop here to step targeting b and hitting breakpoint.', self.main_source_spec)
-        self.assertTrue(break_before_complex_3, VALID_BREAKPOINT)
-
-        break_before_complex_4 = target.BreakpointCreateBySourceRegex ('// Stop here to make sure bogus target steps over.', self.main_source_spec)
-        self.assertTrue(break_before_complex_4, VALID_BREAKPOINT)
-
-        threads = lldbutil.continue_to_breakpoint(process, break_before_complex_1)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        break_before_complex_1.SetEnabled(False)
-
-        thread.StepInto ("b")
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "b")
-
-        # Now continue out and stop at the next call to complex.  This time step all the way into complex:
-        threads = lldbutil.continue_to_breakpoint (process, break_before_complex_2)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        break_before_complex_2.SetEnabled(False)
-
-        thread.StepInto ("complex")
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "complex")
-        
-        # Now continue out and stop at the next call to complex.  This time enable breakpoints in a and c and then step targeting b:
-        threads = lldbutil.continue_to_breakpoint (process, break_before_complex_3)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        break_before_complex_3.SetEnabled(False)
-
-        break_at_start_of_a = target.BreakpointCreateByName ('a')
-        break_at_start_of_c = target.BreakpointCreateByName ('c')
-
-        thread.StepInto ("b")
-        threads = lldbutil.get_stopped_threads(process, lldb.eStopReasonBreakpoint);
-
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        stop_break_id = thread.GetStopReasonDataAtIndex(0)
-        self.assertTrue(stop_break_id == break_at_start_of_a.GetID() or stop_break_id == break_at_start_of_c.GetID())
-
-        break_at_start_of_a.SetEnabled(False)
-        break_at_start_of_c.SetEnabled(False)
-
-        process.Continue()
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "b")
-        
-        # Now continue out and stop at the next call to complex.  This time enable breakpoints in a and c and then step targeting b:
-        threads = lldbutil.continue_to_breakpoint (process, break_before_complex_4)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        break_before_complex_4.SetEnabled(False)
-
-        thread.StepInto("NoSuchFunction")
-        self.assertTrue (thread.GetFrameAtIndex(0).GetFunctionName() == "main")

Removed: lldb/trunk/test/lang/c/stepping/TestThreadStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/TestThreadStepping.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/stepping/TestThreadStepping.py (original)
+++ lldb/trunk/test/lang/c/stepping/TestThreadStepping.py (removed)
@@ -1,80 +0,0 @@
-"""
-Test thread stepping features in combination with frame select.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-import lldbutil
-
-class ThreadSteppingTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to of function 'c'.
-        self.line1 = line_number('main.c', '// Find the line number of function "c" here.')
-        self.line2 = line_number('main.c', '// frame select 2, thread step-out while stopped at "c(1)"')
-        self.line3 = line_number('main.c', '// thread step-out while stopped at "c(2)"')
-        self.line4 = line_number('main.c', '// frame select 1, thread step-out while stopped at "c(3)"')
-
-    def test_step_out_with_run_command(self):
-        """Exercise thread step-out and frame select followed by thread step-out."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Create a breakpoint inside function 'c'.
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", self.line1, num_expected_locations=1, loc_exact=True)
-
-        # Now run the program.
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The process should be stopped at this point.
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* stopped'])
-
-        # The frame #0 should correspond to main.c:32, the executable statement
-        # in function name 'c'.  And frame #3 should point to main.c:37.
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ["stop reason = breakpoint"],
-            patterns = ["frame #0.*main.c:%d" % self.line1,
-                        "frame #3.*main.c:%d" % self.line2])
-
-        # We want to move the pc to frame #3.  This can be accomplished by
-        # 'frame select 2', followed by 'thread step-out'.
-        self.runCmd("frame select 2")
-        self.runCmd("thread step-out")
-        self.expect("thread backtrace", STEP_OUT_SUCCEEDED,
-            substrs = ["stop reason = step out"],
-            patterns = ["frame #0.*main.c:%d" % self.line2])
-
-        # Let's move on to a single step-out case.
-        self.runCmd("process continue")
-
-        # The process should be stopped at this point.
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* stopped'])
-        self.runCmd("thread step-out")
-        self.expect("thread backtrace", STEP_OUT_SUCCEEDED,
-            substrs = ["stop reason = step out"],
-            patterns = ["frame #0.*main.c:%d" % self.line3])
-
-        # Do another frame selct, followed by thread step-out.
-        self.runCmd("process continue")
-
-        # The process should be stopped at this point.
-        self.expect("process status", PROCESS_STOPPED,
-            patterns = ['Process .* stopped'])
-        self.runCmd("frame select 1")
-        self.runCmd("thread step-out")
-        self.expect("thread backtrace", STEP_OUT_SUCCEEDED,
-            substrs = ["stop reason = step out"],
-            patterns = ["frame #0.*main.c:%d" % self.line4])

Removed: lldb/trunk/test/lang/c/stepping/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/stepping/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/stepping/main.c (original)
+++ lldb/trunk/test/lang/c/stepping/main.c (removed)
@@ -1,69 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int a(int);
-int b(int);
-int c(int);
-const char *print_string = "aaaaaaaaaa\n";
-
-int a(int val)
-{
-    int return_value = val;  // basic break at the start of b
-
-    if (val <= 1)
-    {
-        return_value =  b(val); // break here to stop in a before calling b
-    }
-    else if (val >= 3)
-    {
-        return_value = c(val);
-    }
-
-    return return_value;
-}
-
-int b(int val)
-{
-    int rc = c(val); // thread step-out while stopped at "c(2)"
-    return rc;
-}
-
-int c(int val)
-{
-    return val + 3; // Find the line number of function "c" here.
-}
-
-int complex (int first, int second, int third)
-{
-    return first + second + third;  // Step in targeting complex should stop here
-}
-
-int main (int argc, char const *argv[])
-{
-    int A1 = a(1); // frame select 2, thread step-out while stopped at "c(1)"
-    printf("a(1) returns %d\n", A1);
-    
-    int B2 = b(2);
-    printf("b(2) returns %d\n", B2);
-    
-    int A3 = a(3); // frame select 1, thread step-out while stopped at "c(3)"
-    printf("a(3) returns %d\n", A3);
-    
-    int A4 = complex (a(1), b(2), c(3)); // Stop here to try step in targeting b.
-
-    int A5 = complex (a(2), b(3), c(4)); // Stop here to try step in targeting complex.
-
-    int A6 = complex (a(4), b(5), c(6)); // Stop here to step targeting b and hitting breakpoint.
-
-    int A7 = complex (a(5), b(6), c(7)); // Stop here to make sure bogus target steps over.
-
-    printf ("I am using print_string: %s.\n", print_string);
-    return 0;
-}

Removed: lldb/trunk/test/lang/c/strings/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/strings/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/strings/Makefile (original)
+++ lldb/trunk/test/lang/c/strings/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/strings/TestCStrings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/strings/TestCStrings.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/strings/TestCStrings.py (original)
+++ lldb/trunk/test/lang/c/strings/TestCStrings.py (removed)
@@ -1,54 +0,0 @@
-"""
-Tests that C strings work as expected in expressions
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CStringsTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test_with_run_command(self):
-        """Tests that C strings work as expected in expressions"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        line = line_number('main.c', '// breakpoint 1')
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        self.expect("expression -- a[2]",
-                    patterns = ["\((const )?char\) \$0 = 'c'"])
-
-        self.expect("expression -- z[2]",
-                    startstr = "(const char) $1 = 'x'")
-
-        # On Linux, the expression below will test GNU indirect function calls.
-        self.expect("expression -- (int)strlen(\"hello\")",
-                    startstr = "(int) $2 = 5")
-
-        self.expect("expression -- \"world\"[2]",
-                    startstr = "(const char) $3 = 'r'")
-
-        self.expect("expression -- \"\"[0]",
-                    startstr = "(const char) $4 = '\\0'")
-
-        self.expect("expr --raw -- \"hello\"",
-            substrs = ['[0] = \'h\'',
-                       '[5] = \'\\0\''])
-
-        self.expect("p \"hello\"",
-            substrs = ['[6]) $', 'hello'])
-
-        self.expect("p (char*)\"hello\"",
-                    substrs = ['(char *) $', ' = 0x',
-                               'hello'])
-
-        self.expect("p (int)strlen(\"\")",
-                    substrs = ['(int) $', ' = 0'])
-
-        self.expect("expression !z",
-                    substrs = ['false'])

Removed: lldb/trunk/test/lang/c/strings/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/strings/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/strings/main.c (original)
+++ lldb/trunk/test/lang/c/strings/main.c (removed)
@@ -1,18 +0,0 @@
-//===-- main.c ----------------------------------------------------*- C -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <stdio.h>
-
-int main()
-{
-  const char a[] = "abcde";
-  const char *z = "vwxyz";
-  
-  printf("%s %s", a, z); // breakpoint 1
-}

Removed: lldb/trunk/test/lang/c/struct_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/struct_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/struct_types/Makefile (original)
+++ lldb/trunk/test/lang/c/struct_types/Makefile (removed)
@@ -1,3 +0,0 @@
-LEVEL = ../../../make
-C_SOURCES := main.c
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/struct_types/TestStructTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/struct_types/TestStructTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/struct_types/TestStructTypes.py (original)
+++ lldb/trunk/test/lang/c/struct_types/TestStructTypes.py (removed)
@@ -1,4 +0,0 @@
-import lldbinline
-import lldbtest
-
-lldbinline.MakeInlineTest(__file__, globals(), [lldbtest.expectedFailureWindows("llvm.org/pr24764")] )

Removed: lldb/trunk/test/lang/c/struct_types/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/struct_types/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/struct_types/main.c (original)
+++ lldb/trunk/test/lang/c/struct_types/main.c (removed)
@@ -1,43 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-struct things_to_sum {
-    int a;
-    int b;
-    int c;
-};
-
-int sum_things(struct things_to_sum tts)
-{
-    return tts.a + tts.b + tts.c;
-}
-
-int main (int argc, char const *argv[])
-{
-    struct point_tag {
-        int x;
-        int y;
-        char padding[0];
-    }; //% self.expect("frame variable pt.padding[0]", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["pt.padding[0] = "])
-       //% self.expect("frame variable pt.padding[1]", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["pt.padding[1] = "])
-       //% self.expect("expression -- (pt.padding[0])", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["(char)", " = "])
-       //% self.expect("image lookup -t point_tag", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ['padding[]']) # Once rdar://problem/12566646 is fixed, this should display correctly
-
-    struct rect_tag {
-        struct point_tag bottom_left;
-        struct point_tag top_right;
-    };
-    struct point_tag pt = { 2, 3, {} };
-    struct rect_tag rect = {{1, 2, {}}, {3, 4, {}}};
-    struct things_to_sum tts = { 2, 3, 4 };
-
-    int sum = sum_things(tts); //% self.expect("expression -- &pt == (struct point_tag*)0", substrs = ['false'])
-                               //% self.expect("expression -- sum_things(tts)", substrs = ['9'])
-    return 0; 
-}

Removed: lldb/trunk/test/lang/c/tls_globals/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/tls_globals/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/tls_globals/Makefile (original)
+++ lldb/trunk/test/lang/c/tls_globals/Makefile (removed)
@@ -1,11 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-CFLAGS_EXTRAS += -fPIC
-
-DYLIB_NAME := a
-DYLIB_C_SOURCES := a.c
-
-ENABLE_THREADS := YES
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py (original)
+++ lldb/trunk/test/lang/c/tls_globals/TestTlsGlobals.py (removed)
@@ -1,75 +0,0 @@
-"""Test that thread-local storage can be read correctly."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TlsGlobalTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        TestBase.setUp(self)
-
-        if self.getPlatform() == "freebsd" or self.getPlatform() == "linux":
-            # LD_LIBRARY_PATH must be set so the shared libraries are found on startup
-            if "LD_LIBRARY_PATH" in os.environ:
-                self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.environ["LD_LIBRARY_PATH"] + ":" + os.getcwd())
-            else:
-                self.runCmd("settings set target.env-vars " + self.dylibPath + "=" + os.getcwd())
-            self.addTearDownHook(lambda: self.runCmd("settings remove target.env-vars " + self.dylibPath))
-
-    @unittest2.expectedFailure("rdar://7796742")
-    @skipIfWindows # TLS works differently on Windows, this would need to be implemented separately.
-    def test(self):
-        """Test thread-local storage."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        line1 = line_number('main.c', '// thread breakpoint')
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", line1, num_expected_locations=1, loc_exact=True)
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.runCmd("process status", "Get process status")
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # BUG: sometimes lldb doesn't change threads to the stopped thread.
-        # (unrelated to this test).
-        self.runCmd("thread select 2", "Change thread")
-
-        # Check that TLS evaluates correctly within the thread.
-        self.expect("expr var_static", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\(int\) \$.* = 88"])
-        self.expect("expr var_shared", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\(int\) \$.* = 66"])
-
-        # Continue on the main thread
-        line2 = line_number('main.c', '// main breakpoint')
-        lldbutil.run_break_set_by_file_and_line (self, "main.c", line2, num_expected_locations=1, loc_exact=True)
-        self.runCmd("continue", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.runCmd("process status", "Get process status")
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # BUG: sometimes lldb doesn't change threads to the stopped thread.
-        # (unrelated to this test).
-        self.runCmd("thread select 1", "Change thread")
-
-        # Check that TLS evaluates correctly within the main thread.
-        self.expect("expr var_static", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\(int\) \$.* = 44"])
-        self.expect("expr var_shared", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\(int\) \$.* = 33"])

Removed: lldb/trunk/test/lang/c/tls_globals/a.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/tls_globals/a.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/tls_globals/a.c (original)
+++ lldb/trunk/test/lang/c/tls_globals/a.c (removed)
@@ -1,18 +0,0 @@
-//===-- a.c -----------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <unistd.h>
-
-__thread int var_shared = 33;
-
-void shared_check()
-{
-	var_shared *= 2;
-	usleep(1); // shared thread breakpoint
-}

Removed: lldb/trunk/test/lang/c/tls_globals/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/tls_globals/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/tls_globals/main.c (original)
+++ lldb/trunk/test/lang/c/tls_globals/main.c (removed)
@@ -1,36 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <pthread.h>
-#include <unistd.h>
-
-void shared_check();
-
-// Create some TLS storage within the static executable.
-__thread int var_static = 44;
-
-void *fn_static(void *param)
-{
-	var_static *= 2;
-	shared_check();
-	usleep(1); // thread breakpoint
-	for(;;)
-		usleep(1);
-}
-
-int main (int argc, char const *argv[])
-{
-	pthread_t handle;
-	pthread_create(&handle, NULL, &fn_static, NULL);
-
-	for(;;)
-		usleep(1); // main breakpoint
-
-	return 0;
-}

Removed: lldb/trunk/test/lang/c/typedef/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/typedef/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/typedef/Makefile (original)
+++ lldb/trunk/test/lang/c/typedef/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/c/typedef/Testtypedef.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/typedef/Testtypedef.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/typedef/Testtypedef.py (original)
+++ lldb/trunk/test/lang/c/typedef/Testtypedef.py (removed)
@@ -1,48 +0,0 @@
-"""Look up type information for typedefs of same name at different lexical scope and check for correct display."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TypedefTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipUnlessDarwin
-    @dsym_test
-    @expectedFailureClang("llvm.org/pr19238")
-    def test_with_dsym(self):
-        """Test 'image lookup -t a' and check for correct display at different scopes."""
-        self.buildDsym()
-        self.image_lookup_for_multiple_typedefs()
-
-    @dwarf_test
-    @expectedFailureClang("llvm.org/pr19238")
-    def test_with_dwarf(self):
-        """Test 'image lookup -t a' and check for correct display at different scopes."""
-        self.buildDwarf()
-        self.image_lookup_for_multiple_typedefs()
-
-    def image_lookup_for_multiple_typedefs(self):
-        """Test 'image lookup -t a' at different scopes and check for correct display."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        typearray = ("float", "float", "char", "float", "int", "double", "float", "float")
-        arraylen = len(typearray)+1
-        for i in range(1,arraylen):
-            loc_line = line_number('main.c', '// Set break point ' + str(i) + '.')
-            lldbutil.run_break_set_by_file_and_line (self, "main.c",loc_line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        for t in typearray:
-            self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped', 'stop reason = breakpoint'])
-            self.expect("image lookup -t a", DATA_TYPES_DISPLAYED_CORRECTLY,
-            substrs = ['name = "' + t + '"'])
-            self.runCmd("continue")

Removed: lldb/trunk/test/lang/c/typedef/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/c/typedef/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/c/typedef/main.c (original)
+++ lldb/trunk/test/lang/c/typedef/main.c (removed)
@@ -1,40 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-int main (int argc, char const *argv[])
-{
-    typedef float a;
-    int i = 0; // Set break point 1.
-    i++;
-    a floatvariable = 2.7; // Set break point 2.
-    {
-        typedef char a;
-        i++;
-        a charvariable = 'a'; // Set break point 3.
-    }
-    {
-        int c = 0;
-        c++; // Set break point 4.
-        for(i = 0 ; i < 1 ; i++)
-        {
-            typedef int a;
-            a b;
-            b = 7; // Set break point 5.
-        }
-        for(i = 0 ; i < 1 ; i++)
-        {
-            typedef double a;
-            a b;
-            b = 3.14; // Set break point 6.
-        }
-        c = 1; // Set break point 7.
-    }
-    floatvariable = 2.5;
-    floatvariable = 2.8; // Set break point 8.
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/bool/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/bool/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/bool/Makefile (original)
+++ lldb/trunk/test/lang/cpp/bool/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/bool/TestCPPBool.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/bool/TestCPPBool.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/bool/TestCPPBool.py (original)
+++ lldb/trunk/test/lang/cpp/bool/TestCPPBool.py (removed)
@@ -1,26 +0,0 @@
-"""
-Tests that bool types work
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPBoolTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def test_with_run_command(self):
-        """Test that bool types work in the expression parser"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        line = line_number('main.cpp', '// breakpoint 1')
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line, num_expected_locations=-1, loc_exact=False)
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        self.expect("expression -- bool second_bool = my_bool; second_bool",
-                    startstr = "(bool) $0 = false")
-
-        self.expect("expression -- my_bool = true",
-                    startstr = "(bool) $1 = true")

Removed: lldb/trunk/test/lang/cpp/bool/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/bool/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/bool/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/bool/main.cpp (removed)
@@ -1,17 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <stdio.h>
-
-int main()
-{
-  bool my_bool = false;
-
-  printf("%s\n", my_bool ? "true" : "false"); // breakpoint 1
-}

Removed: lldb/trunk/test/lang/cpp/breakpoint-commands/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/breakpoint-commands/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/breakpoint-commands/Makefile (original)
+++ lldb/trunk/test/lang/cpp/breakpoint-commands/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := nested.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py (original)
+++ lldb/trunk/test/lang/cpp/breakpoint-commands/TestCPPBreakpointCommands.py (removed)
@@ -1,84 +0,0 @@
-"""
-Test lldb breakpoint command for CPP methods & functions in a namespace.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-
-class CPPBreakpointCommandsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureWindows
-    def test(self):
-        """Test a sequence of breakpoint command add, list, and delete."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        a_out_module = lldb.SBFileSpecList()
-        a_out_module.Append(lldb.SBFileSpec(exe))
-
-        nested_comp_unit = lldb.SBFileSpecList()
-        nested_comp_unit.Append (lldb.SBFileSpec("nested.cpp"))
-
-        # First provide ONLY the method name.  This should get everybody...
-        auto_break = target.BreakpointCreateByName ("Function",
-                                                    lldb.eFunctionNameTypeAuto,
-                                                    a_out_module,
-                                                    nested_comp_unit)
-        self.assertTrue (auto_break.GetNumLocations() == 5)
-
-        # Now add the Baz class specifier.  This should get the version contained in Bar,
-        # AND the one contained in ::
-        auto_break = target.BreakpointCreateByName ("Baz::Function",
-                                                    lldb.eFunctionNameTypeAuto,
-                                                    a_out_module,
-                                                    nested_comp_unit)
-        self.assertTrue (auto_break.GetNumLocations() == 2)
-
-        # Then add the Bar::Baz specifier.  This should get the version contained in Bar only
-        auto_break = target.BreakpointCreateByName ("Bar::Baz::Function",
-                                                    lldb.eFunctionNameTypeAuto,
-                                                    a_out_module,
-                                                    nested_comp_unit)
-        self.assertTrue (auto_break.GetNumLocations() == 1)
-
-        plain_method_break = target.BreakpointCreateByName ("Function", 
-                                                            lldb.eFunctionNameTypeMethod,
-                                                            a_out_module,
-                                                            nested_comp_unit)
-        self.assertTrue (plain_method_break.GetNumLocations() == 3)
-
-        plain_method_break = target.BreakpointCreateByName ("Baz::Function", 
-                                                            lldb.eFunctionNameTypeMethod,
-                                                            a_out_module,
-                                                            nested_comp_unit)
-        self.assertTrue (plain_method_break.GetNumLocations() == 2)
-
-        plain_method_break = target.BreakpointCreateByName ("Bar::Baz::Function", 
-                                                            lldb.eFunctionNameTypeMethod,
-                                                            a_out_module,
-                                                            nested_comp_unit)
-        self.assertTrue (plain_method_break.GetNumLocations() == 1)
-
-        plain_method_break = target.BreakpointCreateByName ("Function", 
-                                                            lldb.eFunctionNameTypeBase,
-                                                            a_out_module,
-                                                            nested_comp_unit)
-        self.assertTrue (plain_method_break.GetNumLocations() == 2)
-
-        plain_method_break = target.BreakpointCreateByName ("Bar::Function", 
-                                                            lldb.eFunctionNameTypeBase,
-                                                            a_out_module,
-                                                            nested_comp_unit)
-        self.assertTrue (plain_method_break.GetNumLocations() == 1)

Removed: lldb/trunk/test/lang/cpp/breakpoint-commands/nested.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/breakpoint-commands/nested.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/breakpoint-commands/nested.cpp (original)
+++ lldb/trunk/test/lang/cpp/breakpoint-commands/nested.cpp (removed)
@@ -1,76 +0,0 @@
-#include <stdio.h>
-
-namespace Foo
-{
-  namespace Bar
-  {
-    class Baz
-    {
-    public:
-      Baz (int value):m_value(value) {}
-      int Function () 
-      {
-        printf ("%s returning: %d.\n", __FUNCTION__, m_value);
-        return m_value;
-      }
-    private:
-      int m_value;
-    };
-
-    class Baz2
-    {
-    public:
-      Baz2 (int value):m_value(value) {}
-      int Function () 
-      {
-        printf ("%s returning: %d.\n", __FUNCTION__, m_value);
-        return m_value;
-      }
-    private:
-      int m_value;
-    };
-
-    static int bar_value = 20;
-    int Function ()
-    {
-      printf ("%s returning: %d.\n", __FUNCTION__, bar_value);
-      return bar_value;
-    }
-  }
-}
-
-class Baz
-{
-public:
-    Baz (int value):m_value(value) {}
-    int Function () 
-    {
-        printf ("%s returning: %d.\n", __FUNCTION__, m_value);
-        return m_value;
-    }
-private:
-    int m_value;
-};
-
-int
-Function ()
-{
-    printf ("I am a global function, I return 333.\n");
-    return 333;
-}
-
-int main ()
-{
-  Foo::Bar::Baz mine(200);
-  Foo::Bar::Baz2 mine2(300);
-  ::Baz bare_baz (500);
-
-  printf ("Yup, got %d from Baz.\n", mine.Function());
-  printf ("Yup, got %d from Baz.\n", mine2.Function());
-  printf ("Yup, got %d from Baz.\n", bare_baz.Function());  
-  printf ("And  got %d from Bar.\n", Foo::Bar::Function());
-  printf ("And  got %d from ::.\n", ::Function());
-
-  return 0;
-
-}

Removed: lldb/trunk/test/lang/cpp/call-function/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/call-function/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/call-function/Makefile (original)
+++ lldb/trunk/test/lang/cpp/call-function/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/call-function/TestCallCPPFunction.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/call-function/TestCallCPPFunction.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/call-function/TestCallCPPFunction.py (original)
+++ lldb/trunk/test/lang/cpp/call-function/TestCallCPPFunction.py (removed)
@@ -1,33 +0,0 @@
-"""
-Tests calling a function by basename
-"""
-
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CallCPPFunctionTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def setUp(self):
-        TestBase.setUp(self)
-        self.line = line_number('main.cpp', '// breakpoint')
-    
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_with_run_command(self):
-        """Test calling a function by basename"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list",
-                    STOPPED_DUE_TO_BREAKPOINT,
-                    substrs = ['stopped', 'stop reason = breakpoint'])
-
-        self.expect("expression -- a_function_to_call()",
-                    startstr = "(int) $0 = 0")

Removed: lldb/trunk/test/lang/cpp/call-function/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/call-function/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/call-function/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/call-function/main.cpp (removed)
@@ -1,11 +0,0 @@
-#include <stdio.h>
-
-int a_function_to_call()
-{ 
-    return 0;
-}
-
-int main()
-{
-    printf("%d\n", a_function_to_call()); // breakpoint
-}

Removed: lldb/trunk/test/lang/cpp/chained-calls/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/chained-calls/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/chained-calls/Makefile (original)
+++ lldb/trunk/test/lang/cpp/chained-calls/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py (original)
+++ lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py (removed)
@@ -1,73 +0,0 @@
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestCppChainedCalls(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test_with_run_command(self):
-        self.build()
-
-        # Get main source file
-        src_file = "main.cpp"
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "Main source file")
-
-        # Get the path of the executable
-        cwd = os.getcwd() 
-        exe_file = "a.out"
-        exe_path  = os.path.join(cwd, exe_file)
-
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        main_breakpoint = target.BreakpointCreateBySourceRegex("break here", src_file_spec)
-        self.assertTrue(main_breakpoint.IsValid() and main_breakpoint.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        args = None
-        env = None
-        process = target.LaunchSimple(args, env, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Get frame for current thread
-        frame = thread.GetSelectedFrame()
-
-        # Test chained calls
-        test_result = frame.EvaluateExpression("get(set(true))")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "true", "get(set(true)) = true")
-
-        test_result = frame.EvaluateExpression("get(set(false))")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(set(false)) = false")
-
-        test_result = frame.EvaluateExpression("get(t & f)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(t & f) = false")
-
-        test_result = frame.EvaluateExpression("get(f & t)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(f & t) = false")
-
-        test_result = frame.EvaluateExpression("get(t & t)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "true", "get(t & t) = true")
-
-        test_result = frame.EvaluateExpression("get(f & f)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(f & f) = false")
-
-        test_result = frame.EvaluateExpression("get(t & f)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(t & f) = false")
-
-        test_result = frame.EvaluateExpression("get(f) && get(t)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(f) && get(t) = false")
-
-        test_result = frame.EvaluateExpression("get(f) && get(f)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "get(f) && get(t) = false")
-
-        test_result = frame.EvaluateExpression("get(t) && get(t)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "true", "get(t) && get(t) = true")

Removed: lldb/trunk/test/lang/cpp/chained-calls/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/chained-calls/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/chained-calls/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/chained-calls/main.cpp (removed)
@@ -1,33 +0,0 @@
-class Bool {
-public:
-    Bool operator&(const Bool other)
-    {
-        Bool result;
-        result.value = value && other.value;
-        return result;
-    }
-
-    bool value;
-};
-
-bool get(Bool object)
-{
-    return object.value;
-}
-
-Bool set(bool value)
-{
-    Bool result;
-    result.value = value;
-    return result;
-}
-
-int main()
-{
-    Bool t = set(true);
-    Bool f = set(false);
-    get(t);
-    get(f);
-    get(t & f);
-    return 0; // break here
-}

Removed: lldb/trunk/test/lang/cpp/char1632_t/.categories
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/char1632_t/.categories?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/char1632_t/.categories (original)
+++ lldb/trunk/test/lang/cpp/char1632_t/.categories (removed)
@@ -1 +0,0 @@
-dataformatters

Removed: lldb/trunk/test/lang/cpp/char1632_t/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/char1632_t/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/char1632_t/Makefile (original)
+++ lldb/trunk/test/lang/cpp/char1632_t/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-CFLAGS :=-g -O0 -std=c++11
-
-clean: OBJECTS+=$(wildcard main.d.*)
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py (original)
+++ lldb/trunk/test/lang/cpp/char1632_t/TestChar1632T.py (removed)
@@ -1,90 +0,0 @@
-# coding=utf8
-"""
-Test that the C++11 support for char16_t and char32_t works correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class Char1632TestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.source = 'main.cpp'
-        self.lines = [ line_number(self.source, '// breakpoint1'), 
-                       line_number(self.source, '// breakpoint2') ]
-
-    @expectedFailureIcc # ICC (13.1) does not emit the DW_TAG_base_type for char16_t and char32_t.
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test(self):
-        """Test that the C++11 support for char16_t and char32_t works correctly."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set breakpoints
-        for line in self.lines:
-            lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line)
-
-        # Now launch the process, and do not stop at entry point and stop at breakpoint1
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if self.TraceOn():
-             self.runCmd("frame variable")
-
-        # Check that we correctly report the const types
-        self.expect("frame variable cs16 cs32",
-            substrs = ['(const char16_t *) cs16 = ','(const char32_t *) cs32 = ','u"hello world ྒྙྐ"','U"hello world ྒྙྐ"'])
-
-        # Check that we correctly report the non-const types
-        self.expect("frame variable s16 s32",
-            substrs = ['(char16_t *) s16 = ','(char32_t *) s32 = ','u"ﺸﺵۻ"','U"ЕЙРГЖО"'])
-
-        # Check that we correctly report the array types
-        self.expect("frame variable as16 as32",
-            patterns = ['\(char16_t \[[0-9]+\]\) as16 = ', '\(char32_t \[[0-9]+\]\) as32 = '],
-            substrs = ['u"ﺸﺵۻ"','U"ЕЙРГЖО"'])
-
-        self.runCmd("next") # step to after the string is nullified
-
-        # check that we don't crash on NULL
-        self.expect("frame variable s32",
-            substrs = ['(char32_t *) s32 = 0x00000000'])
-
-        # continue and hit breakpoint2
-        self.runCmd("continue")
-
-        # check that the new strings show
-        self.expect("frame variable s16 s32",
-            substrs = ['(char16_t *) s16 = 0x','(char32_t *) s32 = ','"色ハ匂ヘト散リヌルヲ"','"෴"'])
-
-        # check the same as above for arrays
-        self.expect("frame variable as16 as32",
-            patterns = ['\(char16_t \[[0-9]+\]\) as16 = ', '\(char32_t \[[0-9]+\]\) as32 = '],
-            substrs = ['"色ハ匂ヘト散リヌルヲ"','"෴"'])
-
-        # check that zero values are properly handles
-        self.expect('frame variable cs16_zero', substrs=["U+0000 u'\\0'"])
-        self.expect('frame variable cs32_zero', substrs=["U+0x00000000 U'\\0'"])
-        self.expect('expression cs16_zero', substrs=["U+0000 u'\\0'"])
-        self.expect('expression cs32_zero', substrs=["U+0x00000000 U'\\0'"])
-
-        # Check that we can run expressions that return charN_t
-        self.expect("expression u'a'",substrs = ['(char16_t) $',"61 u'a'"])
-        self.expect("expression U'a'",substrs = ['(char32_t) $',"61 U'a'"])

Removed: lldb/trunk/test/lang/cpp/char1632_t/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/char1632_t/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/char1632_t/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/char1632_t/main.cpp (removed)
@@ -1,44 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <assert.h>
-#include <string>
-
-#define UASZ 64
-
-template<class T, int N>
-void copy_char_seq (T (&arr)[N], const T* src)
-{
-    size_t src_len = std::char_traits<T>::length(src);
-    assert(src_len < N);
-
-    std::char_traits<T>::copy(arr, src, src_len);
-    arr[src_len] = 0;
-}
-
-int main (int argc, char const *argv[])
-{
-    char16_t as16[UASZ];
-    char32_t as32[UASZ];
-    auto cs16_zero = (char16_t)0;
-    auto cs32_zero = (char32_t)0;
-    auto cs16 = u"hello world ྒྙྐ";
-    auto cs32 = U"hello world ྒྙྐ";
-    char16_t *s16 = (char16_t *)u"ﺸﺵۻ";
-    char32_t *s32 = (char32_t *)U"ЕЙРГЖО";
-    copy_char_seq(as16, s16);
-    copy_char_seq(as32, s32);
-    s32 = nullptr; // breakpoint1
-    s32 = (char32_t *)U"à·´";
-    s16 = (char16_t *)u"色ハ匂ヘト散リヌルヲ";
-    copy_char_seq(as16, s16);
-    copy_char_seq(as32, s32);
-    s32 = nullptr; // breakpoint2
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/class_static/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_static/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_static/Makefile (original)
+++ lldb/trunk/test/lang/cpp/class_static/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py (original)
+++ lldb/trunk/test/lang/cpp/class_static/TestStaticVariables.py (removed)
@@ -1,120 +0,0 @@
-"""
-Test display and Python APIs on file and class static variables.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class StaticVariableTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break at.
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    @expectedFailureWindows("llvm.org/pr24764")
-    def test_with_run_command(self):
-        """Test that file and class static variables display correctly."""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # global variables are no longer displayed with the "frame variable" command. 
-        self.expect('target variable A::g_points', VARIABLES_DISPLAYED_CORRECTLY,
-            patterns=['\(PointType \[[1-9]*\]\) A::g_points = {.*}'])
-        self.expect('target variable g_points', VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['(PointType [2]) g_points'])
-
-        # On Mac OS X, gcc 4.2 emits the wrong debug info for A::g_points.
-        # A::g_points is an array of two elements.
-        if self.platformIsDarwin() or self.getPlatform() == "linux":
-            self.expect("target variable A::g_points[1].x", VARIABLES_DISPLAYED_CORRECTLY,
-                startstr = "(int) A::g_points[1].x = 11")
-
-    @expectedFailureDarwin(9980907)
-    @expectedFailureClang('Clang emits incomplete debug info.')
-    @expectedFailureFreeBSD('llvm.org/pr20550 failing on FreeBSD-11')
-    @expectedFailureGcc('GCC emits incomplete debug info.')
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test Python APIs on file and class static variables."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation("main.cpp", self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread = process.GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        # Get the SBValue of 'A::g_points' and 'g_points'.
-        frame = thread.GetFrameAtIndex(0)
-
-        # arguments =>     False
-        # locals =>        False
-        # statics =>       True
-        # in_scope_only => False
-        valList = frame.GetVariables(False, False, True, False)
-
-        for val in valList:
-            self.DebugSBValue(val)
-            name = val.GetName()
-            self.assertTrue(name in ['g_points', 'A::g_points'])
-            if name == 'g_points':
-                self.assertTrue(val.GetValueType() == lldb.eValueTypeVariableStatic)
-                self.assertTrue(val.GetNumChildren() == 2)
-            elif name == 'A::g_points':
-                self.assertTrue(val.GetValueType() == lldb.eValueTypeVariableGlobal)
-                self.assertTrue(val.GetNumChildren() == 2)
-                child1 = val.GetChildAtIndex(1)
-                self.DebugSBValue(child1)
-                child1_x = child1.GetChildAtIndex(0)
-                self.DebugSBValue(child1_x)
-                self.assertTrue(child1_x.GetTypeName() == 'int' and
-                                child1_x.GetValue() == '11')
-
-        # SBFrame.FindValue() should also work.
-        val = frame.FindValue("A::g_points", lldb.eValueTypeVariableGlobal)
-        self.DebugSBValue(val)
-        self.assertTrue(val.GetName() == 'A::g_points')
-
-        # Also exercise the "parameter" and "local" scopes while we are at it.
-        val = frame.FindValue("argc", lldb.eValueTypeVariableArgument)
-        self.DebugSBValue(val)
-        self.assertTrue(val.GetName() == 'argc')
-
-        val = frame.FindValue("argv", lldb.eValueTypeVariableArgument)
-        self.DebugSBValue(val)
-        self.assertTrue(val.GetName() == 'argv')
-
-        val = frame.FindValue("hello_world", lldb.eValueTypeVariableLocal)
-        self.DebugSBValue(val)
-        self.assertTrue(val.GetName() == 'hello_world')

Removed: lldb/trunk/test/lang/cpp/class_static/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_static/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_static/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/class_static/main.cpp (removed)
@@ -1,53 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-// I made this example after noting that I was unable to display an unsized
-// 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.
-
-#include <stdio.h>
-
-typedef struct PointType
-{
-    int x, y;
-} PointType;
-
-class A
-{
-public:
-    static PointType g_points[];
-};
-
-PointType A::g_points[] = 
-{
-    {    1,    2 },
-    {   11,   22 }
-};
-
-static PointType g_points[] = 
-{
-    {    3,    4 },
-    {   33,   44 }
-};
-
-int
-main (int argc, char const *argv[])
-{
-    const char *hello_world = "Hello, world!";
-    printf ("A::g_points[1].x = %i\n", A::g_points[1].x); // Set break point at this line.
-    printf ("::g_points[1].x = %i\n", g_points[1].x);
-    printf ("%s\n", hello_world);
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/class_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/class_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py (original)
+++ lldb/trunk/test/lang/cpp/class_types/TestClassTypes.py (removed)
@@ -1,215 +0,0 @@
-"""Test breakpoint on a class constructor; and variable list the this object."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-import lldbutil
-
-class ClassTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    def test_with_run_command(self):
-        """Test 'frame variable this' when stopped on a class constructor."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break on the ctor function of class C.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The test suite sometimes shows that the process has exited without stopping.
-        #
-        # CC=clang ./dotest.py -v -t class_types
-        # ...
-        # Process 76604 exited with status = 0 (0x00000000)
-        self.runCmd("process status")
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # We should be stopped on the ctor function of class C.
-        self.expect("frame variable --show-types this", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['C *',
-                       ' this = '])
-
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Use Python APIs to create a breakpoint by (filespec, line)."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        filespec = target.GetExecutable()
-        self.assertTrue(filespec, VALID_FILESPEC)
-
-        fsDir = os.path.normpath(filespec.GetDirectory())
-        fsFile = filespec.GetFilename()
-
-        self.assertTrue(fsDir == os.getcwd() and fsFile == "a.out",
-                        "FileSpec matches the executable")
-
-        bpfilespec = lldb.SBFileSpec("main.cpp", False)
-
-        breakpoint = target.BreakpointCreateByLocation(bpfilespec, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Verify the breakpoint just created.
-        self.expect(str(breakpoint), BREAKPOINT_CREATED, exe=False,
-            substrs = ['main.cpp',
-                       str(self.line)])
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if process.GetState() != lldb.eStateStopped:
-            self.fail("Process should be in the 'stopped' state, "
-                      "instead the actual state is: '%s'" %
-                      lldbutil.state_type_to_str(process.GetState()))
-
-        # The stop reason of the thread should be breakpoint.
-        thread = process.GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        # The filename of frame #0 should be 'main.cpp' and the line number
-        # should be 93.
-        self.expect("%s:%d" % (lldbutil.get_filenames(thread)[0],
-                               lldbutil.get_line_numbers(thread)[0]),
-                    "Break correctly at main.cpp:%d" % self.line, exe=False,
-            startstr = "main.cpp:")
-            ### clang compiled code reported main.cpp:94?
-            ### startstr = "main.cpp:93")
-
-        # We should be stopped on the breakpoint with a hit count of 1.
-        self.assertTrue(breakpoint.GetHitCount() == 1, BREAKPOINT_HIT_ONCE)
-
-        process.Continue()
-
-    def test_with_expr_parser(self):
-        """Test 'frame variable this' and 'expr this' when stopped inside a constructor."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # rdar://problem/8516141
-        # Is this a case of clang (116.1) generating bad debug info?
-        #
-        # Break on the ctor function of class C.
-        #self.expect("breakpoint set -M C", BREAKPOINT_CREATED,
-        #    startstr = "Breakpoint created: 1: name = 'C'")
-
-        # Make the test case more robust by using line number to break, instead.
-        lldbutil.run_break_set_by_file_and_line (self, None, self.line, num_expected_locations=-1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Continue on inside the ctor() body...
-        self.runCmd("register read pc")
-        self.runCmd("thread step-over")
-
-        # Verify that 'frame variable this' gets the data type correct.
-        self.expect("frame variable this",VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['C *'])
-
-        # Verify that frame variable --show-types this->m_c_int behaves correctly.
-        self.runCmd("register read pc")
-        self.runCmd("expr m_c_int")
-        self.expect("frame variable --show-types this->m_c_int", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(int) this->m_c_int = 66')
-
-        # Verify that 'expression this' gets the data type correct.
-        self.expect("expression this", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ['C *'])
-
-        # rdar://problem/8430916
-        # expr this->m_c_int returns an incorrect value
-        #
-        # Verify that expr this->m_c_int behaves correctly.
-        self.expect("expression this->m_c_int", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ['\(int\) \$[0-9]+ = 66'])
-
-    def test_with_constructor_name (self):
-        """Test 'frame variable this' and 'expr this' when stopped inside a constructor."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        filespec = target.GetExecutable()
-        self.assertTrue(filespec, VALID_FILESPEC)
-
-        fsDir = os.path.normpath(filespec.GetDirectory())
-        fsFile = filespec.GetFilename()
-
-        self.assertTrue(fsDir == os.getcwd() and fsFile == "a.out",
-                        "FileSpec matches the executable")
-
-        bpfilespec = lldb.SBFileSpec("main.cpp", False)
-
-        breakpoint = target.BreakpointCreateByLocation(bpfilespec, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Verify the breakpoint just created.
-        self.expect(str(breakpoint), BREAKPOINT_CREATED, exe=False,
-            substrs = ['main.cpp',
-                       str(self.line)])
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if process.GetState() != lldb.eStateStopped:
-            self.fail("Process should be in the 'stopped' state, "
-                      "instead the actual state is: '%s'" %
-                      lldbutil.state_type_to_str(process.GetState()))
-
-        # The stop reason of the thread should be breakpoint.
-        thread = process.GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        frame = thread.frames[0]
-        self.assertTrue (frame.IsValid(), "Got a valid frame.")
-
-        self.assertTrue ("C::C" in frame.name, "Constructor name includes class name.")

Removed: lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py (original)
+++ lldb/trunk/test/lang/cpp/class_types/TestClassTypesDisassembly.py (removed)
@@ -1,94 +0,0 @@
-"""
-Test the lldb disassemble command on each call frame when stopped on C's ctor.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class IterateFrameAndDisassembleTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_and_run_command(self):
-        """Disassemble each call frame when stopped on C's constructor."""
-        self.build()
-        self.breakOnCtor()
-
-        raw_output = self.res.GetOutput()
-        frameRE = re.compile(r"""
-                              ^\s\sframe        # heading for the frame info,
-                              .*                # wildcard, and
-                              0x[0-9a-f]{16}    # the frame pc, and
-                              \sa.out`(.+)      # module`function, and
-                              \s\+\s            # the rest ' + ....'
-                              """, re.VERBOSE)
-        for line in raw_output.split(os.linesep):
-            match = frameRE.search(line)
-            if match:
-                function = match.group(1)
-                #print("line:", line)
-                #print("function:", function)
-                self.runCmd("disassemble -n '%s'" % function)
-
-    @add_test_categories(['pyapi'])
-    def test_and_python_api(self):
-        """Disassemble each call frame when stopped on C's constructor."""
-        self.build()
-        self.breakOnCtor()
-
-        # Now use the Python API to get at each function on the call stack and
-        # disassemble it.
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-        thread = process.GetThreadAtIndex(0)
-        depth = thread.GetNumFrames()
-        for i in range(depth - 1):
-            frame = thread.GetFrameAtIndex(i)
-            function = frame.GetFunction()
-            # Print the function header.
-            if self.TraceOn():
-                print()
-                print(function)
-            if function:
-                # Get all instructions for this function and print them out.
-                insts = function.GetInstructions(target)
-                for inst in insts:
-                    # We could simply do 'print inst' to print out the disassembly.
-                    # But we want to print to stdout only if self.TraceOn() is True.
-                    disasm = str(inst)
-                    if self.TraceOn():
-                        print(disasm)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    def breakOnCtor(self):
-        """Setup/run the program so it stops on C's constructor."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break on the ctor function of class C.
-        bpno = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint %d.'%(bpno)])
-
-        # This test was failing because we fail to put the C:: in front of constructore.
-        # We should maybe make another testcase to cover that specifically, but we shouldn't
-        # fail this whole testcase for an inessential issue.
-        # We should be stopped on the ctor function of class C.
-        # self.expect("thread backtrace", BACKTRACE_DISPLAYED_CORRECTLY,
-        #  substrs = ['C::C'])

Removed: lldb/trunk/test/lang/cpp/class_types/cmds.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/cmds.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/cmds.txt (original)
+++ lldb/trunk/test/lang/cpp/class_types/cmds.txt (removed)
@@ -1,3 +0,0 @@
-b main.cpp:97
-c
-var

Removed: lldb/trunk/test/lang/cpp/class_types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/class_types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/class_types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/class_types/main.cpp (removed)
@@ -1,126 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-class Conversion
-{
-public:
-    Conversion (int i) :
-      m_i (i)
-      {}
-
-    operator bool()
-    {
-        return m_i != 0;
-    }
-    
-private:
-    int m_i;
-};
-
-class A
-{
-public:
-    A(int i=0):
-        m_a_int(i),
-        m_aa_int(i+1)
-    {
-    }
-
-    //virtual
-    ~A()
-    {
-    }
-
-    int
-    GetInteger() const
-    {
-        return m_a_int;
-    }
-    void
-    SetInteger(int i)
-    {
-        m_a_int = i;
-    }
-
-protected:
-    int m_a_int;
-    int m_aa_int;
-};
-
-class B : public A
-{
-public:
-    B(int ai, int bi) :
-        A(ai),
-        m_b_int(bi)
-    {
-    }
-
-    //virtual
-    ~B()
-    {
-    }
-
-    int
-    GetIntegerB() const
-    {
-        return m_b_int;
-    }
-    void
-    SetIntegerB(int i)
-    {
-        m_b_int = i;
-    }
-
-protected:
-    int m_b_int;
-};
-
-#include <cstdio>
-class C : public B
-{
-public:
-    C(int ai, int bi, int ci) :
-        B(ai, bi),
-        m_c_int(ci)
-    {
-        printf("Within C::ctor() m_c_int=%d\n", m_c_int); // Set break point at this line.
-    }
-
-    //virtual
-    ~C()
-    {
-    }
-
-    int
-    GetIntegerC() const
-    {
-        return m_c_int;
-    }
-    void
-    SetIntegerC(int i)
-    {
-        m_c_int = i;
-    }
-
-protected:
-    int m_c_int;
-};
-
-int
-main (int argc, char const *argv[])
-{
-    A a(12);
-    B b(22,33);
-    C c(44,55,66);
-    Conversion conv(1);
-    if (conv)
-        return b.GetIntegerB() - a.GetInteger() + c.GetInteger();
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/diamond/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/diamond/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/diamond/Makefile (original)
+++ lldb/trunk/test/lang/cpp/diamond/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/diamond/TestDiamond.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/diamond/TestDiamond.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/diamond/TestDiamond.py (original)
+++ lldb/trunk/test/lang/cpp/diamond/TestDiamond.py (removed)
@@ -1,41 +0,0 @@
-"""
-Tests that bool types work
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPTestDiamondInheritance(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def test_with_run_command(self):
-        """Test that virtual base classes work in when SBValue objects are used to explore the variable value"""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 1'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 2'))
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        thread = process.GetThreadAtIndex(0)
-        frame = thread.GetFrameAtIndex(0)
-        j1 = frame.FindVariable("j1")
-        j1_Derived1 = j1.GetChildAtIndex(0)
-        j1_Derived2 = j1.GetChildAtIndex(1)
-        j1_Derived1_VBase = j1_Derived1.GetChildAtIndex(0)
-        j1_Derived2_VBase = j1_Derived2.GetChildAtIndex(0)
-        j1_Derived1_VBase_m_value = j1_Derived1_VBase.GetChildAtIndex(0)
-        j1_Derived2_VBase_m_value = j1_Derived2_VBase.GetChildAtIndex(0)
-        self.assertTrue(j1_Derived1_VBase.GetLoadAddress() == j1_Derived2_VBase.GetLoadAddress(), "ensure virtual base class is the same between Derived1 and Derived2")
-        self.assertTrue(j1_Derived1_VBase_m_value.GetValueAsUnsigned(1) == j1_Derived2_VBase_m_value.GetValueAsUnsigned(2), "ensure m_value in VBase is the same")
-        self.assertTrue(frame.FindVariable("d").GetChildAtIndex(0).GetChildAtIndex(0).GetValueAsUnsigned(0) == 12345, "ensure Derived2 from j1 is correct");
-        thread.StepOver()
-        self.assertTrue(frame.FindVariable("d").GetChildAtIndex(0).GetChildAtIndex(0).GetValueAsUnsigned(0) == 12346, "ensure Derived2 from j2 is correct");
-    
-    def set_breakpoint(self, line):
-        # Some compilers (for example GCC 4.4.7 and 4.6.1) emit multiple locations for the statement with the ternary
-        # operator in the test program, while others emit only 1.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line, num_expected_locations=-1, loc_exact=False)

Removed: lldb/trunk/test/lang/cpp/diamond/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/diamond/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/diamond/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/diamond/main.cpp (removed)
@@ -1,85 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-static int g_next_value = 12345;
-
-class VBase
-{
-public:
-    VBase() : m_value(g_next_value++) {}
-    virtual ~VBase() {}
-    void Print() 
-    {
-        printf("%p: %s\n%p: m_value = 0x%8.8x\n", this, __PRETTY_FUNCTION__, &m_value, m_value);
-    }
-    int m_value;
-};
-
-class Derived1 : public virtual VBase
-{
-public:
-    Derived1() {};
-    void Print ()
-    {
-        printf("%p: %s\n", this, __PRETTY_FUNCTION__);
-        VBase::Print();
-    }
-
-};
-
-class Derived2 : public virtual VBase
-{
-public:
-    Derived2() {};
-    
-    void Print ()
-    {
-        printf("%p: %s\n", this, __PRETTY_FUNCTION__);
-        VBase::Print();
-    }
-};
-
-class Joiner1 : public Derived1, public Derived2
-{
-public:
-    Joiner1() : 
-        m_joiner1(3456), 
-        m_joiner2(6789) {}
-    void Print ()
-    {
-        printf("%p: %s \n%p: m_joiner1 = 0x%8.8x\n%p: m_joiner2 = 0x%8.8x\n",
-               this,
-               __PRETTY_FUNCTION__,
-               &m_joiner1,
-               m_joiner1,
-               &m_joiner2,
-               m_joiner2);
-        Derived1::Print();
-        Derived2::Print();
-    }
-    int m_joiner1;
-    int m_joiner2;
-};
-
-class Joiner2 : public Derived2
-{
-    int m_stuff[32];
-};
-
-int main(int argc, const char * argv[])
-{
-    Joiner1 j1;
-    Joiner2 j2;
-    j1.Print();
-    j2.Print();
-    Derived2 *d = &j1;
-    d = &j2;  // breakpoint 1
-    return 0; // breakpoint 2
-}

Removed: lldb/trunk/test/lang/cpp/dynamic-value/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/Makefile (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := pass-to-base.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/TestCppValueCast.py (removed)
@@ -1,128 +0,0 @@
-"""
-Test lldb Python API SBValue::Cast(SBType) for C++ types.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class CppValueCastTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @unittest2.expectedFailure("rdar://problem/10808472 SBValue::Cast test case is failing (virtual inheritance)")
-    @add_test_categories(['pyapi'])
-    def test_value_cast_with_virtual_inheritance(self):
-        """Test SBValue::Cast(SBType) API for C++ types with virtual inheritance."""
-        self.build(dictionary=self.d_virtual)
-        self.setTearDownCleanup(dictionary=self.d_virtual)
-        self.do_sbvalue_cast(self.exe_name)
-
-    @add_test_categories(['pyapi'])
-    def test_value_cast_with_regular_inheritance(self):
-        """Test SBValue::Cast(SBType) API for C++ types with regular inheritance."""
-        self.build(dictionary=self.d_regular)
-        self.setTearDownCleanup(dictionary=self.d_regular)
-        self.do_sbvalue_cast(self.exe_name)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        # Find the line number to break for main.c.                                                                                       
-        self.source = 'sbvalue-cast.cpp';
-        self.line = line_number(self.source, '// Set breakpoint here.')
-        self.exe_name = self.testMethodName
-        self.d_virtual = {'CXX_SOURCES': self.source, 'EXE': self.exe_name, 'CFLAGS_EXTRAS': '-DDO_VIRTUAL_INHERITANCE'}
-        self.d_regular = {'CXX_SOURCES': self.source, 'EXE': self.exe_name}
-
-    def do_sbvalue_cast (self, exe_name):
-        """Test SBValue::Cast(SBType) API for C++ types."""
-        exe = os.path.join(os.getcwd(), exe_name)
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        # Find DerivedA and DerivedB types.
-        typeA = target.FindFirstType('DerivedA')
-        typeB = target.FindFirstType('DerivedB')
-        self.DebugSBType(typeA)
-        self.DebugSBType(typeB)
-        self.assertTrue(typeA)
-        self.assertTrue(typeB)
-        error = lldb.SBError()
-
-        # First stop is for DerivedA instance.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        frame0 = thread.GetFrameAtIndex(0)
-
-        tellerA = frame0.FindVariable('teller', lldb.eNoDynamicValues)
-        self.DebugSBValue(tellerA)
-        self.assertTrue(tellerA.GetChildMemberWithName('m_base_val').GetValueAsUnsigned(error, 0) == 20)
-
-        if self.TraceOn():
-            for child in tellerA:
-                print("child name:", child.GetName())
-                print(child)
-
-        # Call SBValue.Cast() to obtain instanceA.
-        instanceA = tellerA.Cast(typeA.GetPointerType())
-        self.DebugSBValue(instanceA)
-
-        # Iterate through all the children and print their values.
-        if self.TraceOn():
-            for child in instanceA:
-                print("child name:", child.GetName())
-                print(child)
-        a_member_val = instanceA.GetChildMemberWithName('m_a_val')
-        self.DebugSBValue(a_member_val)
-        self.assertTrue(a_member_val.GetValueAsUnsigned(error, 0) == 10)
-
-        # Second stop is for DerivedB instance.
-        threads = lldbutil.continue_to_breakpoint (process, breakpoint)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        frame0 = thread.GetFrameAtIndex(0)
-
-        tellerB = frame0.FindVariable('teller', lldb.eNoDynamicValues)
-        self.DebugSBValue(tellerB)
-        self.assertTrue(tellerB.GetChildMemberWithName('m_base_val').GetValueAsUnsigned(error, 0) == 12)
-
-        if self.TraceOn():
-            for child in tellerB:
-                print("child name:", child.GetName())
-                print(child)
-
-        # Call SBValue.Cast() to obtain instanceB.
-        instanceB = tellerB.Cast(typeB.GetPointerType())
-        self.DebugSBValue(instanceB)
-
-        # Iterate through all the children and print their values.
-        if self.TraceOn():
-            for child in instanceB:
-                print("child name:", child.GetName())
-                print(child)
-        b_member_val = instanceB.GetChildMemberWithName('m_b_val')
-        self.DebugSBValue(b_member_val)
-        self.assertTrue(b_member_val.GetValueAsUnsigned(error, 0) == 36)

Removed: lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/TestDynamicValue.py (removed)
@@ -1,222 +0,0 @@
-"""
-Use lldb Python API to test dynamic values in C++
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class DynamicValueTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        # Find the line number to break for main.c.                                                                                       
-
-        self.do_something_line = line_number('pass-to-base.cpp', '// Break here in doSomething.')
-        self.main_first_call_line = line_number('pass-to-base.cpp',
-                                                 '// Break here and get real addresses of myB and otherB.')
-        self.main_second_call_line = line_number('pass-to-base.cpp',
-                                                       '// Break here and get real address of reallyA.')
-
-    @expectedFailureFreeBSD # FIXME: This needs to be root-caused.
-    @expectedFailureWindows("llvm.org/pr24663")
-    @add_test_categories(['pyapi'])
-    def test_get_dynamic_vals(self):
-        """Test fetching C++ dynamic values from pointers & references."""
-        self.build(dictionary=self.getBuildFlags())
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-
-        do_something_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.do_something_line)
-        self.assertTrue(do_something_bpt,
-                        VALID_BREAKPOINT)
-
-        first_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_first_call_line)
-        self.assertTrue(first_call_bpt,
-                        VALID_BREAKPOINT)
-
-        second_call_bpt = target.BreakpointCreateByLocation('pass-to-base.cpp', self.main_second_call_line)
-        self.assertTrue(second_call_bpt,
-                        VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, first_call_bpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-
-        # Now find the dynamic addresses of myB and otherB so we can compare them
-        # with the dynamic values we get in doSomething:
-
-        use_dynamic = lldb.eDynamicCanRunTarget
-        no_dynamic  = lldb.eNoDynamicValues
-
-        myB = frame.FindVariable ('myB', no_dynamic);
-        self.assertTrue (myB)
-        myB_loc = int (myB.GetLocation(), 16)
-
-        otherB = frame.FindVariable('otherB', no_dynamic)
-        self.assertTrue (otherB)
-        otherB_loc = int (otherB.GetLocation(), 16)
-
-        # Okay now run to doSomething:
-
-        threads = lldbutil.continue_to_breakpoint (process, do_something_bpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-
-        # Get "this" using FindVariable:
-
-        this_static = frame.FindVariable ('this', no_dynamic)
-        this_dynamic = frame.FindVariable ('this', use_dynamic)
-        self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc)
-        
-        # Now make sure that the "GetDynamicValue" works:
-        # This doesn't work currently because we can't get dynamic values from ConstResult objects.
-        fetched_dynamic_value = this_static.GetDynamicValue(use_dynamic)
-        self.examine_value_object_of_this_ptr (this_static, fetched_dynamic_value, myB_loc)
-
-        # And conversely that the GetDynamicValue() interface also works:
-        fetched_static_value = this_dynamic.GetStaticValue()
-        self.examine_value_object_of_this_ptr (fetched_static_value, this_dynamic, myB_loc)
-
-        # Get "this" using FindValue, make sure that works too:
-        this_static = frame.FindValue ('this', lldb.eValueTypeVariableArgument, no_dynamic)
-        this_dynamic = frame.FindValue ('this', lldb.eValueTypeVariableArgument, use_dynamic)
-        self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc)
-
-        # Get "this" using the EvaluateExpression:
-        this_static = frame.EvaluateExpression ('this', False)
-        this_dynamic = frame.EvaluateExpression ('this', True)
-        self.examine_value_object_of_this_ptr (this_static, this_dynamic, myB_loc)
-        
-        # The "frame var" code uses another path to get into children, so let's
-        # make sure that works as well:
-
-        self.expect('frame var -d run-target --ptr-depth=2 --show-types anotherA.m_client_A', 'frame var finds its way into a child member',
-            patterns = ['\(B \*\)'])
-
-        # Now make sure we also get it right for a reference as well:
-
-        anotherA_static = frame.FindVariable ('anotherA', False)
-        self.assertTrue (anotherA_static)
-        anotherA_static_addr = int (anotherA_static.GetValue(), 16)
-
-        anotherA_dynamic = frame.FindVariable ('anotherA', True)
-        self.assertTrue (anotherA_dynamic)
-        anotherA_dynamic_addr = int (anotherA_dynamic.GetValue(), 16)
-        anotherA_dynamic_typename = anotherA_dynamic.GetTypeName()
-        self.assertTrue (anotherA_dynamic_typename.find('B') != -1)
-
-        self.assertTrue(anotherA_dynamic_addr < anotherA_static_addr)
-
-        anotherA_m_b_value_dynamic = anotherA_dynamic.GetChildMemberWithName('m_b_value', True)
-        self.assertTrue (anotherA_m_b_value_dynamic)
-        anotherA_m_b_val = int (anotherA_m_b_value_dynamic.GetValue(), 10)
-        self.assertTrue (anotherA_m_b_val == 300)
-
-        anotherA_m_b_value_static = anotherA_static.GetChildMemberWithName('m_b_value', True)
-        self.assertFalse (anotherA_m_b_value_static)
-
-        # Okay, now continue again, and when we hit the second breakpoint in main
-
-        threads = lldbutil.continue_to_breakpoint (process, second_call_bpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-        reallyA_value = frame.FindVariable ('reallyA', False)
-        self.assertTrue(reallyA_value)
-        reallyA_loc = int (reallyA_value.GetLocation(), 16)
-        
-        # Finally continue to doSomething again, and make sure we get the right value for anotherA,
-        # which this time around is just an "A".
-
-        threads = lldbutil.continue_to_breakpoint (process, do_something_bpt)
-        self.assertTrue(len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-        anotherA_value = frame.FindVariable ('anotherA', True)
-        self.assertTrue(anotherA_value)
-        anotherA_loc = int (anotherA_value.GetValue(), 16)
-        self.assertTrue (anotherA_loc == reallyA_loc)
-        self.assertTrue (anotherA_value.GetTypeName().find ('B') == -1)
-
-    def examine_value_object_of_this_ptr (self, this_static, this_dynamic, dynamic_location):
-        # Get "this" as its static value
-        self.assertTrue (this_static)
-        this_static_loc = int (this_static.GetValue(), 16)
-        
-        # Get "this" as its dynamic value
-        
-        self.assertTrue (this_dynamic)
-        this_dynamic_typename = this_dynamic.GetTypeName()
-        self.assertTrue (this_dynamic_typename.find('B') != -1)
-        this_dynamic_loc = int (this_dynamic.GetValue(), 16)
-        
-        # Make sure we got the right address for "this"
-        
-        self.assertTrue (this_dynamic_loc == dynamic_location)
-
-        # And that the static address is greater than the dynamic one
-
-        self.assertTrue (this_static_loc > this_dynamic_loc)
-        
-        # Now read m_b_value which is only in the dynamic value:
-
-        use_dynamic = lldb.eDynamicCanRunTarget
-        no_dynamic  = lldb.eNoDynamicValues
-
-        this_dynamic_m_b_value = this_dynamic.GetChildMemberWithName('m_b_value', use_dynamic)
-        self.assertTrue (this_dynamic_m_b_value)
-        
-        m_b_value = int (this_dynamic_m_b_value.GetValue(), 0)
-        self.assertTrue (m_b_value == 10)
-        
-        # Make sure it is not in the static version
-
-        this_static_m_b_value = this_static.GetChildMemberWithName('m_b_value', no_dynamic)
-        self.assertFalse (this_static_m_b_value)
-
-        # Okay, now let's make sure that we can get the dynamic type of a child element:
-
-        contained_auto_ptr = this_dynamic.GetChildMemberWithName ('m_client_A', use_dynamic)
-        self.assertTrue (contained_auto_ptr)
-        contained_b = contained_auto_ptr.GetChildMemberWithName ('_M_ptr', use_dynamic)
-        if not contained_b:
-                contained_b = contained_auto_ptr.GetChildMemberWithName ('__ptr_', use_dynamic)
-        self.assertTrue (contained_b)
-        
-        contained_b_static = contained_auto_ptr.GetChildMemberWithName ('_M_ptr', no_dynamic)
-        if not contained_b_static:
-                contained_b_static = contained_auto_ptr.GetChildMemberWithName ('__ptr_', no_dynamic)
-        self.assertTrue (contained_b_static)
-        
-        contained_b_addr = int (contained_b.GetValue(), 16)
-        contained_b_static_addr = int (contained_b_static.GetValue(), 16)
-        
-        self.assertTrue (contained_b_addr < contained_b_static_addr)

Removed: lldb/trunk/test/lang/cpp/dynamic-value/pass-to-base.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/pass-to-base.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/pass-to-base.cpp (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/pass-to-base.cpp (removed)
@@ -1,69 +0,0 @@
-#include <stdio.h>
-#include <memory>
-
-class Extra
-{
-public:
-  Extra (int in_one, int in_two) : m_extra_one(in_one), m_extra_two(in_two) {}
-
-private:
-  int m_extra_one;
-  int m_extra_two;
-};
-
-class A
-{
-public:
-  A(int value) : m_a_value (value) {}
-  A(int value, A* client_A) : m_a_value (value), m_client_A (client_A) {}
-
-  virtual ~A() {}
-
-  virtual void
-  doSomething (A &anotherA)
-  {
-    printf ("In A %p doing something with %d.\n", this, m_a_value);
-    int tmp_value = anotherA.Value();
-    printf ("Also have another A at %p: %d.\n", &anotherA, tmp_value); // Break here in doSomething.
-  }
-
-  int 
-  Value()
-  {
-    return m_a_value;
-  }
-
-private:
-  int m_a_value;
-  std::auto_ptr<A> m_client_A;
-};
-
-class B : public Extra, public virtual A
-{
-public:
-  B (int b_value, int a_value) : Extra(b_value, a_value), A(a_value), m_b_value(b_value) {}
-  B (int b_value, int a_value, A *client_A) : Extra(b_value, a_value), A(a_value, client_A), m_b_value(b_value) {}
-
-  virtual ~B () {}
-
-private:
-  int m_b_value;
-};
-
-static A* my_global_A_ptr;
-
-int
-main (int argc, char **argv)
-{
-  my_global_A_ptr = new B (100, 200);
-  B myB (10, 20, my_global_A_ptr);
-  B *second_fake_A_ptr = new B (150, 250);
-  B otherB (300, 400, second_fake_A_ptr);
-
-  myB.doSomething(otherB); // Break here and get real addresses of myB and otherB.
-
-  A reallyA (500);
-  myB.doSomething (reallyA);  // Break here and get real address of reallyA.
-
-  return 0;
-}

Removed: lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp (original)
+++ lldb/trunk/test/lang/cpp/dynamic-value/sbvalue-cast.cpp (removed)
@@ -1,80 +0,0 @@
-//===-- sbvalue-cast.cpp ----------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#ifdef DO_VIRTUAL_INHERITANCE
-#define VIRTUAL virtual
-#else
-#define VIRTUAL 
-#endif
-
-#include <stdio.h>
-
-class Base
-{
-public:
-    Base(int val) : m_base_val (val) {}
-    virtual ~Base() {}
-
-    virtual void
-    forcast(int input) {
-        int future_val = m_base_val + input * 1;
-        printf("Forcasting %d\n", future_val);
-    }
-
-protected:
-    int m_base_val;
-};
-
-class DerivedA : public VIRTUAL Base
-{
-public:
-    DerivedA(int val) : Base(val*2), m_a_val(val) {
-        printf("DerivedA::ctor()->\n");
-        printf("m_base_val=%d\n", m_base_val);
-        printf("m_a_val=%d\n", m_a_val);
-    }
-    virtual ~DerivedA() {}
-
-private:
-    int m_a_val;
-};
-
-class DerivedB : public VIRTUAL Base
-{
-public:
-    DerivedB(int val) : Base(val), m_b_val(val*3) {
-        printf("DerivedB::ctor()->\n");
-        printf("m_base_val=%d\n", m_base_val);
-        printf("m_b_val=%d\n", m_b_val);
-    }
-    virtual ~DerivedB() {}
-    
-    virtual void
-    forcast(int input) {
-        int future_val = m_b_val + input * 2;
-        printf("Forcasting %d\n", future_val);
-    }
-
-private:
-    int m_b_val;
-};
-
-int
-main(int argc, char **argv)
-{
-	DerivedA* dA = new DerivedA(10);
-	DerivedB* dB = new DerivedB(12);
-	Base *array[2] = {dA, dB};
-    Base *teller = NULL;
-    for (int i = 0; i < 2; ++i) {
-        teller = array[i];
-        teller->forcast(i); // Set breakpoint here.
-    }
-
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/enum_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/enum_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/enum_types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/enum_types/Makefile (removed)
@@ -1,10 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-CXXFLAGS += -std=c++11
-
-clean: OBJECTS+=$(wildcard main.d.*)
-
-include $(LEVEL)/Makefile.rules
-

Removed: lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py (original)
+++ lldb/trunk/test/lang/cpp/enum_types/TestCPP11EnumTypes.py (removed)
@@ -1,110 +0,0 @@
-"""Look up enum type information and check for correct display."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPP11EnumTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_int8_t(self):
-        """Test C++11 enumeration class types as int8_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=int8_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_int16_t(self):
-        """Test C++11 enumeration class types as int16_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=int16_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_int32_t(self):
-        """Test C++11 enumeration class types as int32_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=int32_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_int64_t(self):
-        """Test C++11 enumeration class types as int64_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=int64_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_uint8_t(self):
-        """Test C++11 enumeration class types as uint8_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=uint8_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_uint16_t(self):
-        """Test C++11 enumeration class types as uint16_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=uint16_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_uint32_t(self):
-        """Test C++11 enumeration class types as uint32_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=uint32_t"'})
-        self.image_lookup_for_enum_type()
-
-    def test_uint64_t(self):
-        """Test C++11 enumeration class types as uint64_t types."""
-        self.build(dictionary={'CFLAGS_EXTRAS': '"-DTEST_BLOCK_CAPTURED_VARS=uint64_t"'})
-        self.image_lookup_for_enum_type()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    def image_lookup_for_enum_type(self):
-        """Test C++11 enumeration class types."""
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the main.
-        bkpt_id = lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Look up information about the 'DayType' enum type.
-        # Check for correct display.
-        self.expect("image lookup -t DayType", DATA_TYPES_DISPLAYED_CORRECTLY,
-            substrs = ['enum DayType {',
-                       'Monday',
-                       'Tuesday',
-                       'Wednesday',
-                       'Thursday',
-                       'Friday',
-                       'Saturday',
-                       'Sunday',
-                       'kNumDays',
-                       '}'])
-
-        enum_values = [ '-4', 
-                        'Monday', 
-                        'Tuesday', 
-                        'Wednesday', 
-                        'Thursday',
-                        'Friday',
-                        'Saturday',
-                        'Sunday',
-                        'kNumDays',
-                        '5'];
-
-        bkpt = self.target().FindBreakpointByID(bkpt_id)
-        for enum_value in enum_values:
-            self.expect("frame variable day", 'check for valid enumeration value',
-                substrs = [enum_value])
-            lldbutil.continue_to_breakpoint (self.process(), bkpt)

Removed: lldb/trunk/test/lang/cpp/enum_types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/enum_types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/enum_types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/enum_types/main.cpp (removed)
@@ -1,33 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-#include <stdint.h>
-
-
-int main (int argc, char const *argv[])
-{
-    typedef int16_t enum_integer_t;
-    enum class DayType : enum_integer_t {
-        Monday = -3,
-        Tuesday,
-        Wednesday,
-        Thursday,
-        Friday,
-        Saturday,
-        Sunday,
-        kNumDays
-    };
-    enum_integer_t day_value;
-    for (day_value = (enum_integer_t)DayType::Monday - 1; day_value <= (enum_integer_t)DayType::kNumDays + 1; ++day_value)
-    {
-        DayType day = (DayType)day_value;
-        printf("day as int is %i\n", (int)day); // Set break point at this line.
-    }
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/exceptions/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/exceptions/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/exceptions/Makefile (original)
+++ lldb/trunk/test/lang/cpp/exceptions/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := exceptions.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py (original)
+++ lldb/trunk/test/lang/cpp/exceptions/TestCPPExceptionBreakpoints.py (removed)
@@ -1,65 +0,0 @@
-"""
-Test lldb exception breakpoint command for CPP.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class CPPBreakpointTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        self.source = 'exceptions.cpp'
-        self.catch_line = line_number(self.source, '// This is the line you should stop at for catch')
-
-    @expectedFailureWindows("llvm.org/pr24538") # clang-cl does not support throw or catch
-    def test(self):
-        """Test lldb exception breakpoint command for CPP."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        exception_bkpt = target.BreakpointCreateForException (lldb.eLanguageTypeC_plus_plus, True, True)
-        self.assertTrue (exception_bkpt, "Made an exception breakpoint")
-
-        # Now run, and make sure we hit our breakpoint:
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue (process, "Got a valid process")
-        
-        stopped_threads = []
-        stopped_threads = lldbutil.get_threads_stopped_at_breakpoint (process, exception_bkpt)
-        self.assertTrue (len(stopped_threads) == 1, "Stopped at our exception breakpoint.")
-        thread = stopped_threads[0]
-        # Make sure our throw function is still above us on the stack:
-
-        frame_functions = lldbutil.get_function_names(thread)
-        self.assertTrue (frame_functions.count ("throws_exception_on_even(int)") == 1, "Our throw function is still on the stack.")
-
-        # Okay we hit our exception throw breakpoint, now make sure we get our catch breakpoint.
-        # One potential complication is that we might hit a couple of the exception breakpoints in getting out of the throw.
-        # so loop till we don't see the throws function on the stack.  We should stop one more time for our exception breakpoint
-        # and that should be the catch...
-
-        while frame_functions.count ("throws_exception_on_even(int)") == 1: 
-            stopped_threads = lldbutil.continue_to_breakpoint (process, exception_bkpt)
-            self.assertTrue (len(stopped_threads) == 1)
-        
-            thread = stopped_threads[0]
-            frame_functions = lldbutil.get_function_names(thread)
-
-        self.assertTrue (frame_functions.count ("throws_exception_on_even(int)") == 0, "At catch our throw function is off the stack")
-        self.assertTrue (frame_functions.count ("intervening_function(int)") == 0,     "At catch our intervening function is off the stack")
-        self.assertTrue (frame_functions.count ("catches_exception(int)") == 1, "At catch our catch function is on the stack")

Removed: lldb/trunk/test/lang/cpp/exceptions/exceptions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/exceptions/exceptions.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/exceptions/exceptions.cpp (original)
+++ lldb/trunk/test/lang/cpp/exceptions/exceptions.cpp (removed)
@@ -1,42 +0,0 @@
-#include <exception>
-#include <stdio.h>
-
-int throws_exception_on_even (int value);
-int intervening_function (int value);
-int catches_exception (int value);
-
-int
-catches_exception (int value)
-{
-    try
-    {
-        return intervening_function(value); // This is the line you should stop at for catch
-    }
-    catch (int value)
-    {
-        return value;  
-    }
-}
-
-int 
-intervening_function (int value)
-{
-    return throws_exception_on_even (2 * value);
-}
-
-int
-throws_exception_on_even (int value)
-{
-    printf ("Mod two works: %d.\n", value%2);
-    if (value % 2 == 0)
-        throw 30;
-    else
-        return value;
-}
-
-int 
-main ()
-{
-    catches_exception (10); // Stop here
-    return 5;
-}

Removed: lldb/trunk/test/lang/cpp/global_operators/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/global_operators/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/global_operators/Makefile (original)
+++ lldb/trunk/test/lang/cpp/global_operators/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py (original)
+++ lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py (removed)
@@ -1,54 +0,0 @@
-"""
-Test that global operators are found and evaluated.
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestCppGlobalOperators(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test_with_run_command(self):
-        self.build()
-
-        # Get main source file
-        src_file = "main.cpp"
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "Main source file")
-        
-        # Get the path of the executable
-        cwd = os.getcwd()
-        exe_file = "a.out"
-        exe_path  = os.path.join(cwd, exe_file)
-        
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        main_breakpoint = target.BreakpointCreateBySourceRegex("// break here", src_file_spec)
-        self.assertTrue(main_breakpoint.IsValid() and main_breakpoint.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        args = None
-        env = None
-        process = target.LaunchSimple(args, env, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Check if global operators are evaluated 
-        frame = thread.GetSelectedFrame()
-
-        test_result = frame.EvaluateExpression("operator==(s1, s2)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "operator==(s1, s2) = false")
- 
-        test_result = frame.EvaluateExpression("operator==(s1, s3)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "true", "operator==(s1, s3) = true")
-
-        test_result = frame.EvaluateExpression("operator==(s2, s3)")
-        self.assertTrue(test_result.IsValid() and test_result.GetValue() == "false", "operator==(s2, s3) = false")

Removed: lldb/trunk/test/lang/cpp/global_operators/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/global_operators/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/global_operators/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/global_operators/main.cpp (removed)
@@ -1,16 +0,0 @@
-struct Struct {
-	int value;
-};
-
-bool operator==(const Struct &a, const Struct &b) {
-	return a.value == b.value;
-}
-
-int main() {
-	Struct s1, s2, s3;
-	s1.value = 3;
-	s2.value = 5;
-	s3.value = 3;
-	return 0; // break here
-}
-

Removed: lldb/trunk/test/lang/cpp/incomplete-types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/Makefile (removed)
@@ -1,35 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES = main.cpp length.cpp a.cpp
-
-CFLAGS_LIMIT = -c $(CXXFLAGS)
-CFLAGS_NO_LIMIT = -c $(CXXFLAGS)
-
-ifneq (,$(findstring clang,$(CC)))
-  CFLAGS_LIMIT += -flimit-debug-info
-  CFLAGS_NO_LIMIT += -fno-limit-debug-info
-endif
-
-all: limit nolimit
-
-limit: main.o length_limit.o a.o
-	$(CXX) $(LDFLAGS) main.o length_limit.o a.o -o limit
-
-nolimit: main.o length_nolimit.o a.o
-	$(CXX) $(LDFLAGS) main.o length_nolimit.o a.o -o nolimit
-
-main.o: main.cpp
-	$(CXX) $(CFLAGS_LIMIT) main.cpp -o main.o
-
-length_limit.o: length.cpp
-	$(CXX) $(CFLAGS_LIMIT) length.cpp -o length_limit.o
-
-length_nolimit.o: length.cpp
-	$(CXX) $(CFLAGS_NO_LIMIT) length.cpp -o length_nolimit.o
-
-a.o: a.cpp
-	$(CXX) $(CFLAGS_NO_DEBUG) -c a.cpp -o a.o
-
-clean: OBJECTS += limit nolimit length_limit.o length_nolimit.o length_limit.dwo length_nolimit.dwo
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/TestCppIncompleteTypes.py (removed)
@@ -1,65 +0,0 @@
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestCppIncompleteTypes(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipIfGcc
-    def test_limit_debug_info(self):
-        self.build()
-        frame = self.get_test_frame('limit')
-
-        value_f = frame.EvaluateExpression("f")
-        self.assertTrue(value_f.IsValid(), "'expr f' results in a valid SBValue object")
-        self.assertFalse(value_f.GetError().Success(), "'expr f' results in an error, but LLDB does not crash")
-
-        value_a = frame.EvaluateExpression("a")
-        self.assertTrue(value_a.IsValid(), "'expr a' results in a valid SBValue object")
-        self.assertFalse(value_a.GetError().Success(), "'expr a' results in an error, but LLDB does not crash")
-
-    @skipIfGcc
-    @skipIfWindows # Clang on Windows asserts in external record layout in this case.
-    def test_partial_limit_debug_info(self):
-        self.build()
-        frame = self.get_test_frame('nolimit')
-
-        value_f = frame.EvaluateExpression("f")
-        self.assertTrue(value_f.IsValid(), "'expr f' results in a valid SBValue object")
-        self.assertTrue(value_f.GetError().Success(), "'expr f' is successful")
-
-        value_a = frame.EvaluateExpression("a")
-        self.assertTrue(value_a.IsValid(), "'expr a' results in a valid SBValue object")
-        self.assertTrue(value_a.GetError().Success(), "'expr a' is successful")
-
-    def get_test_frame(self, exe):
-        # Get main source file
-        src_file = "main.cpp"
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "Main source file")
-
-        # Get the path of the executable
-        cwd = os.getcwd()
-        exe_path  = os.path.join(cwd, exe)
-
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        main_breakpoint = target.BreakpointCreateBySourceRegex("break here", src_file_spec)
-        self.assertTrue(main_breakpoint.IsValid() and main_breakpoint.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        args = None
-        env = None
-        process = target.LaunchSimple(args, env, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Get frame for current thread
-        return thread.GetSelectedFrame()

Removed: lldb/trunk/test/lang/cpp/incomplete-types/a.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/a.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/a.cpp (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/a.cpp (removed)
@@ -1,10 +0,0 @@
-
-#include "a.h"
-
-A::A () { }
-
-int
-A::length ()
-{
-  return 123;
-}

Removed: lldb/trunk/test/lang/cpp/incomplete-types/a.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/a.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/a.h (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/a.h (removed)
@@ -1,11 +0,0 @@
-#ifndef __A_H__
-#define __A_H__
-
-class A
-{
-public:
-  A();
-  virtual int length();
-};
-
-#endif

Removed: lldb/trunk/test/lang/cpp/incomplete-types/length.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/length.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/length.cpp (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/length.cpp (removed)
@@ -1,8 +0,0 @@
-
-#include "length.h"
-
-int
-length (A &a)
-{
-  return a.length();
-}

Removed: lldb/trunk/test/lang/cpp/incomplete-types/length.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/length.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/length.h (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/length.h (removed)
@@ -1,8 +0,0 @@
-#ifndef __LENGTH_H__
-#define __LENGTH_H__
-
-#include "a.h"
-
-int length (A &a);
-
-#endif

Removed: lldb/trunk/test/lang/cpp/incomplete-types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/incomplete-types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/incomplete-types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/incomplete-types/main.cpp (removed)
@@ -1,18 +0,0 @@
-
-#include "length.h"
-
-class Foo {
-public:
-    A a;
-};
-
-class MyA : public A {
-};
-
-int main()
-{
-    Foo f;
-    MyA a;
-
-    return length(a); // break here
-}

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/Makefile (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES = main.cpp derived.cpp base.cpp
-
-CFLAGS_EXTRAS += $(LIMIT_DEBUG_INFO_FLAGS)
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/TestWithLimitDebugInfo.py (removed)
@@ -1,48 +0,0 @@
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestWithLimitDebugInfo(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @dwarf_test
-    def test_with_dwarf(self):
-        self.buildDwarf()
-
-        cwd = os.getcwd()
-
-        src_file = os.path.join(cwd, "main.cpp")
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "breakpoint file")
-
-        # Get the path of the executable
-        exe_path  = os.path.join(cwd, 'a.out')
-
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        breakpoint = target.BreakpointCreateBySourceRegex("break here", src_file_spec)
-        self.assertTrue(breakpoint.IsValid() and breakpoint.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        process = target.LaunchSimple(None, None, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        thread.StepInto()
-
-        # Get frame for current thread
-        frame = thread.GetSelectedFrame()
-
-        v1 = frame.EvaluateExpression("1")
-        self.assertTrue(v1.IsValid(), "'expr 1' results in a valid SBValue object")
-        self.assertTrue(v1.GetError().Success(), "'expr 1' succeeds without an error.")
-
-        v2 = frame.EvaluateExpression("this")
-        self.assertTrue(v2.IsValid(), "'expr this' results in a valid SBValue object")
-        self.assertTrue(v2.GetError().Success(), "'expr this' succeeds without an error.")

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/base.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/base.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/base.cpp (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/base.cpp (removed)
@@ -1,6 +0,0 @@
-#include "base.h"
-
-void FooNS::bar() {
-    x = 54321;
-}
-

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/base.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/base.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/base.h (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/base.h (removed)
@@ -1,10 +0,0 @@
-class FooNS
-{
-public:
-    virtual void bar();
-    virtual char baz() = 0;
-
-protected:
-    int x;
-};
-

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/derived.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/derived.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/derived.cpp (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/derived.cpp (removed)
@@ -1,6 +0,0 @@
-#include "derived.h"
-
-char Foo::baz() {
-    return (char)(x&0xff);
-}
-

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/derived.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/derived.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/derived.h (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/derived.h (removed)
@@ -1,13 +0,0 @@
-#include "base.h"
-
-class Foo : public FooNS
-{
-public:
-    Foo() {
-        a = 12345;
-    }
-
-    char baz() override;
-    int a;
-};
-

Removed: lldb/trunk/test/lang/cpp/limit-debug-info/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/limit-debug-info/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/limit-debug-info/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/limit-debug-info/main.cpp (removed)
@@ -1,7 +0,0 @@
-#include "derived.h"
-
-int main() {
-    Foo f; // break here
-    f.bar();
-    return f.baz();
-}

Removed: lldb/trunk/test/lang/cpp/namespace/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/Makefile (original)
+++ lldb/trunk/test/lang/cpp/namespace/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/namespace/TestNamespace.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/TestNamespace.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/TestNamespace.py (original)
+++ lldb/trunk/test/lang/cpp/namespace/TestNamespace.py (removed)
@@ -1,111 +0,0 @@
-"""
-Test the printing of anonymous and named namespace variables.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class NamespaceTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers for declarations of namespace variables i and j.
-        self.line_var_i = line_number('main.cpp',
-                '// Find the line number for anonymous namespace variable i.')
-        self.line_var_j = line_number('main.cpp',
-                '// Find the line number for named namespace variable j.')
-        # And the line number to break at.
-        self.line_break = line_number('main.cpp',
-                '// Set break point at this line.')
-
-    # rdar://problem/8668674
-    @expectedFailureWindows("llvm.org/pr24764")
-    def test_with_run_command(self):
-        """Test that anonymous and named namespace variables display correctly."""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line_break, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # On Mac OS X, gcc 4.2 emits the wrong debug info with respect to types.
-        slist = ['(int) a = 12', 'anon_uint', 'a_uint', 'b_uint', 'y_uint']
-        if self.platformIsDarwin() and self.getCompiler() in ['clang', 'llvm-gcc']:
-            slist = ['(int) a = 12',
-                     '::my_uint_t', 'anon_uint = 0',
-                     '(A::uint_t) a_uint = 1',
-                     '(A::B::uint_t) b_uint = 2',
-                     '(Y::uint_t) y_uint = 3']
-
-        # 'frame variable' displays the local variables with type information.
-        self.expect('frame variable', VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = slist)
-
-        # 'frame variable' with basename 'i' should work.
-        self.expect("frame variable --show-declaration --show-globals i",
-            startstr = "main.cpp:%d: (int) (anonymous namespace)::i = 3" % self.line_var_i)
-        # main.cpp:12: (int) (anonymous namespace)::i = 3
-
-        # 'frame variable' with basename 'j' should work, too.
-        self.expect("frame variable --show-declaration --show-globals j",
-            startstr = "main.cpp:%d: (int) A::B::j = 4" % self.line_var_j)
-        # main.cpp:19: (int) A::B::j = 4
-
-        # 'frame variable' should support address-of operator.
-        self.runCmd("frame variable &i")
-
-        # 'frame variable' with fully qualified name 'A::B::j' should work.
-        self.expect("frame variable A::B::j", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(int) A::B::j = 4',
-            patterns = [' = 4'])
-
-        # So should the anonymous namespace case.
-        self.expect("frame variable '(anonymous namespace)::i'", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = '(int) (anonymous namespace)::i = 3',
-            patterns = [' = 3'])
-
-        # rdar://problem/8660275
-        # test/namespace: 'expression -- i+j' not working
-        # This has been fixed.
-        self.expect("expression -- i + j",
-            startstr = "(int) $0 = 7")
-        # (int) $0 = 7
-
-        self.runCmd("expression -- i")
-        self.runCmd("expression -- j")
-
-        # rdar://problem/8668674
-        # expression command with fully qualified namespace for a variable does not work
-        self.expect("expression -- ::i", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = [' = 3'])
-        self.expect("expression -- A::B::j", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = [' = 4'])
-
-        # expression command with function in anonymous namespace
-        self.expect("expression -- myanonfunc(3)",
-            patterns = [' = 6'])
-
-        # global namespace qualification with function in anonymous namespace
-        self.expect("expression -- ::myanonfunc(4)",
-            patterns = [' = 8'])
-
-        self.expect("p myanonfunc",
-            patterns = ['\(anonymous namespace\)::myanonfunc\(int\)'])
-
-        self.expect("p variadic_sum",
-            patterns = ['\(anonymous namespace\)::variadic_sum\(int, ...\)'])

Removed: lldb/trunk/test/lang/cpp/namespace/cmds.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/cmds.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/cmds.txt (original)
+++ lldb/trunk/test/lang/cpp/namespace/cmds.txt (removed)
@@ -1,3 +0,0 @@
-b main.cpp:54
-c
-var

Removed: lldb/trunk/test/lang/cpp/namespace/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/namespace/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/namespace/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/namespace/main.cpp (removed)
@@ -1,95 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <cstdarg>
-
-namespace {
-    typedef unsigned int my_uint_t;
-    int i; // Find the line number for anonymous namespace variable i.
-
-    int myanonfunc (int a)
-    {
-        return a + a;
-    }
-
-    int
-    variadic_sum (int arg_count...)
-    {
-        int sum = 0;
-        va_list args;
-        va_start(args, arg_count);
-
-        for (int i = 0; i < arg_count; i++)
-            sum += va_arg(args, int);
-
-        va_end(args);
-        return sum;
-    }
-}
-
-namespace A {
-    typedef unsigned int uint_t;
-    namespace B {
-        typedef unsigned int uint_t;
-        int j; // Find the line number for named namespace variable j.
-        int myfunc (int a);
-        int myfunc2(int a)
-        {
-             return a + 2;
-        }
-        float myfunc (float f)
-        {
-            return f - 2.0;
-        }
-    }
-}
-
-namespace Y
-{
-    typedef unsigned int uint_t;
-    using A::B::j;
-    int foo;
-}
-
-using A::B::j;          // using declaration
-
-namespace Foo = A::B;   // namespace alias
-
-using Foo::myfunc;      // using declaration
-
-using namespace Foo;    // using directive
-
-namespace A {
-    namespace B {
-        using namespace Y;
-        int k;
-    }
-}
-
-#include <stdio.h>
-int Foo::myfunc(int a)
-{
-    ::my_uint_t anon_uint = 0;
-    A::uint_t a_uint = 1;
-    B::uint_t b_uint = 2;
-    Y::uint_t y_uint = 3;
-    i = 3;
-    j = 4;
-    printf("::i=%d\n", ::i);
-    printf("A::B::j=%d\n", A::B::j);
-    printf("variadic_sum=%d\n", variadic_sum(3, 1, 2, 3));
-    myanonfunc(3);
-    return myfunc2(3) + j + i + a + 2 + anon_uint + a_uint + b_uint + y_uint; // Set break point at this line.
-}
-
-int
-main (int argc, char const *argv[])
-{
-    return Foo::myfunc(12);
-}

Removed: lldb/trunk/test/lang/cpp/nsimport/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/nsimport/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/nsimport/Makefile (original)
+++ lldb/trunk/test/lang/cpp/nsimport/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py (original)
+++ lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py (removed)
@@ -1,100 +0,0 @@
-"""
-Tests imported namespaces in C++.
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestCppNsImport(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureGcc(None, ['>=', '4.9'])
-    def test_with_run_command(self):
-        """Tests imported namespaces in C++."""
-        self.build()
-
-        # Get main source file
-        src_file = "main.cpp"
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "Main source file")
-
-        # Get the path of the executable
-        cwd = os.getcwd()
-        exe_file = "a.out"
-        exe_path  = os.path.join(cwd, exe_file)
-
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        break_0 = target.BreakpointCreateBySourceRegex("// break 0", src_file_spec)
-        self.assertTrue(break_0.IsValid() and break_0.GetNumLocations() >= 1, VALID_BREAKPOINT)
-        break_1 = target.BreakpointCreateBySourceRegex("// break 1", src_file_spec)
-        self.assertTrue(break_1.IsValid() and break_1.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        args = None
-        env = None
-        process = target.LaunchSimple(args, env, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Get current fream of the thread at the breakpoint
-        frame = thread.GetSelectedFrame()
-
-        # Test imported namespaces
-        test_result = frame.EvaluateExpression("n")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 1, "n = 1")
-
-        test_result = frame.EvaluateExpression("N::n")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 1, "N::n = 1")
-
-        test_result = frame.EvaluateExpression("nested")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 3, "nested = 3")
-
-        test_result = frame.EvaluateExpression("anon")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 2, "anon = 2")
-
-        test_result = frame.EvaluateExpression("global")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 4, "global = 4")
-
-        test_result = frame.EvaluateExpression("fun_var")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 9, "fun_var = 9")
-
-        test_result = frame.EvaluateExpression("Fun::fun_var")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 0, "Fun::fun_var = 0")
-
-        test_result = frame.EvaluateExpression("not_imported")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 35, "not_imported = 35")
-
-        # Currently there is no way to distinguish between "::imported" and "imported" in ClangExpressionDeclMap so this fails
-        #test_result = frame.EvaluateExpression("::imported")
-        #self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 89, "::imported = 89")
-
-        test_result = frame.EvaluateExpression("Imported::imported")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 99, "Imported::imported = 99")
-        
-        test_result = frame.EvaluateExpression("imported")
-        self.assertTrue(test_result.IsValid() and test_result.GetError().Fail(), "imported is ambiguous")
-
-        test_result = frame.EvaluateExpression("single")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 3, "single = 3")
-
-        # Continue to second breakpoint
-        process.Continue()
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Get current fream of the thread at the breakpoint
-        frame = thread.GetSelectedFrame()
-
-        # Test function inside namespace
-        test_result = frame.EvaluateExpression("fun_var")
-        self.assertTrue(test_result.IsValid() and test_result.GetValueAsSigned() == 5, "fun_var = 5")

Removed: lldb/trunk/test/lang/cpp/nsimport/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/nsimport/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/nsimport/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/nsimport/main.cpp (removed)
@@ -1,72 +0,0 @@
-namespace N
-{
-    int n;
-}
-
-namespace
-{
-    int anon;
-}
-
-namespace Nested
-{
-    namespace
-    {
-        int nested;
-    }
-}
-
-namespace Global
-{
-    int global;
-}
-
-namespace Fun
-{
-    int fun_var;
-    int fun()
-    {
-        fun_var = 5;
-        return 0; // break 1
-    }
-}
-
-namespace Single
-{
-    int single = 3;
-}
-
-namespace NotImportedBefore
-{
-    int not_imported = 45;
-}
-
-using namespace Global;
-
-int not_imported = 35;
-int fun_var = 9;
-
-namespace NotImportedAfter
-{
-    int not_imported = 55;
-}
-
-namespace Imported
-{
-    int imported = 99;
-}
-
-int imported = 89;
-
-int main()
-{
-    using namespace N;
-    using namespace Nested;
-    using namespace Imported;
-    using Single::single;
-    n = 1;
-    anon = 2;
-    nested = 3;
-    global = 4;
-    return Fun::fun(); // break 0
-}

Removed: lldb/trunk/test/lang/cpp/overloaded-functions/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/overloaded-functions/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/overloaded-functions/Makefile (original)
+++ lldb/trunk/test/lang/cpp/overloaded-functions/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp static-a.cpp static-b.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py (original)
+++ lldb/trunk/test/lang/cpp/overloaded-functions/TestOverloadedFunctions.py (removed)
@@ -1,36 +0,0 @@
-"""
-Tests that functions with the same name are resolved correctly.
-"""
-
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPStaticMethodsTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def setUp(self):
-        TestBase.setUp(self)
-        self.line = line_number('main.cpp', '// breakpoint')
-
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_with_run_command(self):
-        """Test that functions with the same name are resolved correctly"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list",
-                    STOPPED_DUE_TO_BREAKPOINT,
-                    substrs = ['stopped', 'stop reason = breakpoint'])
-
-        self.expect("expression -- Dump(myB)",
-                    startstr = "(int) $0 = 2")
-
-        self.expect("expression -- Static()",
-                    startstr = "(int) $1 = 1")

Removed: lldb/trunk/test/lang/cpp/overloaded-functions/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/overloaded-functions/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/overloaded-functions/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/overloaded-functions/main.cpp (removed)
@@ -1,43 +0,0 @@
-#include <stdio.h>
-
-struct A {
-    int aa;
-    char ab;
-};
-
-struct B {
-    int ba;
-    int bb;
-};
-
-struct C {
-    int ca;
-    int cb;
-};
-
-int Dump (A &a)
-{
-    return 1;
-}
-
-int Dump (B &b)
-{
-    return 2;
-}
-
-int Dump (C &c)
-{
-    return 3;
-}
-
-extern int CallStaticA();
-extern int CallStaticB();
-
-int main()
-{
-    A myA;
-    B myB;
-    C myC;
-
-    printf("%d\n", CallStaticA() + CallStaticB()); // breakpoint
-}

Removed: lldb/trunk/test/lang/cpp/overloaded-functions/static-a.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/overloaded-functions/static-a.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/overloaded-functions/static-a.cpp (original)
+++ lldb/trunk/test/lang/cpp/overloaded-functions/static-a.cpp (removed)
@@ -1,9 +0,0 @@
-static int Static()
-{
-  return 1;
-}
-
-int CallStaticA()
-{
-  return Static();
-}

Removed: lldb/trunk/test/lang/cpp/overloaded-functions/static-b.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/overloaded-functions/static-b.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/overloaded-functions/static-b.cpp (original)
+++ lldb/trunk/test/lang/cpp/overloaded-functions/static-b.cpp (removed)
@@ -1,9 +0,0 @@
-static int Static()
-{
-  return 1;
-}
-
-int CallStaticB()
-{
-  return Static();
-}

Removed: lldb/trunk/test/lang/cpp/rdar12991846/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rdar12991846/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rdar12991846/Makefile (original)
+++ lldb/trunk/test/lang/cpp/rdar12991846/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-CFLAGS := -g -O0 -std=c++11
-
-clean: OBJECTS+=$(wildcard main.d.*)
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py (original)
+++ lldb/trunk/test/lang/cpp/rdar12991846/TestRdar12991846.py (removed)
@@ -1,85 +0,0 @@
-# coding=utf8
-"""
-Test that the expression parser returns proper Unicode strings.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-# this test case fails because of rdar://12991846
-# the expression parser does not deal correctly with Unicode expressions
-# e.g.
-#(lldb) expr L"Hello"
-#(const wchar_t [6]) $0 = {
-#  [0] = \0\0\0\0
-#  [1] = \0\0\0\0
-#  [2] = \0\0\0\0
-#  [3] = \0\0\0\0
-#  [4] = H\0\0\0
-#  [5] = e\0\0\0
-#}
-
-class Rdar12991846TestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @unittest2.expectedFailure("rdar://18684408")
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_expr1(self):
-        """Test that the expression parser returns proper Unicode strings."""
-        self.build()
-        self.rdar12991846(expr=1)
-
-    @unittest2.expectedFailure("rdar://18684408")
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_expr2(self):
-        """Test that the expression parser returns proper Unicode strings."""
-        self.build()
-        self.rdar12991846(expr=2)
-
-    @unittest2.expectedFailure("rdar://18684408")
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_expr3(self):
-        """Test that the expression parser returns proper Unicode strings."""
-        self.build()
-        self.rdar12991846(expr=3)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.source = 'main.cpp'
-        self.line = line_number(self.source, '// Set break point at this line.')
-
-    def rdar12991846(self, expr=None):
-        """Test that the expression parser returns proper Unicode strings."""
-        if self.getArchitecture() in ['i386']:
-            self.skipTest("Skipping because this test is known to crash on i386")
-
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Break on the struct declration statement in main.cpp.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        if expr == 1: self.expect('expression L"hello"', substrs = ['hello'])
-
-        if expr == 2: self.expect('expression u"hello"', substrs = ['hello'])
-
-        if expr == 3: self.expect('expression U"hello"', substrs = ['hello'])

Removed: lldb/trunk/test/lang/cpp/rdar12991846/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rdar12991846/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rdar12991846/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/rdar12991846/main.cpp (removed)
@@ -1,21 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-
-int main (int argc, char const *argv[])
-{
-    auto cs16 = u"hello world ྒྙྐ";
-	auto cs32 = U"hello world ྒྙྐ";
-    char16_t *s16 = (char16_t *)u"ﺸﺵۻ";
-    char32_t *s32 = (char32_t *)U"ЕЙРГЖО";
-    s32 = nullptr; // Set break point at this line.
-    s32 = (char32_t *)U"à·´";
-    s16 = (char16_t *)u"色ハ匂ヘト散リヌルヲ";
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/rvalue-references/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rvalue-references/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rvalue-references/Makefile (original)
+++ lldb/trunk/test/lang/cpp/rvalue-references/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-CXXFLAGS += -std=c++11
-
-include $(LEVEL)/Makefile.rules
\ No newline at end of file

Removed: lldb/trunk/test/lang/cpp/rvalue-references/TestRvalueReferences.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rvalue-references/TestRvalueReferences.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rvalue-references/TestRvalueReferences.py (original)
+++ lldb/trunk/test/lang/cpp/rvalue-references/TestRvalueReferences.py (removed)
@@ -1,49 +0,0 @@
-"""
-Tests that rvalue references are supported in C++
-"""
-
-import lldb
-from lldbtest import *
-import lldbutil
-
-class RvalueReferencesTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    #rdar://problem/11479676
-    @expectedFailureIcc("ICC (13.1, 14-beta) do not emit DW_TAG_rvalue_reference_type.")
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    def test_with_run_command(self):
-        """Test that rvalues are supported in the C++ expression parser"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 1'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 2'))
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        # Note that clang as of r187480 doesn't emit DW_TAG_const_type, unlike gcc 4.8.1
-        # With gcc 4.8.1, lldb reports the type as (int &&const)
-        self.expect("frame variable i",
-                    startstr = "(int &&",
-                    substrs = ["i = 0x", "&i = 3"])
-
-        self.expect("expression -- i",
-                    startstr = "(int) ",
-                    substrs = ["3"])
-
-        self.expect("breakpoint delete 1")
-
-        self.runCmd("process continue")
-        
-        self.expect("expression -- foo(2)")
-
-        self.expect("expression -- int &&j = 3; foo(j)",
-                    error = True)
-
-        self.expect("expression -- int &&k = 6; k",
-                    startstr = "(int) $1 = 6")
-
-    def set_breakpoint(self, line):
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line, num_expected_locations=1, loc_exact=True)

Removed: lldb/trunk/test/lang/cpp/rvalue-references/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/rvalue-references/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/rvalue-references/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/rvalue-references/main.cpp (removed)
@@ -1,12 +0,0 @@
-#include <stdio.h>
-
-void foo (int &&i)
-{
-  printf("%d\n", i); // breakpoint 1
-}
-
-int main()
-{
-  foo(3);
-  return 0; // breakpoint 2
-}

Removed: lldb/trunk/test/lang/cpp/scope/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/scope/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/scope/Makefile (original)
+++ lldb/trunk/test/lang/cpp/scope/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/scope/TestCppScope.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/scope/TestCppScope.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/scope/TestCppScope.py (original)
+++ lldb/trunk/test/lang/cpp/scope/TestCppScope.py (removed)
@@ -1,67 +0,0 @@
-"""
-Test scopes in C++.
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestCppScopes(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @expectedFailureDarwin
-    @expectedFailureWindows("llvm.org/pr24764")
-    def test_with_run_command(self):
-        self.build()
-
-        # Get main source file
-        src_file = "main.cpp"
-        src_file_spec = lldb.SBFileSpec(src_file)
-        self.assertTrue(src_file_spec.IsValid(), "Main source file")
-
-        # Get the path of the executable
-        cwd = os.getcwd()
-        exe_file = "a.out"
-        exe_path  = os.path.join(cwd, exe_file)
-
-        # Load the executable
-        target = self.dbg.CreateTarget(exe_path)
-        self.assertTrue(target.IsValid(), VALID_TARGET)
-
-        # Break on main function
-        main_breakpoint = target.BreakpointCreateBySourceRegex("// break here", src_file_spec)
-        self.assertTrue(main_breakpoint.IsValid() and main_breakpoint.GetNumLocations() >= 1, VALID_BREAKPOINT)
-
-        # Launch the process
-        args = None
-        env = None
-        process = target.LaunchSimple(args, env, self.get_process_working_directory())
-        self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
-
-        # Get the thread of the process
-        self.assertTrue(process.GetState() == lldb.eStateStopped, PROCESS_STOPPED)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-
-        # Get current fream of the thread at the breakpoint
-        frame = thread.GetSelectedFrame()
-
-        # Test result for scopes of variables
-
-        global_variables = frame.GetVariables(True, True, True, False)
-        global_variables_assert = {
-            'A::a': 1111,
-            'B::a': 2222,
-            'C::a': 3333,
-            '::a': 4444,
-            'a': 4444
-        }
-
-        self.assertTrue(global_variables.GetSize() == 4, "target variable returns all variables")
-        for variable in global_variables:
-            name = variable.GetName()
-            self.assertTrue(name in global_variables_assert, "target variable returns wrong variable " + name)
-
-        for name in global_variables_assert:
-            value = frame.EvaluateExpression(name)
-            assert_value = global_variables_assert[name]
-            self.assertTrue(value.IsValid() and value.GetValueAsSigned() == assert_value, name + " = " + str(assert_value))

Removed: lldb/trunk/test/lang/cpp/scope/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/scope/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/scope/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/scope/main.cpp (removed)
@@ -1,25 +0,0 @@
-class A {
-public:
-    static int a;
-    int b;
-};
-
-class B {
-public:
-    static int a;
-    int b;
-};
-
-struct C {
-    static int a;
-};
-
-int A::a = 1111;
-int B::a = 2222;
-int C::a = 3333;
-int a = 4444;
-
-int main() // break here
-{
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/signed_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/signed_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/signed_types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/signed_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py (original)
+++ lldb/trunk/test/lang/cpp/signed_types/TestSignedTypes.py (removed)
@@ -1,60 +0,0 @@
-"""
-Test that variables with signed types display correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-class UnsignedTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.cpp'
-        self.line = line_number(self.source, '// Set break point at this line.')
-
-    def test(self):
-        """Test that variables with signed types display correctly."""
-        self.build()
-
-        # Run in synchronous mode
-        self.dbg.SetAsync(False)
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        lldbutil.run_break_set_by_file_and_line (self, self.source, self.line, num_expected_locations=1, loc_exact=True)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped', 'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Execute the assignment statement.
-        self.runCmd("thread step-over")
-
-        # Test that signed types display correctly.
-        self.expect("frame variable --show-types --no-args", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = ["\((short int|short)\) the_signed_short = 99",
-                       "\((signed char|char)\) the_signed_char = 'c'"],
-            substrs = ["(int) the_signed_int = 99",
-                       "(long) the_signed_long = 99",
-                       "(long long) the_signed_long_long = 99"])

Removed: lldb/trunk/test/lang/cpp/signed_types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/signed_types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/signed_types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/signed_types/main.cpp (removed)
@@ -1,33 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <stdio.h>
-
-int main (int argc, char const *argv[])
-{
-    char the_char = 'c';
-    short the_short = 'c';
-    wchar_t the_wchar_t = 'c';
-    int the_int = 'c';
-    long the_long = 'c';
-    long long the_long_long = 'c';
-
-    signed char the_signed_char = 'c';
-    signed short the_signed_short = 'c';
-    signed int the_signed_int = 'c';
-    signed long the_signed_long = 'c';
-    signed long long the_signed_long_long = 'c';
-    puts("");    // Set break point at this line.
-    return  the_char        - the_signed_char +
-            the_short       - the_signed_short +
-            the_int         - the_signed_int +
-            the_long        - the_signed_long +
-            the_long_long   - the_signed_long_long; //// break $source:$line; c
-    //// var the_int
-    //// val -set 22 1
-}

Removed: lldb/trunk/test/lang/cpp/static_members/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_members/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_members/Makefile (original)
+++ lldb/trunk/test/lang/cpp/static_members/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py (original)
+++ lldb/trunk/test/lang/cpp/static_members/TestCPPStaticMembers.py (removed)
@@ -1,59 +0,0 @@
-"""
-Tests that C++ member and static variables have correct layout and scope.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPStaticMembersTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    @unittest2.expectedFailure # llvm.org/pr15401
-    @expectedFailureWindows("llvm.org/pr21765")
-    def test_with_run_command(self):
-        """Test that member variables have the correct layout, scope and qualifiers when stopped inside and outside C++ methods"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 1'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 2'))
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-        self.expect("expression my_a.access()",
-                    startstr = "(long) $0 = 10")
-        
-        self.expect("expression my_a.m_a",
-                    startstr = "(short) $1 = 1")
-        
-        # Note: SymbolFileDWARF::ParseChildMembers doesn't call AddFieldToRecordType, consistent with clang's AST layout.
-        self.expect("expression my_a.s_d",
-                    startstr = "(int) $2 = 4")
-        
-        self.expect("expression my_a.s_b",
-                    startstr = "(long) $3 = 2")
-        
-        self.expect("expression A::s_b",
-                    startstr = "(long) $4 = 2")
-
-        # should not be available in global scope 
-        self.expect("expression s_d",
-                    startstr = "error: use of undeclared identifier 's_d'")
-        
-        self.runCmd("process continue")
-        self.expect("expression m_c",
-                    startstr = "(char) $5 = \'\\x03\'")
-        
-        self.expect("expression s_b",
-                    startstr = "(long) $6 = 2")
-
-        self.runCmd("process continue")
-
-    def set_breakpoint(self, line):
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line, num_expected_locations=1, loc_exact=False)

Removed: lldb/trunk/test/lang/cpp/static_members/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_members/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_members/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/static_members/main.cpp (removed)
@@ -1,36 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <stdio.h>
-
-struct A
-{
-    short m_a;
-    static long s_b;
-    char m_c;
-    static int s_d;
-
-    long access() {
-        return m_a + s_b + m_c + s_d; // breakpoint 2
-    }
-};
-
-long A::s_b = 2;
-int A::s_d = 4;
-
-int main()
-{
-    A my_a;
-    my_a.m_a = 1;
-    my_a.m_c = 3;
-
-    my_a.access(); // breakpoint 1 
-    return 0;
-}
-

Removed: lldb/trunk/test/lang/cpp/static_methods/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_methods/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_methods/Makefile (original)
+++ lldb/trunk/test/lang/cpp/static_methods/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/static_methods/TestCPPStaticMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_methods/TestCPPStaticMethods.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_methods/TestCPPStaticMethods.py (original)
+++ lldb/trunk/test/lang/cpp/static_methods/TestCPPStaticMethods.py (removed)
@@ -1,36 +0,0 @@
-"""
-Tests expressions that distinguish between static and non-static methods.
-"""
-
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPStaticMethodsTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def setUp(self):
-        TestBase.setUp(self)
-        self.line = line_number('main.cpp', '// Break at this line')
-
-    @expectedFailureWindows
-    def test_with_run_command(self):
-        """Test that static methods are properly distinguished from regular methods"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list",
-                    STOPPED_DUE_TO_BREAKPOINT,
-                    substrs = ['stopped', 'stop reason = breakpoint'])
-
-        self.expect("expression -- A::getStaticValue()",
-                    startstr = "(int) $0 = 5")
-
-        self.expect("expression -- my_a.getMemberValue()",
-                    startstr = "(int) $1 = 3")

Removed: lldb/trunk/test/lang/cpp/static_methods/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/static_methods/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/static_methods/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/static_methods/main.cpp (removed)
@@ -1,38 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <stdio.h>
-
-class A
-{
-public:
-  static int getStaticValue();
-  int getMemberValue();
-  int a;
-};
-
-int A::getStaticValue()
-{
-  return 5;
-} 
-
-int A::getMemberValue()
-{
-  return a;
-}
-
-int main()
-{
-  A my_a;
-
-  my_a.a = 3;
-
-  printf("%d\n", A::getStaticValue()); // Break at this line
-  printf("%d\n", my_a.getMemberValue());
-}

Removed: lldb/trunk/test/lang/cpp/stl/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/Makefile (original)
+++ lldb/trunk/test/lang/cpp/stl/Makefile (removed)
@@ -1,15 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-CFLAGS := -g -O0
-
-clean: OBJECTS+=$(wildcard main.d.*)
-
-# clang-3.5+ outputs FullDebugInfo by default for Darwin/FreeBSD 
-# targets.  Other targets do not, which causes this test to fail.
-# This flag enables FullDebugInfo for all targets.
-ifneq (,$(findstring clang,$(CC)))
-  CFLAGS_EXTRAS += -fno-limit-debug-info
-endif
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/stl/TestSTL.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/TestSTL.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/TestSTL.py (original)
+++ lldb/trunk/test/lang/cpp/stl/TestSTL.py (removed)
@@ -1,118 +0,0 @@
-"""
-Test some expressions involving STL data types.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class STLTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.cpp'
-        self.line = line_number(self.source, '// Set break point at this line.')
-
-    # rdar://problem/10400981
-    @unittest2.expectedFailure
-    def test(self):
-        """Test some expressions involving STL data types."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # The following two lines, if uncommented, will enable loggings.
-        #self.ci.HandleCommand("log enable -f /tmp/lldb.log lldb default", res)
-        #self.assertTrue(res.Succeeded())
-
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # rdar://problem/8543077
-        # test/stl: clang built binaries results in the breakpoint locations = 3,
-        # is this a problem with clang generated debug info?
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Stop at 'std::string hello_world ("Hello World!");'.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['main.cpp:%d' % self.line,
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Now try some expressions....
-
-        self.runCmd('expr for (int i = 0; i < hello_world.length(); ++i) { (void)printf("%c\\n", hello_world[i]); }')
-
-        # rdar://problem/10373783
-        # rdar://problem/10400981
-        self.expect('expr associative_array.size()',
-            substrs = [' = 3'])
-        self.expect('expr associative_array.count(hello_world)',
-            substrs = [' = 1'])
-        self.expect('expr associative_array[hello_world]',
-            substrs = [' = 1'])
-        self.expect('expr associative_array["hello"]',
-            substrs = [' = 2'])
-
-    @expectedFailureIcc # icc 13.1 and 14-beta do not emit DW_TAG_template_type_parameter
-    @add_test_categories(['pyapi'])
-    def test_SBType_template_aspects(self):
-        """Test APIs for getting template arguments from an SBType."""
-        self.build()
-        exe = os.path.join(os.getcwd(), 'a.out')
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Create the breakpoint inside function 'main'.
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # Get Frame #0.
-        self.assertTrue(process.GetState() == lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
-        frame0 = thread.GetFrameAtIndex(0)
-
-        # Get the type for variable 'associative_array'.
-        associative_array = frame0.FindVariable('associative_array')
-        self.DebugSBValue(associative_array)
-        self.assertTrue(associative_array, VALID_VARIABLE)
-        map_type = associative_array.GetType()
-        self.DebugSBType(map_type)
-        self.assertTrue(map_type, VALID_TYPE)
-        num_template_args = map_type.GetNumberOfTemplateArguments()
-        self.assertTrue(num_template_args > 0)
-
-        # We expect the template arguments to contain at least 'string' and 'int'.
-        expected_types = { 'string': False, 'int': False }
-        for i in range(num_template_args):
-            t = map_type.GetTemplateArgumentType(i)
-            self.DebugSBType(t)
-            self.assertTrue(t, VALID_TYPE)
-            name = t.GetName()
-            if 'string' in name:
-                expected_types['string'] = True
-            elif 'int' == name:
-                expected_types['int'] = True
-
-        # Check that both entries of the dictionary have 'True' as the value.
-        self.assertTrue(all(expected_types.values()))

Removed: lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py (original)
+++ lldb/trunk/test/lang/cpp/stl/TestStdCXXDisassembly.py (removed)
@@ -1,110 +0,0 @@
-"""
-Test the lldb disassemble command on lib stdc++.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class StdCXXDisassembleTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    # rdar://problem/8504895
-    # Crash while doing 'disassemble -n "-[NSNumber descriptionWithLocale:]"
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_stdcxx_disasm(self):
-        """Do 'disassemble' on each and every 'Code' symbol entry from the std c++ lib."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # rdar://problem/8543077
-        # test/stl: clang built binaries results in the breakpoint locations = 3,
-        # is this a problem with clang generated debug info?
-        #
-        # Break on line 13 of main.cpp.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Now let's get the target as well as the process objects.
-        target = self.dbg.GetSelectedTarget()
-        process = target.GetProcess()
-
-        # The process should be in a 'stopped' state.
-        self.expect(str(process), STOPPED_DUE_TO_BREAKPOINT, exe=False,
-            substrs = ["a.out",
-                       "stopped"])
-
-        # Disassemble the functions on the call stack.
-        self.runCmd("thread backtrace")
-        thread = process.GetThreadAtIndex(0)
-        depth = thread.GetNumFrames()
-        for i in range(depth - 1):
-            frame = thread.GetFrameAtIndex(i)
-            function = frame.GetFunction()
-            self.runCmd("disassemble -n '%s'" % function.GetName())
-
-        lib_stdcxx = "FAILHORRIBLYHERE"
-        # Iterate through the available modules, looking for stdc++ library...
-        for i in range(target.GetNumModules()):
-            module = target.GetModuleAtIndex(i)
-            fs = module.GetFileSpec()
-            if (fs.GetFilename().startswith("libstdc++") or fs.GetFilename().startswith("libc++")):
-                lib_stdcxx = str(fs)
-                break
-
-        # At this point, lib_stdcxx is the full path to the stdc++ library and
-        # module is the corresponding SBModule.
-
-        self.expect(lib_stdcxx, "Libraray StdC++ is located", exe=False,
-            substrs = ["lib"])
-
-        self.runCmd("image dump symtab '%s'" % lib_stdcxx)
-        raw_output = self.res.GetOutput()
-        # Now, look for every 'Code' symbol and feed its load address into the
-        # command: 'disassemble -s load_address -e end_address', where the
-        # end_address is taken from the next consecutive 'Code' symbol entry's
-        # load address.
-        #
-        # The load address column comes after the file address column, with both
-        # looks like '0xhhhhhhhh', i.e., 8 hexadecimal digits.
-        codeRE = re.compile(r"""
-                             \ Code\ {9}      # ' Code' followed by 9 SPCs,
-                             0x[0-9a-f]{16}   # the file address column, and
-                             \                # a SPC, and
-                             (0x[0-9a-f]{16}) # the load address column, and
-                             .*               # the rest.
-                             """, re.VERBOSE)
-        # Maintain a start address variable; if we arrive at a consecutive Code
-        # entry, then the load address of the that entry is fed as the end
-        # address to the 'disassemble -s SA -e LA' command.
-        SA = None
-        for line in raw_output.split(os.linesep):
-            match = codeRE.search(line)
-            if match:
-                LA = match.group(1)
-                if self.TraceOn():
-                    print("line:", line)
-                    print("load address:", LA)
-                    print("SA:", SA)
-                if SA and LA:
-                    if int(LA, 16) > int(SA, 16):
-                        self.runCmd("disassemble -s %s -e %s" % (SA, LA))
-                SA = LA
-            else:
-                # This entry is not a Code entry.  Reset SA = None.
-                SA = None

Removed: lldb/trunk/test/lang/cpp/stl/cmds.txt
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/cmds.txt?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/cmds.txt (original)
+++ lldb/trunk/test/lang/cpp/stl/cmds.txt (removed)
@@ -1,3 +0,0 @@
-b main.cpp:6
-continue
-var

Removed: lldb/trunk/test/lang/cpp/stl/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/stl/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/stl/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/stl/main.cpp (removed)
@@ -1,30 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <cstdio>
-#include <iostream>
-#include <string>
-#include <map>
-int main (int argc, char const *argv[])
-{
-    std::string hello_world ("Hello World!");
-    std::cout << hello_world << std::endl;
-    std::cout << hello_world.length() << std::endl;
-    std::cout << hello_world[11] << std::endl;
-
-    std::map<std::string, int> associative_array;
-    std::cout << "size of upon construction associative_array: " << associative_array.size() << std::endl;
-    associative_array[hello_world] = 1;
-    associative_array["hello"] = 2;
-    associative_array["world"] = 3;
-
-    std::cout << "size of associative_array: " << associative_array.size() << std::endl;
-    printf("associative_array[\"hello\"]=%d\n", associative_array["hello"]);
-
-    printf("before returning....\n"); // Set break point at this line.
-}

Removed: lldb/trunk/test/lang/cpp/this/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/this/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/this/Makefile (original)
+++ lldb/trunk/test/lang/cpp/this/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/this/TestCPPThis.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/this/TestCPPThis.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/this/TestCPPThis.py (original)
+++ lldb/trunk/test/lang/cpp/this/TestCPPThis.py (removed)
@@ -1,53 +0,0 @@
-"""
-Tests that C++ member and static variables are available where they should be.
-"""
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CPPThisTestCase(TestBase):
-    
-    mydir = TestBase.compute_mydir(__file__)
-    
-    #rdar://problem/9962849
-    @expectedFailureGcc # llvm.org/pr15439 The 'this' pointer isn't available during expression evaluation when stopped in an inlined member function.
-    @expectedFailureIcc # ICC doesn't emit correct DWARF inline debug info for inlined member functions
-    @expectedFailureWindows("llvm.org/pr24489: Name lookup not working correctly on Windows")
-    @expectedFailureWindows("llvm.org/pr24490: We shouldn't be using platform-specific names like `getpid` in tests")
-    @expectedFlakeyClang(bugnumber='llvm.org/pr23012', compiler_version=['>=','3.6']) # failed with totclang - clang3.7
-    def test_with_run_command(self):
-        """Test that the appropriate member variables are available when stopped in C++ static, inline, and const methods"""
-        self.build()
-        self.runCmd("file a.out", CURRENT_EXECUTABLE_SET)
-
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 1'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 2'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 3'))
-        self.set_breakpoint(line_number('main.cpp', '// breakpoint 4'))
-
-        self.runCmd("process launch", RUN_SUCCEEDED)
-
-        self.expect("expression -- m_a = 2",
-                    startstr = "(int) $0 = 2")
-        
-        self.runCmd("process continue")
-        
-        # This would be disallowed if we enforced const.  But we don't.
-        self.expect("expression -- m_a = 2",
-                    startstr = "(int) $1 = 2")
-        
-        self.expect("expression -- (int)getpid(); m_a", 
-                    startstr = "(int) $2 = 2")
-
-        self.runCmd("process continue")
-
-        self.expect("expression -- s_a",
-                    startstr = "(int) $3 = 5")
-
-        self.runCmd("process continue")
-
-        self.expect("expression -- m_a",
-                    startstr = "(int) $4 = 2")
-    
-    def set_breakpoint(self, line):
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", line, num_expected_locations=1, loc_exact=False)

Removed: lldb/trunk/test/lang/cpp/this/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/this/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/this/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/this/main.cpp (removed)
@@ -1,53 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <stdio.h>
-
-template <class T> class A
-{
-public:
-  void accessMember(T a);
-  T accessMemberConst() const;
-  static int accessStaticMember();
-
-  void accessMemberInline(T a) __attribute__ ((always_inline))
-  {
-    m_a = a; // breakpoint 4
-  }
-
-  T m_a;
-  static int s_a;
-};
-
-template <class T> int A<T>::s_a = 5;
-
-template <class T> void A<T>::accessMember(T a)
-{
-  m_a = a; // breakpoint 1
-}
-
-template <class T> T A<T>::accessMemberConst() const
-{
-  return m_a; // breakpoint 2
-}
-
-template <class T> int A<T>::accessStaticMember()
-{
-  return s_a; // breakpoint 3
-} 
-
-int main()
-{
-  A<int> my_a;
-
-  my_a.accessMember(3);
-  my_a.accessMemberConst();
-  A<int>::accessStaticMember();
-  my_a.accessMemberInline(5);
-}

Removed: lldb/trunk/test/lang/cpp/unique-types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unique-types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unique-types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/unique-types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py (original)
+++ lldb/trunk/test/lang/cpp/unique-types/TestUniqueTypes.py (removed)
@@ -1,62 +0,0 @@
-"""
-Test that template instaniations of std::vector<long> and <short> in the same module have the correct types.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import lldb
-import lldbutil
-from lldbtest import *
-
-class UniqueTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number inside main.cpp.
-        self.line = line_number("main.cpp",
-          "// Set breakpoint here to verify that std::vector 'longs' and 'shorts' have unique types.")
-
-    def test(self):
-        """Test for unique types of std::vector<long> and std::vector<short>."""
-        self.build()
-
-        compiler = self.getCompiler()
-        compiler_basename = os.path.basename(compiler)
-        if "clang" in compiler_basename and int(self.getCompilerVersion().split('.')[0]) < 3:
-            self.skipTest("rdar://problem/9173060 lldb hangs while running unique-types for clang version < 3")
-
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # Do a "frame variable --show-types longs" and verify "long" is in each line of output.
-        self.runCmd("frame variable --show-types longs")
-        output = self.res.GetOutput()
-        for x in [line.strip() for line in output.split(os.linesep)]:
-            # Skip empty line, closing brace, and messages about more variables than can be displayed.
-            if not x or x == '}' or x == '...' or "Some of your variables have more members than the debugger will show by default" in x:
-                continue
-            self.expect(x, "Expect type 'long'", exe=False,
-                substrs = ['long'])
-
-        # Do a "frame variable --show-types shorts" and verify "short" is in each line of output.
-        self.runCmd("frame variable --show-types shorts")
-        output = self.res.GetOutput()
-        for x in [line.strip() for line in output.split(os.linesep)]:
-            # Skip empty line, closing brace, and messages about more variables than can be displayed.
-            if not x or x == '}' or x == '...' or "Some of your variables have more members than the debugger will show by default" in x:
-                continue
-            self.expect(x, "Expect type 'short'", exe=False,
-                substrs = ['short'])

Removed: lldb/trunk/test/lang/cpp/unique-types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unique-types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unique-types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/unique-types/main.cpp (removed)
@@ -1,24 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-#include <vector>
-
-#include <stdio.h>
-#include <stdint.h>
-
-int main (int argc, char const *argv[], char const *envp[])
-{
-    std::vector<long> longs;
-    std::vector<short> shorts;  
-    for (int i=0; i<12; i++)
-    {
-        longs.push_back(i);
-        shorts.push_back(i);
-    }
-    return 0; // Set breakpoint here to verify that std::vector 'longs' and 'shorts' have unique types.
-}

Removed: lldb/trunk/test/lang/cpp/unsigned_types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unsigned_types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unsigned_types/Makefile (original)
+++ lldb/trunk/test/lang/cpp/unsigned_types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py (original)
+++ lldb/trunk/test/lang/cpp/unsigned_types/TestUnsignedTypes.py (removed)
@@ -1,54 +0,0 @@
-"""
-Test that variables with unsigned types display correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-class UnsignedTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.cpp', '// Set break point at this line.')
-
-    def test(self):
-        """Test that variables with unsigned types display correctly."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # GCC puts a breakpoint on the last line of a multi-line expression, so
-        # if GCC is the target compiler, we cannot rely on an exact line match.
-        need_exact = "gcc" not in self.getCompiler()
-        # Break on line 19 in main() aftre the variables are assigned values.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line, num_expected_locations=-1, loc_exact=need_exact)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped', 'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # Test that unsigned types display correctly.
-        self.expect("frame variable --show-types --no-args", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(unsigned char) the_unsigned_char = 'c'",
-            patterns = ["\((short unsigned int|unsigned short)\) the_unsigned_short = 99"],
-            substrs = ["(unsigned int) the_unsigned_int = 99",
-                       "(unsigned long) the_unsigned_long = 99",
-                       "(unsigned long long) the_unsigned_long_long = 99",
-                       "(uint32_t) the_uint32 = 99"])

Removed: lldb/trunk/test/lang/cpp/unsigned_types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/unsigned_types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/unsigned_types/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/unsigned_types/main.cpp (removed)
@@ -1,22 +0,0 @@
-//===-- main.cpp ------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-int main (int argc, char const *argv[])
-{
-    typedef unsigned int uint32_t;
-    unsigned char the_unsigned_char = 'c';
-    unsigned short the_unsigned_short = 'c';
-    unsigned int the_unsigned_int = 'c';
-    unsigned long the_unsigned_long = 'c';
-    unsigned long long the_unsigned_long_long = 'c';
-    uint32_t the_uint32 = 'c';
-
-    return  the_unsigned_char - the_unsigned_short + // Set break point at this line.
-            the_unsigned_int - the_unsigned_long +
-            the_unsigned_long_long - the_uint32;
-}

Removed: lldb/trunk/test/lang/cpp/virtual/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/virtual/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/virtual/Makefile (original)
+++ lldb/trunk/test/lang/cpp/virtual/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/virtual/TestVirtual.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/virtual/TestVirtual.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/virtual/TestVirtual.py (original)
+++ lldb/trunk/test/lang/cpp/virtual/TestVirtual.py (removed)
@@ -1,87 +0,0 @@
-"""
-Test C++ virtual function and virtual inheritance.
-"""
-
-from __future__ import print_function
-
-import os, time
-import re
-import lldb
-from lldbtest import *
-import lldbutil
-
-def Msg(expr, val):
-    return "'expression %s' matches the output (from compiled code): %s" % (expr, val)
-
-class CppVirtualMadness(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    # This is the pattern by design to match the "my_expr = 'value'" output from
-    # printf() stmts (see main.cpp).
-    pattern = re.compile("^([^=]*) = '([^=]*)'$")
-
-    # Assert message.
-    PRINTF_OUTPUT_GROKKED = "The printf output from compiled code is parsed correctly"
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.source = 'main.cpp'
-        self.line = line_number(self.source, '// Set first breakpoint here.')
-
-    @expectedFailureIcc('llvm.org/pr16808') # lldb does not call the correct virtual function with icc
-    def test_virtual_madness(self):
-        """Test that expression works correctly with virtual inheritance as well as virtual function."""
-        self.build()
-
-        # Bring the program to the point where we can issue a series of
-        # 'expression' command to compare against the golden output.
-        self.dbg.SetAsync(False)
-        
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Create the breakpoint inside function 'main'.
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        
-        self.assertTrue(process.GetState() == lldb.eStateStopped)
-        thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        self.assertTrue(thread.IsValid(), "There should be a thread stopped due to breakpoint condition")
-
-        # First, capture the golden output from the program itself from the
-        # series of printf statements.
-        stdout = process.GetSTDOUT(1024)
-        
-        # This golden list contains a list of "my_expr = 'value' pairs extracted
-        # from the golden output.
-        gl = []
-
-        # Scan the golden output line by line, looking for the pattern:
-        #
-        #     my_expr = 'value'
-        #
-        for line in stdout.split(os.linesep):
-            match = self.pattern.search(line)
-            if match:
-                my_expr, val = match.group(1), match.group(2)
-                gl.append((my_expr, val))
-        #print("golden list:", gl)
-
-        # Now iterate through the golden list, comparing against the output from
-        # 'expression var'.
-        for my_expr, val in gl:
-
-            self.runCmd("expression %s" % my_expr)
-            output = self.res.GetOutput()
-            
-            # The expression output must match the oracle.
-            self.expect(output, Msg(my_expr, val), exe=False,
-                substrs = [val])

Removed: lldb/trunk/test/lang/cpp/virtual/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/virtual/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/virtual/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/virtual/main.cpp (removed)
@@ -1,113 +0,0 @@
-#include <stdio.h>
-#include <stdint.h>
-
-class A
-{
-public:
-    A () : m_pad ('c') {}
-
-    virtual ~A () {}
-    
-    virtual const char * a()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-
-    virtual const char * b()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-
-    virtual const char * c()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-protected:
-    char m_pad;
-};
-
-class AA
-{
-public:
-    AA () : m_pad('A') {}
-    virtual ~AA () {}
-
-    virtual const char * aa()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-  
-protected:
-    char m_pad;
-};
-
-class B : virtual public A, public AA
-{
-public:
-    B () : m_pad ('c')  {}
-
-    virtual ~B () {}
-    
-    virtual const char * a()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-
-    virtual const char * b()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-protected:
-    char m_pad;
-};
-
-class C : public B, virtual public A
-{
-public:
-    C () : m_pad ('c') {}
-
-    virtual ~C () {}
-    
-    virtual const char * a()
-    {
-        return __PRETTY_FUNCTION__;
-    }
-protected:
-    char m_pad;
-};
-
-int main (int argc, char const *argv[], char const *envp[])
-{
-    A *a_as_A = new A();
-    B *b_as_B = new B();
-    A *b_as_A = b_as_B;
-    C *c_as_C = new C();
-    A *c_as_A = c_as_C;
-
-    printf ("a_as_A->a() = '%s'\n", a_as_A->a());
-    printf ("a_as_A->b() = '%s'\n", a_as_A->b());
-    printf ("a_as_A->c() = '%s'\n", a_as_A->c());
-    printf ("b_as_A->a() = '%s'\n", b_as_A->a());
-    printf ("b_as_A->b() = '%s'\n", b_as_A->b());
-    printf ("b_as_A->c() = '%s'\n", b_as_A->c());
-    printf ("b_as_B->aa() = '%s'\n", b_as_B->aa());
-    printf ("c_as_A->a() = '%s'\n", c_as_A->a());
-    printf ("c_as_A->b() = '%s'\n", c_as_A->b());
-    printf ("c_as_A->c() = '%s'\n", c_as_A->c());
-    printf ("c_as_C->aa() = '%s'\n", c_as_C->aa());
-    puts("");// Set first breakpoint here.
-    // then evaluate:
-    // expression a_as_A->a()
-    // expression a_as_A->b()
-    // expression a_as_A->c()
-    // expression b_as_A->a()
-    // expression b_as_A->b()
-    // expression b_as_A->c()
-    // expression b_as_B->aa()
-    // expression c_as_A->a()
-    // expression c_as_A->b()
-    // expression c_as_A->c()
-    // expression c_as_C->aa()
-    
-    return 0;
-}

Removed: lldb/trunk/test/lang/cpp/wchar_t/.categories
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/wchar_t/.categories?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/wchar_t/.categories (original)
+++ lldb/trunk/test/lang/cpp/wchar_t/.categories (removed)
@@ -1 +0,0 @@
-dataformatters

Removed: lldb/trunk/test/lang/cpp/wchar_t/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/wchar_t/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/wchar_t/Makefile (original)
+++ lldb/trunk/test/lang/cpp/wchar_t/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-CFLAGS := -g -O0
-
-clean: OBJECTS+=$(wildcard main.d.*)
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py (original)
+++ lldb/trunk/test/lang/cpp/wchar_t/TestCxxWCharT.py (removed)
@@ -1,74 +0,0 @@
-#coding=utf8
-"""
-Test that C++ supports wchar_t correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class CxxWCharTTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break for main.cpp.
-        self.source = 'main.cpp'
-        self.line = line_number(self.source, '// Set break point at this line.')
-
-    def test(self):
-        """Test that C++ supports wchar_t correctly."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Break on the struct declration statement in main.cpp.
-        lldbutil.run_break_set_by_file_and_line (self, "main.cpp", self.line)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        if not process:
-            self.fail("SBTarget.Launch() failed")
-
-        # Check that we correctly report templates on wchar_t
-        self.expect("frame variable foo_y",
-            substrs = ['(Foo<wchar_t>) foo_y = '])
-
-        # Check that we correctly report templates on int
-        self.expect("frame variable foo_x",
-            substrs = ['(Foo<int>) foo_x = '])
-
-        # Check that we correctly report wchar_t
-        self.expect("frame variable foo_y.object",
-            substrs = ['(wchar_t) foo_y.object = '])
-
-        # Check that we correctly report int
-        self.expect("frame variable foo_x.object",
-            substrs = ['(int) foo_x.object = '])
-
-        # Check that we can run expressions that return wchar_t
-        self.expect("expression L'a'",substrs = ['(wchar_t) $',"L'a'"])
-
-        # Mazel Tov if this works!
-        self.expect("frame variable mazeltov",
-            substrs = ['(const wchar_t *) mazeltov = ','L"מזל טוב"'])
-
-        self.expect("frame variable ws_NULL",substrs = ['(wchar_t *) ws_NULL = 0x0'])
-        self.expect("frame variable ws_empty",substrs = [' L""'])
-
-        self.expect("frame variable array",substrs = ['L"Hey, I\'m a super wchar_t string'])
-        self.expect("frame variable array",substrs = ['[0]'], matching=False)
-        
-        self.expect('frame variable wchar_zero', substrs=["L'\\0'"])
-        self.expect('expression wchar_zero', substrs=["L'\\0'"])

Removed: lldb/trunk/test/lang/cpp/wchar_t/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/wchar_t/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/cpp/wchar_t/main.cpp (original)
+++ lldb/trunk/test/lang/cpp/wchar_t/main.cpp (removed)
@@ -1,35 +0,0 @@
-//===-- main.c --------------------------------------------------*- C++ -*-===//
-//
-//                     The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-#include <cstring>
-
-template <typename T>
-class Foo
-{
-public:
-    Foo () : object() {}
-    Foo (T x) : object(x) {}
-    T getObject() { return object; }
-private:
-    T object;
-};
-
-
-int main (int argc, char const *argv[])
-{
-    Foo<int> foo_x('a');
-    Foo<wchar_t> foo_y(L'a');
-    const wchar_t *mazeltov = L"מזל טוב";
-    wchar_t *ws_NULL = nullptr;
-    wchar_t *ws_empty = L"";
-  	wchar_t array[200], * array_source = L"Hey, I'm a super wchar_t string, éõñž";
-    wchar_t wchar_zero = (wchar_t)0;
-  	memcpy(array, array_source, 39 * sizeof(wchar_t));
-    return 0; // Set break point at this line.
-}

Removed: lldb/trunk/test/lang/go/goroutines/TestGoroutines.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/goroutines/TestGoroutines.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/goroutines/TestGoroutines.py (original)
+++ lldb/trunk/test/lang/go/goroutines/TestGoroutines.py (removed)
@@ -1,85 +0,0 @@
-"""Test the Go OS Plugin."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestGoASTContext(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @add_test_categories(['pyapi'])
-    @skipIfFreeBSD # llvm.org/pr24895 triggers assertion failure
-    @skipIfRemote # Not remote test suite ready
-    @no_debug_info_test
-    @skipUnlessGoInstalled
-    def test_goroutine_plugin(self):
-        """Test goroutine as threads support."""
-        self.buildGo()
-        self.launchProcess()
-        self.check_goroutines()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.go"
-        self.break_line1 = line_number(self.main_source, '// stop1')
-        self.break_line2 = line_number(self.main_source, '// stop2')
-        self.break_line3 = line_number(self.main_source, '// stop3')
-
-    def launchProcess(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        self.bpt1 = target.BreakpointCreateByLocation(self.main_source, self.break_line1)
-        self.assertTrue(self.bpt1, VALID_BREAKPOINT)
-        self.bpt2 = target.BreakpointCreateByLocation(self.main_source, self.break_line2)
-        self.assertTrue(self.bpt2, VALID_BREAKPOINT)
-        self.bpt3 = target.BreakpointCreateByLocation(self.main_source, self.break_line3)
-        self.assertTrue(self.bpt3, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, self.bpt1)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-    def check_goroutines(self):
-        self.assertLess(len(self.process().threads), 20)
-        self.process().Continue()
-
-        # Make sure we stopped at the 2nd breakpoint
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (self.process(), self.bpt2)
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-        
-        # There's (at least) 21 goroutines.
-        self.assertGreater(len(self.process().threads), 20)
-        # self.dbg.HandleCommand("log enable lldb os")
-
-        # Now test that stepping works if the memory thread moves to a different backing thread.
-        for i in list(range(11)):
-            self.thread().StepOver()
-            self.assertEqual(lldb.eStopReasonPlanComplete, self.thread().GetStopReason(), self.thread().GetStopDescription(100))
-        
-        # Disable the plugin and make sure the goroutines disappear
-        self.dbg.HandleCommand("settings set plugin.os.goroutines.enable false")
-        self.thread().StepInstruction(False)
-        self.assertLess(len(self.process().threads), 20)

Removed: lldb/trunk/test/lang/go/goroutines/main.go
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/goroutines/main.go?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/goroutines/main.go (original)
+++ lldb/trunk/test/lang/go/goroutines/main.go (removed)
@@ -1,89 +0,0 @@
-package main
-
-import (
-	"fmt"
-	"runtime"
-)
-
-type philosopher struct {
-	i int
-	forks [2]chan bool
-	eating chan int
-	done  chan struct{}
-}
-
-func (p philosopher) run() {
-	for {
-		select {
-		case <-p.done:
-			return
-		case <-p.forks[0]:
-			p.eat()
-		}
-	}
-}
-
-func (p philosopher) eat() {
-	select {
-	case <-p.done:
-		return
-	case <-p.forks[1]:
-		p.eating <- p.i
-		p.forks[0] <- true
-		p.forks[1] <- true
-		runtime.Gosched()
-	}
-}
-
-func startPhilosophers(n int) (chan struct{}, chan int) {
-	philosophers := make([]*philosopher, n)
-	chans := make([]chan bool, n)
-	for i := range chans {
-		chans[i] = make(chan bool, 1)
-		chans[i] <- true
-	}
-	eating := make(chan int, n)
-	done := make(chan struct{})
-	for i := range philosophers {
-		var min, max int
-		if i == n - 1 {
-			min = 0
-			max = i
-		} else {
-			min = i
-			max = i + 1
-		}
-		philosophers[i] = &philosopher{i: i, forks: [2]chan bool{chans[min], chans[max]}, eating: eating, done: done}
-		go philosophers[i].run()
-	}
-	return done, eating
-}
-
-func wait(c chan int) {
-	fmt.Println(<- c)
-	runtime.Gosched()
-}
-
-func main() {
-	// Restrict go to 1 real thread so we can be sure we're seeing goroutines
-	// and not threads.
-	runtime.GOMAXPROCS(1)
-	// Create a bunch of goroutines
-	done, eating := startPhilosophers(20) // stop1
-	// Now turn up the number of threads so this goroutine is likely to get
-	// scheduled on a different thread.
-	runtime.GOMAXPROCS(runtime.NumCPU()) // stop2
-	// Now let things run. Hopefully we'll bounce around
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	wait(eating)
-	close(done)
-	fmt.Println("done") // stop3
-}

Removed: lldb/trunk/test/lang/go/runtime/TestGoLanguageRuntime
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/runtime/TestGoLanguageRuntime?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/runtime/TestGoLanguageRuntime (original)
+++ lldb/trunk/test/lang/go/runtime/TestGoLanguageRuntime (removed)
@@ -1,80 +0,0 @@
-"""Test the go dynamic type handling."""
-
-import os, time
-import unittest2
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestGoLanguageRuntime(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @python_api_test
-    @expectedFailureFreeBSD('llvm.org/pr24895')
-    @skipIfRemote # Not remote test suite ready
-    @skipUnlessGoInstalled
-    def test_with_dsym_and_python_api(self):
-        """Test GoASTContext dwarf parsing."""
-        self.buildGo()
-        self.launchProcess()
-        self.go_interface_types()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.go"
-        self.break_line1 = line_number(self.main_source, '// Set breakpoint 1')
-        self.break_line2 = line_number(self.main_source, '// Set breakpoint 2')
-
-
-    def launchProcess(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt1 = target.BreakpointCreateByLocation(self.main_source, self.break_line1)
-        self.assertTrue(bpt1, VALID_BREAKPOINT)
-        bpt2 = target.BreakpointCreateByLocation(self.main_source, self.break_line2)
-        self.assertTrue(bpt2, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt1)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-    def go_interface_types(self):
-        f = self.frame()
-        v = f.FindVariable("a", lldb.eDynamicCanRunTarget)
-        self.assertEqual("*int", v.GetType().name)
-        self.assertEqual(1, v.Dereference().GetValueAsSigned())
-        v = f.FindVariable("b", lldb.eDynamicCanRunTarget)
-        self.assertEqual("*float64", v.GetType().name)
-        err = lldb.SBError()
-        self.assertEqual(2.0, v.Dereference().GetData().GetDouble(err, 0))
-        v = f.FindVariable("c", lldb.eDynamicCanRunTarget)
-        self.assertEqual("*main.SomeFooer", v.GetType().name)
-        self.assertEqual(9, v.Dereference().GetChildAtIndex(0).GetValueAsSigned())
-        v = f.FindVariable("d", lldb.eDynamicCanRunTarget)
-        self.assertEqual("*main.AnotherFooer", v.GetType().name)
-        self.assertEqual(-1, v.Dereference().GetChildAtIndex(0).GetValueAsSigned())
-        self.assertEqual(-2, v.Dereference().GetChildAtIndex(1).GetValueAsSigned())
-        self.assertEqual(-3, v.Dereference().GetChildAtIndex(2).GetValueAsSigned())
-
-if __name__ == '__main__':
-    import atexit
-    lldb.SBDebugger.Initialize()
-    atexit.register(lambda: lldb.SBDebugger.Terminate())
-    unittest2.main()

Removed: lldb/trunk/test/lang/go/runtime/main.go
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/runtime/main.go?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/runtime/main.go (original)
+++ lldb/trunk/test/lang/go/runtime/main.go (removed)
@@ -1,38 +0,0 @@
-package main
-
-import "fmt"
-
-type Fooer interface {
-	Foo() int
-}
-
-type SomeFooer struct {
-	val int
-}
-
-func (s SomeFooer) Foo() int {
-	return s.val
-}
-
-type AnotherFooer struct {
-    a, b, c int
-}
-
-func (s AnotherFooer) Foo() int {
-	return s.a
-}
-
-
-func printEface(a, b, c, d interface{}) {
-    fmt.Println(a, b, c, d)  // Set breakpoint 1
-}
-
-func printIface(a, b Fooer) {
-    fmt.Println(a, b)  // Set breakpoint 2
-}
-func main() {
-    sf := SomeFooer{9}
-    af := AnotherFooer{-1, -2, -3}
-    printEface(1,2.0, sf, af)
-    printIface(sf, af)
-}
\ No newline at end of file

Removed: lldb/trunk/test/lang/go/types/TestGoASTContext.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/types/TestGoASTContext.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/types/TestGoASTContext.py (original)
+++ lldb/trunk/test/lang/go/types/TestGoASTContext.py (removed)
@@ -1,133 +0,0 @@
-"""Test the go DWARF type parsing."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestGoASTContext(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @add_test_categories(['pyapi'])
-    @skipIfFreeBSD # llvm.org/pr24895 triggers assertion failure
-    @skipIfRemote # Not remote test suit ready
-    @no_debug_info_test
-    @skipUnlessGoInstalled
-    def test_with_dsym_and_python_api(self):
-        """Test GoASTContext dwarf parsing."""
-        self.buildGo()
-        self.launchProcess()
-        self.go_builtin_types()
-        self.check_main_vars()
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.go"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    def check_builtin(self, name, size=0, typeclass=lldb.eTypeClassBuiltin):
-        tl = self.target().FindTypes(name)
-        self.assertEqual(1, len(tl))
-        t = list(tl)[0]
-        self.assertEqual(name, t.name)
-        self.assertEqual(typeclass, t.type)
-        if size > 0:
-            self.assertEqual(size, t.size)
-
-    def launchProcess(self):
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-    def go_builtin_types(self):
-        address_size = self.target().GetAddressByteSize()
-        self.check_builtin('bool')
-        self.check_builtin('uint8', 1)
-        self.check_builtin('int8', 1)
-        self.check_builtin('uint16', 2)
-        self.check_builtin('int16', 2)
-        self.check_builtin('uint32', 4)
-        self.check_builtin('int32', 4)
-        self.check_builtin('uint64', 8)
-        self.check_builtin('int64', 8)
-        self.check_builtin('uintptr', address_size)
-        self.check_builtin('int', address_size)
-        self.check_builtin('uint', address_size)
-        self.check_builtin('float32', 4)
-        self.check_builtin('float64', 8)
-        self.check_builtin('complex64', 8, lldb.eTypeClassComplexFloat)
-        self.check_builtin('complex128', 16, lldb.eTypeClassComplexFloat)
-
-    def var(self, name):
-        var = self.frame().FindVariable(name)
-        self.assertTrue(var.IsValid(), "%s %s" % (VALID_VARIABLE, name))
-        return var
-
-    def check_main_vars(self):
-        v = self.var('theBool')
-        self.assertEqual('true', v.value)
-        
-        v = self.var('theInt')
-        self.assertEqual('-7', v.value)
-        
-        v = self.var('theComplex')
-        self.assertEqual('1 + 2i', v.value)
-        
-        v = self.var('thePointer')
-        self.assertTrue(v.TypeIsPointerType())
-        self.assertEqual('-10', v.Dereference().value)
-        self.assertEqual(1, v.GetNumChildren())
-        self.assertEqual('-10', v.GetChildAtIndex(0).value)
-        
-        # print()
-        # print(os.getpid())
-        # time.sleep(60)
-        v = self.var('theStruct')
-        if v.TypeIsPointerType():
-            v = v.Dereference()
-        self.assertEqual(2, v.GetNumChildren())
-        self.assertEqual('7', v.GetChildAtIndex(0).value)
-        self.assertEqual('7', v.GetChildMemberWithName('myInt').value)
-        self.assertEqual(v.load_addr, v.GetChildAtIndex(1).GetValueAsUnsigned())
-        self.assertEqual(v.load_addr, v.GetChildMemberWithName('myPointer').GetValueAsUnsigned())
-
-        # Test accessing struct fields through pointers.
-        v = v.GetChildMemberWithName('myPointer')
-        self.assertTrue(v.TypeIsPointerType())
-        self.assertEqual(2, v.GetNumChildren())
-        self.assertEqual('7', v.GetChildAtIndex(0).value)
-        c = v.GetChildMemberWithName('myPointer')
-        self.assertTrue(c.TypeIsPointerType())
-        self.assertEqual(2, c.GetNumChildren())
-        self.assertEqual('7', c.GetChildAtIndex(0).value)
-
-        v = self.var('theArray')
-        self.assertEqual(5, v.GetNumChildren())
-        for i in list(range(5)):
-            self.assertEqual(str(i + 1), v.GetChildAtIndex(i).value)

Removed: lldb/trunk/test/lang/go/types/main.go
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/go/types/main.go?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/go/types/main.go (original)
+++ lldb/trunk/test/lang/go/types/main.go (removed)
@@ -1,47 +0,0 @@
-package main
-
-import "fmt"
-
-type Fooer interface {
-	Foo() int
-}
-
-type SomeFooer struct {
-	val int
-}
-
-func (s SomeFooer) Foo() int {
-	return s.val
-}
-
-type mystruct struct {
-	myInt int
-	myPointer *mystruct
-}
-
-func main() {
-	theBool := true
-	theInt := -7
-	theComplex := 1 + 2i
-	pointee := -10
-	thePointer := &pointee
-	theStruct := &mystruct { myInt: 7}
-	theStruct.myPointer = theStruct
-	theArray := [5]byte{1, 2, 3, 4, 5}
-	theSlice := theArray[1:2]
-	theString := "abc"
-	
-	f := SomeFooer {9}
-	var theEface interface{} = f
-	var theFooer Fooer = f
-	
-	theChan := make(chan int)
-	theMap := make(map[int]string)
-	theMap[1] = "1"
-
-	fmt.Println(theBool)  // Set breakpoint here.
-	// Reference all the variables so the compiler is happy.
-	fmt.Println(theInt, theComplex, thePointer, theStruct.myInt)
-	fmt.Println(theArray[0], theSlice[0], theString)
-	fmt.Println(theEface, theFooer, theChan, theMap)
-}
\ No newline at end of file

Removed: lldb/trunk/test/lang/mixed/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/mixed/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/mixed/Makefile (original)
+++ lldb/trunk/test/lang/mixed/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../make
-
-CXX_SOURCES := foo.cpp
-C_SOURCES := main.c
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/mixed/TestMixedLanguages.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/mixed/TestMixedLanguages.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/mixed/TestMixedLanguages.py (original)
+++ lldb/trunk/test/lang/mixed/TestMixedLanguages.py (removed)
@@ -1,56 +0,0 @@
-"""Test that lldb works correctly on compile units form different languages."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time, re
-import lldb
-from lldbtest import *
-
-class MixedLanguagesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_language_of_frame(self):
-        """Test that the language defaults to the language of the current frame."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Execute the cleanup function during test case tear down
-        # to restore the frame format.
-        def cleanup():
-            self.runCmd("settings set frame-format %s" % self.format_string, check=False)
-        self.addTearDownHook(cleanup)
-        self.runCmd("settings show frame-format")
-        m = re.match(
-                '^frame-format \(format-string\) = "(.*)\"$',
-                self.res.GetOutput())
-        self.assertTrue(m, "Bad settings string")
-        self.format_string = m.group(1)
-
-        # Change the default format to print the language.
-        format_string = "frame #${frame.index}: ${frame.pc}{ ${module.file.basename}`${function.name}{${function.pc-offset}}}{, lang=${language}}\n"
-        self.runCmd("settings set frame-format %s" % format_string)
-        self.expect("settings show frame-format", SETTING_MSG("frame-format"),
-            substrs = [format_string])
-
-        # Run to BP at main (in main.c) and test that the language is C.
-        self.runCmd("breakpoint set -n main")
-        self.runCmd("run")
-        self.expect("thread backtrace",
-            substrs = ["`main", "lang=c"])
-        # Make sure evaluation of C++11 fails.
-        self.expect("expr foo != nullptr", error=True,
-            startstr = "error")
-
-        # Run to BP at foo (in foo.cpp) and test that the language is C++.
-        self.runCmd("breakpoint set -n foo")
-        self.runCmd("continue")
-        self.expect("thread backtrace",
-            substrs = ["`::foo()", "lang=c++"])
-        # Make sure we can evaluate an expression requiring C++11
-        # (note: C++11 is enabled by default for C++).
-        self.expect("expr foo != nullptr",
-            patterns = ["true"])

Removed: lldb/trunk/test/lang/mixed/foo.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/mixed/foo.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/mixed/foo.cpp (original)
+++ lldb/trunk/test/lang/mixed/foo.cpp (removed)
@@ -1,11 +0,0 @@
-namespace ns {
-    int func(void)
-    {
-        return 0;
-    }
-}
-
-extern "C" int foo(void)
-{
-    return ns::func();
-}

Removed: lldb/trunk/test/lang/mixed/main.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/mixed/main.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/mixed/main.c (original)
+++ lldb/trunk/test/lang/mixed/main.c (removed)
@@ -1,15 +0,0 @@
-int foo(void);
-static int static_value = 0;
-
-int
-bar()
-{
-    static_value++;
-    return static_value;
-}
-
-int main (int argc, char const *argv[])
-{
-    bar(); // breakpoint_in_main
-    return foo();
-}

Removed: lldb/trunk/test/lang/objc/.categories
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/.categories?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/.categories (original)
+++ lldb/trunk/test/lang/objc/.categories (removed)
@@ -1 +0,0 @@
-objc

Removed: lldb/trunk/test/lang/objc/blocks/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/Makefile (original)
+++ lldb/trunk/test/lang/objc/blocks/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := ivars-in-blocks.m main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py (original)
+++ lldb/trunk/test/lang/objc/blocks/TestObjCIvarsInBlocks.py (removed)
@@ -1,103 +0,0 @@
-"""Test printing ivars and ObjC objects captured in blocks that are made in methods of an ObjC class."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestObjCIvarsInBlocks(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.m"
-        self.class_source = "ivars-in-blocks.m"
-        self.class_source_file_spec = lldb.SBFileSpec(self.class_source)
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    @expectedFailurei386 # This test requires the 2.0 runtime, so it will fail on i386.
-    def test_with_python_api(self):
-        """Test printing the ivars of the self when captured in blocks"""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateBySourceRegex ('// Break here inside the block.', self.class_source_file_spec)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        breakpoint_two = target.BreakpointCreateBySourceRegex ('// Break here inside the class method block.', self.class_source_file_spec)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue (process, "Created a process.")
-        self.assertTrue (process.GetState() == lldb.eStateStopped, "Stopped it too.")
-
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-        
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (frame, "frame 0 is valid")
-        
-        # First use the FindVariable API to see if we can find the ivar by undecorated name:
-        direct_blocky = frame.GetValueForVariablePath ("blocky_ivar")
-        self.assertTrue(direct_blocky, "Found direct access to blocky_ivar.")
-        
-        # Now get it as a member of "self" and make sure the two values are equal:
-        self_var = frame.GetValueForVariablePath ("self")
-        self.assertTrue (self_var, "Found self in block.")
-        indirect_blocky = self_var.GetChildMemberWithName ("blocky_ivar")
-        self.assertTrue (indirect_blocky, "Found blocky_ivar through self")
-        
-        error = lldb.SBError()
-        direct_value = direct_blocky.GetValueAsSigned(error)
-        self.assertTrue (error.Success(), "Got direct value for blocky_ivar")
-
-        indirect_value = indirect_blocky.GetValueAsSigned (error)
-        self.assertTrue (error.Success(), "Got indirect value for blocky_ivar")
-        
-        self.assertTrue (direct_value == indirect_value, "Direct and indirect values are equal.")
-
-        # Now make sure that we can get at the captured ivar through the expression parser.
-        # Doing a little trivial math will force this into the real expression parser:
-        direct_expr = frame.EvaluateExpression ("blocky_ivar + 10")
-        self.assertTrue (direct_expr, "Got blocky_ivar through the expression parser")
-        
-        # Again, get the value through self directly and make sure they are the same:
-        indirect_expr = frame.EvaluateExpression ("self->blocky_ivar + 10")
-        self.assertTrue (indirect_expr, "Got blocky ivar through expression parser using self.")
-        
-        direct_value = direct_expr.GetValueAsSigned (error)
-        self.assertTrue (error.Success(), "Got value from direct use of expression parser")
-
-        indirect_value = indirect_expr.GetValueAsSigned (error)
-        self.assertTrue (error.Success(), "Got value from indirect access using the expression parser")
-
-        self.assertTrue (direct_value == indirect_value, "Direct ivar access and indirect through expression parser produce same value.")
-
-        process.Continue()
-        self.assertTrue (process.GetState() == lldb.eStateStopped, "Stopped at the second breakpoint.")
-
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint_two)
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-        
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (frame, "frame 0 is valid")
-        
-        expr = frame.EvaluateExpression("(ret)")
-        self.assertTrue (expr, "Successfully got a local variable in a block in a class method.")
-
-        ret_value_signed = expr.GetValueAsSigned (error)
-        # print('ret_value_signed = %i' % (ret_value_signed))
-        self.assertTrue (ret_value_signed == 5, "The local variable in the block was what we expected.")

Removed: lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.h (original)
+++ lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.h (removed)
@@ -1,11 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface IAmBlocky : NSObject
-{
-  @public
-  int blocky_ivar;
-}
-+ (void) classMethod;
-- (IAmBlocky *) init;
-- (int) callABlock: (int) block_value;
- at end

Removed: lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.m (original)
+++ lldb/trunk/test/lang/objc/blocks/ivars-in-blocks.m (removed)
@@ -1,57 +0,0 @@
-#import "ivars-in-blocks.h"
-
-typedef int (^my_block_ptr_type) (int);
-
- at interface IAmBlocky()
-{
-  int _hidden_ivar;
-  my_block_ptr_type _block_ptr;
-}
-
- at end
-
- at implementation IAmBlocky
-
-+ (int) addend
-{
-  return 3;
-}
- 
-+ (void) classMethod
-{
-  int (^my_block)(int) = ^(int foo)
-  {
-    int ret = foo + [self addend];
-    return ret; // Break here inside the class method block.
-  };
-  printf("%d\n", my_block(2));
-}
-
-- (void) makeBlockPtr;
-{
-  _block_ptr = ^(int inval)
-  {
-    _hidden_ivar += inval;
-    return blocky_ivar * inval; // Break here inside the block.
-  };
-}
-
-- (IAmBlocky *) init
-{
-  blocky_ivar = 10;
-  _hidden_ivar = 20;
-  // Interesting...  Apparently you can't make a block in your init method.  This crashes...
-  // [self makeBlockPtr];
-  return self;
-}
-
-- (int) callABlock: (int) block_value
-{
-  if (_block_ptr == NULL)
-    [self makeBlockPtr];
-  int ret = _block_ptr (block_value);
-  [IAmBlocky classMethod];
-  return ret;
-}
- at end
-

Removed: lldb/trunk/test/lang/objc/blocks/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/blocks/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/blocks/main.m (original)
+++ lldb/trunk/test/lang/objc/blocks/main.m (removed)
@@ -1,10 +0,0 @@
-#import "ivars-in-blocks.h"
-
-int
-main (int argc, char **argv)
-{
-  IAmBlocky *my_blocky = [[IAmBlocky alloc] init];
-  int blocky_value;
-  blocky_value = [my_blocky callABlock: 33];
-  return 0;
-}

Removed: lldb/trunk/test/lang/objc/forward-decl/Container.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/Container.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/Container.h (original)
+++ lldb/trunk/test/lang/objc/forward-decl/Container.h (removed)
@@ -1,13 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at class ForwardDeclaredClass;
-
- at interface Container : NSObject {
- at public
-    ForwardDeclaredClass *member;
-}
-
--(id)init;
--(ForwardDeclaredClass*)getMember;
-
- at end

Removed: lldb/trunk/test/lang/objc/forward-decl/Container.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/Container.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/Container.m (original)
+++ lldb/trunk/test/lang/objc/forward-decl/Container.m (removed)
@@ -1,27 +0,0 @@
-#import "Container.h"
-
- at interface ForwardDeclaredClass : NSObject
-{
-    int a;
-    int b;
-}
- at end
-
- at implementation ForwardDeclaredClass
-
- at end
-
- at implementation Container
-
--(id)init
-{
-    member = [ForwardDeclaredClass alloc];
-    return [super init];
-}
-
--(ForwardDeclaredClass *)getMember
-{
-    return member;
-}
-
- at end

Removed: lldb/trunk/test/lang/objc/forward-decl/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/Makefile (original)
+++ lldb/trunk/test/lang/objc/forward-decl/Makefile (removed)
@@ -1,9 +0,0 @@
-LEVEL = ../../../make
-
-DYLIB_NAME := Container
-DYLIB_OBJC_SOURCES := Container.m
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py (original)
+++ lldb/trunk/test/lang/objc/forward-decl/TestForwardDecl.py (removed)
@@ -1,54 +0,0 @@
-"""Test that a forward-declared class works when its complete definition is in a library"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ForwardDeclTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.m'
-        self.line = line_number(self.source, '// Set breakpoint 0 here.')
-        self.shlib_names = ["Container"]
-
-    @skipUnlessDarwin
-    def test_expr(self):
-        self.build()
-        
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Create the breakpoint inside function 'main'.
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-        
-        # Register our shared libraries for remote targets so they get automatically uploaded
-        environment = self.registerSharedLibrariesWithTarget(target, self.shlib_names)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, environment, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        # This should display correctly.
-        self.expect("expression [j getMember]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 0x"])

Removed: lldb/trunk/test/lang/objc/forward-decl/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/forward-decl/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/forward-decl/main.m (original)
+++ lldb/trunk/test/lang/objc/forward-decl/main.m (removed)
@@ -1,14 +0,0 @@
-#import <Foundation/Foundation.h>
-#import "Container.h"
-
-int main(int argc, const char * argv[])
-{
-
-    @autoreleasepool {
-        Container *j = [[Container alloc] init];
-
-        printf("member value = %p", [j getMember]); // Set breakpoint 0 here.
-    }   
-    return 0;
-}
-

Removed: lldb/trunk/test/lang/objc/foundation/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/Makefile (original)
+++ lldb/trunk/test/lang/objc/foundation/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m my-base.m
-#OBJC_SOURCES := const-strings.m
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/lang/objc/foundation/TestConstStrings.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestConstStrings.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestConstStrings.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestConstStrings.py (removed)
@@ -1,53 +0,0 @@
-"""
-Test that objective-c constant strings are generated correctly by the expression
-parser.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ConstStringTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    d = {'OBJC_SOURCES': 'const-strings.m'}
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.main_source = "const-strings.m"
-        self.line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    def test_break(self):
-        """Test constant string generation amd comparison by the expression parser."""
-        self.build(dictionary=self.d)
-        self.setTearDownCleanup(self.d)
-        
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-        self.expect("process status", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = [" at %s:%d" % (self.main_source, self.line),
-                       "stop reason = breakpoint"])
-
-        self.expect('expression (int)[str compare:@"hello"]',
-            startstr = "(int) $0 = 0")
-        self.expect('expression (int)[str compare:@"world"]',
-            startstr = "(int) $1 = -1")
-
-        # Test empty strings, too.
-        self.expect('expression (int)[@"" length]',
-            startstr = "(int) $2 = 0")
-
-        self.expect('expression (int)[@"123" length]',
-            startstr = "(int) $3 = 3")

Removed: lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestFoundationDisassembly.py (removed)
@@ -1,134 +0,0 @@
-"""
-Test the lldb disassemble command on foundation framework.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
- at skipUnlessDarwin
-class FoundationDisassembleTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    # rdar://problem/8504895
-    # Crash while doing 'disassemble -n "-[NSNumber descriptionWithLocale:]"
-    @unittest2.skipIf(TestBase.skipLongRunningTest(), "Skip this long running test")
-    def test_foundation_disasm(self):
-        """Do 'disassemble -n func' on each and every 'Code' symbol entry from the Foundation.framework."""
-        self.build()
-        
-        # Enable synchronous mode
-        self.dbg.SetAsync(False)
-        
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        foundation_framework = None
-        for module in target.modules:
-            print(module)
-            if module.file.basename == "Foundation":
-                foundation_framework = module.file.fullpath
-                break
-
-        self.assertTrue(foundation_framework != None, "Foundation.framework path located")
-        self.runCmd("image dump symtab '%s'" % foundation_framework)
-        raw_output = self.res.GetOutput()
-        # Now, grab every 'Code' symbol and feed it into the command:
-        # 'disassemble -n func'.
-        #
-        # The symbol name is on the last column and trails the flag column which
-        # looks like '0xhhhhhhhh', i.e., 8 hexadecimal digits.
-        codeRE = re.compile(r"""
-                             \ Code\ {9}    # ' Code' followed by 9 SPCs,
-                             .*             # the wildcard chars,
-                             0x[0-9a-f]{8}  # the flag column, and
-                             \ (.+)$        # finally the function symbol.
-                             """, re.VERBOSE)
-        for line in raw_output.split(os.linesep):
-            match = codeRE.search(line)
-            if match:
-                func = match.group(1)
-                #print("line:", line)
-                #print("func:", func)
-                self.runCmd('disassemble -n "%s"' % func)
-        
-
-    def test_simple_disasm(self):
-        """Test the lldb 'disassemble' command"""
-        self.build()
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        print(target)
-        for module in target.modules:
-            print(module)
-
-        # Stop at +[NSString stringWithFormat:].
-        symbol_name = "+[NSString stringWithFormat:]"
-        break_results = lldbutil.run_break_set_command (self, "_regexp-break %s"%(symbol_name))
-        
-        lldbutil.check_breakpoint_result (self, break_results, symbol_name=symbol_name, num_locations=1)
-
-        # Stop at -[MyString initWithNSString:].
-        lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True)
-
-        # Stop at the "description" selector.
-        lldbutil.run_break_set_by_selector (self, 'description', num_expected_locations=1, module_name='a.out')
-
-        # Stop at -[NSAutoreleasePool release].
-        break_results = lldbutil.run_break_set_command (self, "_regexp-break -[NSAutoreleasePool release]")
-        lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # First stop is +[NSString stringWithFormat:].
-        self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]",
-            substrs = ["Foundation`+[NSString stringWithFormat:]"])
-
-        # Do the disassemble for the currently stopped function.
-        self.runCmd("disassemble -f")
-
-        self.runCmd("process continue")
-        # Skip another breakpoint for +[NSString stringWithFormat:].
-        self.runCmd("process continue")
-
-        # Followed by a.out`-[MyString initWithNSString:].
-        self.expect("thread backtrace", "Stop at a.out`-[MyString initWithNSString:]",
-            substrs = ["a.out`-[MyString initWithNSString:]"])
-
-        # Do the disassemble for the currently stopped function.
-        self.runCmd("disassemble -f")
-
-        self.runCmd("process continue")
-
-        # Followed by -[MyString description].
-        self.expect("thread backtrace", "Stop at -[MyString description]",
-            substrs = ["a.out`-[MyString description]"])
-
-        # Do the disassemble for the currently stopped function.
-        self.runCmd("disassemble -f")
-
-        self.runCmd("process continue")
-        # Skip another breakpoint for -[MyString description].
-        self.runCmd("process continue")
-
-        # Followed by -[NSAutoreleasePool release].
-        self.expect("thread backtrace", "Stop at -[NSAutoreleasePool release]",
-            substrs = ["Foundation`-[NSAutoreleasePool release]"])
-
-        # Do the disassemble for the currently stopped function.
-        self.runCmd("disassemble -f")

Removed: lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods.py (removed)
@@ -1,262 +0,0 @@
-"""
-Set breakpoints on objective-c class and instance methods in foundation.
-Also lookup objective-c data types and evaluate expressions.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, os.path, time
-import lldb
-import string
-from lldbtest import *
-import lldbutil
-
-file_index = 0
- at skipUnlessDarwin
-class FoundationTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.main_source = "main.m"
-        self.line = line_number(self.main_source, '// Set break point at this line.')
-
-    def test_break(self):
-        """Test setting objc breakpoints using '_regexp-break' and 'breakpoint set'."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Stop at +[NSString stringWithFormat:].
-        break_results = lldbutil.run_break_set_command(self, "_regexp-break +[NSString stringWithFormat:]")
-        lldbutil.check_breakpoint_result (self, break_results, symbol_name='+[NSString stringWithFormat:]', num_locations=1)
-
-        # Stop at -[MyString initWithNSString:].
-        lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True)
-
-        # Stop at the "description" selector.
-        lldbutil.run_break_set_by_selector (self, 'description', num_expected_locations=1, module_name='a.out')
-
-        # Stop at -[NSAutoreleasePool release].
-        break_results = lldbutil.run_break_set_command(self, "_regexp-break -[NSAutoreleasePool release]")
-        lldbutil.check_breakpoint_result (self, break_results, symbol_name='-[NSAutoreleasePool release]', num_locations=1)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # First stop is +[NSString stringWithFormat:].
-        self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]",
-            substrs = ["Foundation`+[NSString stringWithFormat:]"])
-
-        self.runCmd("process continue")
-
-        # Second stop is still +[NSString stringWithFormat:].
-        self.expect("thread backtrace", "Stop at +[NSString stringWithFormat:]",
-            substrs = ["Foundation`+[NSString stringWithFormat:]"])
-
-        self.runCmd("process continue")
-
-        # Followed by a.out`-[MyString initWithNSString:].
-        self.expect("thread backtrace", "Stop at a.out`-[MyString initWithNSString:]",
-            substrs = ["a.out`-[MyString initWithNSString:]"])
-
-        self.runCmd("process continue")
-
-        # Followed by -[MyString description].
-        self.expect("thread backtrace", "Stop at -[MyString description]",
-            substrs = ["a.out`-[MyString description]"])
-
-        self.runCmd("process continue")
-
-        # Followed by the same -[MyString description].
-        self.expect("thread backtrace", "Stop at -[MyString description]",
-            substrs = ["a.out`-[MyString description]"])
-
-        self.runCmd("process continue")
-
-        # Followed by -[NSAutoreleasePool release].
-        self.expect("thread backtrace", "Stop at -[NSAutoreleasePool release]",
-            substrs = ["Foundation`-[NSAutoreleasePool release]"])
-
-    # rdar://problem/8542091
-    # rdar://problem/8492646
-    def test_data_type_and_expr(self):
-        """Lookup objective-c data types and evaluate expressions."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Stop at -[MyString description].
-        lldbutil.run_break_set_by_symbol (self, '-[MyString description]', num_expected_locations=1, sym_exact=True)
-#        self.expect("breakpoint set -n '-[MyString description]", BREAKPOINT_CREATED,
-#            startstr = "Breakpoint created: 1: name = '-[MyString description]', locations = 1")
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The backtrace should show we stop at -[MyString description].
-        self.expect("thread backtrace", "Stop at -[MyString description]",
-            substrs = ["a.out`-[MyString description]"])
-
-        # Lookup objc data type MyString and evaluate some expressions.
-
-        self.expect("image lookup -t NSString", DATA_TYPES_DISPLAYED_CORRECTLY,
-            substrs = ['name = "NSString"',
-                       'compiler_type = "@interface NSString'])
-
-        self.expect("image lookup -t MyString", DATA_TYPES_DISPLAYED_CORRECTLY,
-            substrs = ['name = "MyString"',
-                       'compiler_type = "@interface MyString',
-                       'NSString * str;',
-                       'NSDate * date;'])
-
-        self.expect("frame variable --show-types --scope", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["ARG: (MyString *) self"],
-            patterns = ["ARG: \(.*\) _cmd",
-                        "(objc_selector *)|(SEL)"])
-
-        # rdar://problem/8651752
-        # don't crash trying to ask clang how many children an empty record has
-        self.runCmd("frame variable *_cmd")
-
-        # rdar://problem/8492646
-        # test/foundation fails after updating to tot r115023
-        # self->str displays nothing as output
-        self.expect("frame variable --show-types self->str", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(NSString *) self->str")
-
-        # rdar://problem/8447030
-        # 'frame variable self->date' displays the wrong data member
-        self.expect("frame variable --show-types self->date", VARIABLES_DISPLAYED_CORRECTLY,
-            startstr = "(NSDate *) self->date")
-
-        # This should display the str and date member fields as well.
-        self.expect("frame variable --show-types *self", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(MyString) *self",
-                       "(NSString *) str",
-                       "(NSDate *) date"])
-        
-        # isa should be accessible.
-        self.expect("expression self->isa", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["(Class)"])
-
-        # This should fail expectedly.
-        self.expect("expression self->non_existent_member",
-                    COMMAND_FAILED_AS_EXPECTED, error=True,
-            startstr = "error: 'MyString' does not have a member named 'non_existent_member'")
-
-        # Use expression parser.
-        self.runCmd("expression self->str")
-        self.runCmd("expression self->date")
-
-        # (lldb) expression self->str
-        # error: instance variable 'str' is protected
-        # error: 1 errors parsing expression
-        #
-        # (lldb) expression self->date
-        # error: instance variable 'date' is protected
-        # error: 1 errors parsing expression
-        #
-
-        self.runCmd("breakpoint delete 1")
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("process continue")
-
-        # rdar://problem/8542091
-        # test/foundation: expr -o -- my not working?
-        #
-        # Test new feature with r115115:
-        # Add "-o" option to "expression" which prints the object description if available.
-        self.expect("expression --object-description -- my", "Object description displayed correctly",
-            patterns = ["Hello from.*a.out.*with timestamp: "])
-
-    @add_test_categories(['pyapi'])
-    def test_print_ivars_correctly (self):
-        self.build()
-        # See: <rdar://problem/8717050> lldb needs to use the ObjC runtime symbols for ivar offsets
-        # Only fails for the ObjC 2.0 runtime.
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        break1 = target.BreakpointCreateByLocation(self.main_source, self.line)
-        self.assertTrue(break1, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread = process.GetThreadAtIndex(0)
-        if thread.GetStopReason() != lldb.eStopReasonBreakpoint:
-            from lldbutil import stop_reason_to_str
-            self.fail(STOPPED_DUE_TO_BREAKPOINT_WITH_STOP_REASON_AS %
-                      stop_reason_to_str(thread.GetStopReason()))
-
-        # Make sure we stopped at the first breakpoint.
-
-        cur_frame = thread.GetFrameAtIndex(0)
-
-        line_number = cur_frame.GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.line, "Hit the first breakpoint.")
-
-        my_var = cur_frame.FindVariable("my")
-        self.assertTrue(my_var, "Made a variable object for my")
-
-        str_var = cur_frame.FindVariable("str")
-        self.assertTrue(str_var, "Made a variable object for str")
-
-        # Now make sure that the my->str == str:
-
-        my_str_var = my_var.GetChildMemberWithName("str")
-        self.assertTrue(my_str_var, "Found a str ivar in my")
-
-        str_value = int(str_var.GetValue(), 0)
-
-        my_str_value = int(my_str_var.GetValue(), 0)
-
-        self.assertTrue(str_value == my_str_value, "Got the correct value for my->str")
-
-    def test_expression_lookups_objc(self):
-        """Test running an expression detect spurious debug info lookups (DWARF)."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Stop at -[MyString initWithNSString:].
-        lldbutil.run_break_set_by_symbol (self, '-[MyString initWithNSString:]', num_expected_locations=1, sym_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        global file_index
-        # Log any DWARF lookups
-        ++file_index
-        logfile = os.path.join(os.getcwd(), "dwarf-lookups-" + self.getArchitecture() + "-" + str(file_index) + ".txt")
-        self.runCmd("log enable -f %s dwarf lookups" % (logfile))
-        self.runCmd("expr self")
-        self.runCmd("log disable dwarf lookups")
-        
-        def cleanup():
-            if os.path.exists (logfile):
-                os.unlink (logfile)
-        
-        self.addTearDownHook(cleanup)
-        
-        if os.path.exists (logfile):
-            f = open(logfile)
-            lines = f.readlines()
-            num_errors = 0
-            for line in lines:
-                if string.find(line, "$__lldb") != -1:
-                    if num_errors == 0:
-                        print("error: found spurious name lookups when evaluating an expression:")
-                    num_errors += 1
-                    print(line, end='')
-            self.assertTrue(num_errors == 0, "Spurious lookups detected")
-            f.close()

Removed: lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjCMethods2.py (removed)
@@ -1,169 +0,0 @@
-"""
-Test more expression command sequences with objective-c.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
- at skipUnlessDarwin
-class FoundationTestCase2(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break at.
-        self.lines = []
-        self.lines.append(line_number('main.m', '// Break here for selector: tests'))
-        self.lines.append(line_number('main.m', '// Break here for NSArray tests'))
-        self.lines.append(line_number('main.m', '// Break here for NSString tests'))
-        self.lines.append(line_number('main.m', '// Break here for description test'))
-        self.lines.append(line_number('main.m', '// Set break point at this line'))
-
-    def test_more_expr_commands(self):
-        """More expression commands for objective-c."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Create a bunch of breakpoints.
-        for line in self.lines:
-            lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Test_Selector:
-        self.runCmd("thread backtrace")
-        self.expect("expression (char *)sel_getName(sel)",
-            substrs = ["(char *)",
-                       "length"])
-
-        self.runCmd("process continue")
-
-        # Test_NSArray:
-        self.runCmd("thread backtrace")
-        self.runCmd("process continue")
-
-        # Test_NSString:
-        self.runCmd("thread backtrace")
-        self.runCmd("process continue")
-
-        # Test_MyString:
-        self.runCmd("thread backtrace")
-        self.expect("expression (char *)sel_getName(_cmd)",
-            substrs = ["(char *)",
-                       "description"])
-
-        self.runCmd("process continue")
-
-    def test_NSArray_expr_commands(self):
-        """Test expression commands for NSArray."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside Test_NSArray:
-        line = self.lines[1]
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Test_NSArray:
-        self.runCmd("thread backtrace")
-        self.expect("expression (int)[nil_mutable_array count]",
-            patterns = ["\(int\) \$.* = 0"])
-        self.expect("expression (int)[array1 count]",
-            patterns = ["\(int\) \$.* = 3"])
-        self.expect("expression (int)[array2 count]",
-            patterns = ["\(int\) \$.* = 3"])
-        self.expect("expression (int)array1.count",
-            patterns = ["\(int\) \$.* = 3"])
-        self.expect("expression (int)array2.count",
-            patterns = ["\(int\) \$.* = 3"])
-        self.runCmd("process continue")
-
-    def test_NSString_expr_commands(self):
-        """Test expression commands for NSString."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside Test_NSString:
-        line = self.lines[2]
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # Test_NSString:
-        self.runCmd("thread backtrace")
-        self.expect("expression (int)[str length]",
-            patterns = ["\(int\) \$.* ="])
-        self.expect("expression (int)[str_id length]",
-            patterns = ["\(int\) \$.* ="])
-        self.expect("expression [str description]",
-            patterns = ["\(id\) \$.* = 0x"])
-        self.expect("expression (id)[str_id description]",
-            patterns = ["\(id\) \$.* = 0x"])
-        self.expect("expression str.length")
-        self.expect("expression str.description")
-        self.expect('expression str = @"new"')
-        self.runCmd("image lookup -t NSString")
-        self.expect('expression str = [NSString stringWithCString: "new"]')
-        self.runCmd("process continue")
-
-    def test_MyString_dump(self):
-        """Test dump of a known Objective-C object by dereferencing it."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        
-        line = self.lines[4]
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-        
-        self.expect("expression --show-types -- *my",
-            patterns = ["\(MyString\) \$.* = ", "\(MyBase\)", "\(NSObject\)", "\(Class\)"])
-        self.runCmd("process continue")
-
-    @expectedFailurei386
-    def test_NSError_po(self):
-        """Test that po of the result of an unknown method doesn't require a cast."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        
-        line = self.lines[4]
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.expect('po [NSError errorWithDomain:@"Hello" code:35 userInfo:@{@"NSDescription" : @"be completed."}]',
-            substrs = ["Error Domain=Hello", "Code=35", "be completed."])
-        self.runCmd("process continue")
-        
-    def test_NSError_p(self):
-        """Test that p of the result of an unknown method does require a cast."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-        
-        line = self.lines[4]
-
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.expect("p [NSError thisMethodIsntImplemented:0]",
-                    error = True, 
-                    patterns = ["no known method", "cast the message send to the method's return type"])
-        self.runCmd("process continue")

Removed: lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestObjectDescriptionAPI.py (removed)
@@ -1,70 +0,0 @@
-"""
-Test SBValue.GetObjectDescription() with the value from SBTarget.FindGlobalVariables().
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ObjectDescriptionAPITestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break at.
-        self.source = 'main.m'
-        self.line = line_number(self.source, '// Set break point at this line.')
-
-    # rdar://problem/10857337
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_find_global_variables_then_object_description(self):
-        """Exercise SBTarget.FindGlobalVariables() API."""
-        d = {'EXE': 'b.out'}
-        self.build(dictionary=d)
-        self.setTearDownCleanup(dictionary=d)
-        exe = os.path.join(os.getcwd(), 'b.out')
-
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        # Make sure we hit our breakpoint:
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-        self.assertTrue (len(thread_list) == 1)
-
-        thread = thread_list[0]
-        frame0 = thread.GetFrameAtIndex(0)
-
-        # Note my_global_str's object description prints fine here.
-        value_list1 = frame0.GetVariables(True, True, True, True)
-        for v in value_list1:
-            self.DebugSBValue(v)
-            if self.TraceOn():
-                print("val:", v)
-                print("object description:", v.GetObjectDescription())
-            if v.GetName() == 'my_global_str':
-                self.assertTrue(v.GetObjectDescription() == 'This is a global string')
-
-        # But not here!
-        value_list2 = target.FindGlobalVariables('my_global_str', 3)
-        for v in value_list2:
-            self.DebugSBValue(v)
-            if self.TraceOn():
-                print("val:", v)
-                print("object description:", v.GetObjectDescription())
-            if v.GetName() == 'my_global_str':
-                self.assertTrue(v.GetObjectDescription() == 'This is a global string')

Removed: lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestRuntimeTypes.py (removed)
@@ -1,48 +0,0 @@
-"""
-Test that Objective-C methods from the runtime work correctly.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
- at skipUnlessDarwin
-class RuntimeTypesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def test_break(self):
-        """Test setting objc breakpoints using '_regexp-break' and 'breakpoint set'."""
-        if self.getArchitecture() != 'x86_64':
-            self.skipTest("This only applies to the v2 runtime")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Stop at -[MyString description].
-        lldbutil.run_break_set_by_symbol (self, '-[MyString description]', num_expected_locations=1, sym_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The backtrace should show we stop at -[MyString description].
-        self.expect("thread backtrace", "Stop at -[MyString description]",
-            substrs = ["a.out`-[MyString description]"])
-
-        # Use runtime information about NSString.
-
-        # The length property should be usable.
-        self.expect("expression str.length", VARIABLES_DISPLAYED_CORRECTLY,
-            patterns = [r"(\(unsigned long long\))|\(NSUInteger\)"])
-
-        # Static methods on NSString should work.
-        self.expect("expr [NSString stringWithCString:\"foo\" encoding:1]", VALID_TYPE,
-            substrs = ["(id)", "$1"])
-
-        self.expect("po $1", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["foo"])

Removed: lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py (original)
+++ lldb/trunk/test/lang/objc/foundation/TestSymbolTable.py (removed)
@@ -1,68 +0,0 @@
-"""
-Test symbol table access for main.m.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-
- at skipUnlessDarwin
-class FoundationSymtabTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    symbols_list = ['-[MyString initWithNSString:]',
-                    '-[MyString dealloc]',
-                    '-[MyString description]',
-                    '-[MyString descriptionPauses]',     # synthesized property
-                    '-[MyString setDescriptionPauses:]', # synthesized property
-                    'Test_Selector',
-                    'Test_NSString',
-                    'Test_MyString',
-                    'Test_NSArray',
-                    'main'
-                    ]
-
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test symbol table access with Python APIs."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        #
-        # Exercise Python APIs to access the symbol table entries.
-        #
-
-        # Create the filespec by which to locate our a.out module.
-        filespec = lldb.SBFileSpec(exe, False)
-
-        module = target.FindModule(filespec)
-        self.assertTrue(module, VALID_MODULE)
-
-        # Create the set of known symbols.  As we iterate through the symbol
-        # table, remove the symbol from the set if it is a known symbol.
-        expected_symbols = set(self.symbols_list)
-        for symbol in module:
-            self.assertTrue(symbol, VALID_SYMBOL)
-            #print("symbol:", symbol)
-            name = symbol.GetName()
-            if name in expected_symbols:
-                #print("Removing %s from known_symbols %s" % (name, expected_symbols))
-                expected_symbols.remove(name)
-
-        # At this point, the known_symbols set should have become an empty set.
-        # If not, raise an error.
-        #print("symbols unaccounted for:", expected_symbols)
-        self.assertTrue(len(expected_symbols) == 0,
-                        "All the known symbols are accounted for")

Removed: lldb/trunk/test/lang/objc/foundation/const-strings.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/const-strings.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/const-strings.m (original)
+++ lldb/trunk/test/lang/objc/foundation/const-strings.m (removed)
@@ -1,24 +0,0 @@
-#import <Foundation/Foundation.h>
-
-// Tests to run:
-
-// Breakpoint 1
-// --
-// (lldb) expr (int)[str compare:@"hello"]
-// (int) $0 = 0
-// (lldb) expr (int)[str compare:@"world"]
-// (int) $1 = -1
-// (lldb) expr (int)[@"" length]
-// (int) $2 = 0
-
-int main ()
-{
-  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-
-  NSString *str = [NSString stringWithCString:"hello" encoding:NSASCIIStringEncoding];
-
-  NSLog(@"String \"%@\" has length %lu", str, [str length]); // Set breakpoint here.
-
-  [pool drain];
-  return 0;
-}

Removed: lldb/trunk/test/lang/objc/foundation/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/main.m (original)
+++ lldb/trunk/test/lang/objc/foundation/main.m (removed)
@@ -1,141 +0,0 @@
-#import <Foundation/Foundation.h>
-#include <unistd.h>
-#import "my-base.h"
-
- at interface MyString : MyBase {
-    NSString *str;
-    NSDate *date;
-    BOOL _desc_pauses;
-}
-
- at property(retain) NSString * str_property;
- at property BOOL descriptionPauses;
-
-- (id)initWithNSString:(NSString *)string;
- at end
-
- at implementation MyString
- at synthesize descriptionPauses = _desc_pauses;
- at synthesize str_property = str;
-
-- (id)initWithNSString:(NSString *)string
-{
-    if (self = [super init])
-    {
-        str = [NSString stringWithString:string];
-        date = [NSDate date];
-    }
-    self.descriptionPauses = NO;
-    return self;
-}
-
-- (void)dealloc
-{
-    [date release];
-    [str release];
-    [super dealloc];
-}
-
-- (NSString *)description
-{
-    // Set a breakpoint on '-[MyString description]' and test expressions:
-    // expression (char *)sel_getName(_cmd)
-  if (self.descriptionPauses)  // Break here for description test
-    {
-        printf ("\nAbout to sleep.\n");
-        usleep(100000);
-    }
-
-    return [str stringByAppendingFormat:@" with timestamp: %@", date];
-}
- at end
-
-int
-Test_Selector ()
-{
-    SEL sel = @selector(length);
-    printf("sel = %p\n", sel);
-    // Expressions to test here for selector: 
-    // expression (char *)sel_getName(sel)
-    //      The expression above should return "sel" as it should be just
-    //      a uniqued C string pointer. We were seeing the result pointer being
-    //      truncated with recent LLDBs.
-    return 0; // Break here for selector: tests
-}
-
-int
-Test_NSString (const char *program)
-{
-    NSString *str = [NSString stringWithFormat:@"Hello from '%s'", program];
-    NSLog(@"NSString instance: %@", str);
-    printf("str = '%s'\n", [str cStringUsingEncoding: [NSString defaultCStringEncoding]]);
-    printf("[str length] = %zu\n", (size_t)[str length]);
-    printf("[str description] = %s\n", [[str description] UTF8String]);
-    id str_id = str;
-    // Expressions to test here for NSString:
-    // expression (char *)sel_getName(sel)
-    // expression [str length]
-    // expression [str_id length]
-    // expression [str description]
-    // expression [str_id description]
-    // expression str.length
-    // expression str.description
-    // expression str = @"new"
-    // expression str = [NSString stringWithFormat: @"%cew", 'N']
-    return 0; // Break here for NSString tests
-}
-
-NSString *my_global_str = NULL;
-
-void
-Test_MyString (const char *program)
-{
-    my_global_str = @"This is a global string";
-    NSString *str = [NSString stringWithFormat:@"Hello from '%s'", program];
-    MyString *my = [[MyString alloc] initWithNSString:str];
-    NSLog(@"MyString instance: %@", [my description]);
-    my.descriptionPauses = YES;     // Set break point at this line.  Test 'expression -o -- my'.
-    NSLog(@"MyString instance: %@", [my description]);
-}
-
-int
-Test_NSArray ()
-{
-    NSMutableArray *nil_mutable_array = nil;
-    NSArray *array1 = [NSArray arrayWithObjects: @"array1 object1", @"array1 object2", @"array1 object3", nil];
-    NSArray *array2 = [NSArray arrayWithObjects: array1, @"array2 object2", @"array2 object3", nil];
-    // Expressions to test here for NSArray:
-    // expression [nil_mutable_array count]
-    // expression [array1 count]
-    // expression array1.count
-    // expression [array2 count]
-    // expression array2.count
-    id obj;
-    // After each object at index call, use expression and validate object
-    obj = [array1 objectAtIndex: 0]; // Break here for NSArray tests
-    obj = [array1 objectAtIndex: 1];
-    obj = [array1 objectAtIndex: 2];
-
-    obj = [array2 objectAtIndex: 0];
-    obj = [array2 objectAtIndex: 1];
-    obj = [array2 objectAtIndex: 2];
-    NSUInteger count = [nil_mutable_array count];
-    return 0;
-}
-
-
-int main (int argc, char const *argv[])
-{
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-    Test_Selector();
-    Test_NSArray ();
-    Test_NSString (argv[0]);
-    Test_MyString (argv[0]);
-
-    printf("sizeof(id) = %zu\n", sizeof(id));
-    printf("sizeof(Class) = %zu\n", sizeof(Class));
-    printf("sizeof(SEL) = %zu\n", sizeof(SEL));
-
-    [pool release];
-    return 0;
-}

Removed: lldb/trunk/test/lang/objc/foundation/my-base.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/my-base.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/my-base.h (original)
+++ lldb/trunk/test/lang/objc/foundation/my-base.h (removed)
@@ -1,8 +0,0 @@
- at interface MyBase : NSObject 
-{
-#if !__OBJC2__
-  int maybe_used; // The 1.0 runtime needs to have backed properties...
-#endif
-}
- at property int propertyMovesThings;
- at end

Removed: lldb/trunk/test/lang/objc/foundation/my-base.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/foundation/my-base.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/foundation/my-base.m (original)
+++ lldb/trunk/test/lang/objc/foundation/my-base.m (removed)
@@ -1,10 +0,0 @@
-#import <Foundation/Foundation.h>
-#import "my-base.h"
- at implementation MyBase
-#if __OBJC2__
- at synthesize propertyMovesThings;
-#else
- at synthesize propertyMovesThings = maybe_used;
-#endif
- at end
-

Removed: lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.h (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.h (removed)
@@ -1,11 +0,0 @@
-#import <Foundation/Foundation.h>
-#import <stdint.h>
-
- at interface InternalDefiner : NSObject {
- at public
-    uintptr_t foo;
-}
-
--(id)initWithFoo:(uintptr_t)f andBar:(uintptr_t)b;
-
- at end

Removed: lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.m (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/InternalDefiner.m (removed)
@@ -1,31 +0,0 @@
-#import "InternalDefiner.h"
-
- at interface InternalDefiner () {
-    uintptr_t bar;
-}
-
- at end
-
- at implementation InternalDefiner
-
--(id)init
-{
-    if (self = [super init])
-    {
-        foo = 2;
-        bar = 3;
-    }
-    return self;
-}
-
--(id)initWithFoo:(uintptr_t)f andBar:(uintptr_t)b
-{
-    if (self = [super init])
-    {
-        foo = f;
-        bar = b;
-    }
-    return self;
-}
-
- at end

Removed: lldb/trunk/test/lang/objc/hidden-ivars/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/Makefile (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/Makefile (removed)
@@ -1,9 +0,0 @@
-LEVEL = ../../../make
-
-DYLIB_NAME := InternalDefiner
-DYLIB_OBJC_SOURCES := InternalDefiner.m
-OBJC_SOURCES := main.m
-
-LD_EXTRAS = -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/TestHiddenIvars.py (removed)
@@ -1,174 +0,0 @@
-"""Test that hidden ivars in a shared library are visible from the main executable."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-import subprocess
-
-class HiddenIvarsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.source = 'main.m'
-        self.line = line_number(self.source, '// breakpoint1')
-        # The makefile names of the shared libraries as they appear in DYLIB_NAME.
-        # The names should have no loading "lib" or extension as they will be localized
-        self.shlib_names = ["InternalDefiner"]
-
-    @skipUnlessDarwin
-    @skipIfDwarf    # This test requires a stripped binary and a dSYM
-    @skipIfDWO      # This test requires a stripped binary and a dSYM
-    def test_expr_stripped(self):
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        else:
-            self.build()
-            self.expr(True)
-
-    @skipUnlessDarwin
-    def test_expr(self):
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        else:
-            self.build()
-            self.expr(False)
-
-    @skipUnlessDarwin
-    @skipIfDwarf    # This test requires a stripped binary and a dSYM
-    @skipIfDWO      # This test requires a stripped binary and a dSYM
-    def test_frame_variable_stripped(self):
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        else:
-            self.build()
-            self.frame_var(True)
-
-    @skipUnlessDarwin
-    def test_frame_variable(self):
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        else:
-            self.build()
-            self.frame_var(False)
-
-    @unittest2.expectedFailure("rdar://18683637")
-    @skipUnlessDarwin
-    def test_frame_variable_across_modules(self):
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        else:
-            self.build()
-            self.common_setup(False)
-            self.expect("frame variable k->bar", VARIABLES_DISPLAYED_CORRECTLY, substrs = ["= 3"])
-        
-    def common_setup(self, strip):
-        
-        if strip:
-            self.assertTrue(subprocess.call(['/usr/bin/strip', '-Sx', 'libInternalDefiner.dylib']) == 0, 'stripping dylib succeeded')
-            self.assertTrue(subprocess.call(['/bin/rm', '-rf', 'libInternalDefiner.dylib.dSYM']) == 0, 'remove dylib dSYM file succeeded')
-            self.assertTrue(subprocess.call(['/usr/bin/strip', '-Sx', 'a.out']) == 0, 'stripping a.out succeeded')
-        # Create a target by the debugger.
-        target = self.dbg.CreateTarget("a.out")
-        self.assertTrue(target, VALID_TARGET)
-
-        # Create the breakpoint inside function 'main'.
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-        
-        # Register our shared libraries for remote targets so they get automatically uploaded
-        environment = self.registerSharedLibrariesWithTarget(target, self.shlib_names)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, environment, self.get_process_working_directory())
-        self.assertTrue(process, PROCESS_IS_VALID)
-        
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-    def expr(self, strip):
-        self.common_setup(strip)
-
-        # This should display correctly.
-        self.expect("expression (j->_definer->foo)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 4"])
-
-        self.expect("expression (j->_definer->bar)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 5"])
-
-        if strip:
-            self.expect("expression *(j->_definer)", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 4"])
-        else:
-            self.expect("expression *(j->_definer)", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 4", "bar = 5"])
-
-        self.expect("expression (k->foo)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 2"])
-
-        self.expect("expression (k->bar)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 3"])
-
-        self.expect("expression k.filteredDataSource", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = [' = 0x', '"2 elements"'])
-
-        if strip:
-            self.expect("expression *(k)", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 2", ' = 0x', '"2 elements"'])
-        else:            
-            self.expect("expression *(k)", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 2", "bar = 3", '_filteredDataSource = 0x', '"2 elements"'])
-
-    def frame_var(self, strip):
-        self.common_setup(strip)
-
-        # This should display correctly.
-        self.expect("frame variable j->_definer->foo", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 4"])
-
-        if not strip:
-            self.expect("frame variable j->_definer->bar", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["= 5"])
-            
-        if strip:
-            self.expect("frame variable *j->_definer", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 4"])
-        else:
-            self.expect("frame variable *j->_definer", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 4", "bar = 5"])
-
-        self.expect("frame variable k->foo", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["= 2"])
-
-        self.expect("frame variable k->_filteredDataSource", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = [' = 0x', '"2 elements"'])
-
-        if strip:
-            self.expect("frame variable *k", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 2", '_filteredDataSource = 0x', '"2 elements"'])
-        else:
-            self.expect("frame variable *k", VARIABLES_DISPLAYED_CORRECTLY,
-                substrs = ["foo = 2", "bar = 3", '_filteredDataSource = 0x', '"2 elements"'])

Removed: lldb/trunk/test/lang/objc/hidden-ivars/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/hidden-ivars/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/hidden-ivars/main.m (original)
+++ lldb/trunk/test/lang/objc/hidden-ivars/main.m (removed)
@@ -1,54 +0,0 @@
-#import <Foundation/Foundation.h>
-#import "InternalDefiner.h"
-
- at interface Container : NSObject {
- at public
-    InternalDefiner *_definer;
-}
-
--(id)init;
- at end
-
- at implementation Container
-
--(id)init
-{
-    if (self = [super init])
-    {
-        _definer = [[InternalDefiner alloc] initWithFoo:4 andBar:5];
-    }
-    return self;
-}
-
- at end
-
- at interface InheritContainer : InternalDefiner 
- at property (nonatomic, strong) NSMutableArray *filteredDataSource;
--(id)init;
- at end
-
- at implementation InheritContainer
-
--(id)init
-{
-    if (self = [super initWithFoo:2 andBar:3])
-    {
-        self.filteredDataSource = [NSMutableArray arrayWithObjects:@"hello", @"world", nil];
-    }
-    return self;
-}
-
- at end
-
-int main(int argc, const char * argv[])
-{
-    @autoreleasepool {
-        Container *j = [[Container alloc] init];
-        InheritContainer *k = [[InheritContainer alloc] init];
-
-        printf("ivar value = %u\n", (unsigned)j->_definer->foo); // breakpoint1
-        printf("ivar value = %u\n", (unsigned)k->foo);
-    }   
-    return 0;
-}
-

Removed: lldb/trunk/test/lang/objc/ivar-IMP/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/Makefile (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/Makefile (removed)
@@ -1,12 +0,0 @@
-LEVEL = ../../../make
-
-myclass.o: myclass.h myclass.m
-	$(CC) myclass.m -c -o myclass.o
-
-repro: myclass.o repro.m
-	$(CC) -g -O0 myclass.o repro.m -framework Foundation
-
-cleanup:
-	rm -r myclass.o
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/TestObjCiVarIMP.py (removed)
@@ -1,62 +0,0 @@
-"""
-Test that dynamically discovered ivars of type IMP do not crash LLDB
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-import commands
-
-def execute_command (command):
-    # print('%% %s' % (command))
-    (exit_status, output) = commands.getstatusoutput (command)
-    # if output:
-    #     print(output)
-    # print('status = %u' % (exit_status))
-    return exit_status
-
-class ObjCiVarIMPTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipUnlessDarwin
-    @no_debug_info_test
-    def test_imp_ivar_type(self):
-        """Test that dynamically discovered ivars of type IMP do not crash LLDB"""
-        if self.getArchitecture() == 'i386':
-            # rdar://problem/9946499
-            self.skipTest("Dynamic types for ObjC V1 runtime not implemented")
-        
-        execute_command("make repro")
-        def cleanup():
-            execute_command("make cleanup")
-        self.addTearDownHook(cleanup)
-
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoint
-
-        bkpt = lldbutil.run_break_set_by_source_regexp (self, "break here")
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        self.expect('frame variable --ptr-depth=1 --show-types -d run -- object', substrs=[
-            '(MyClass *) object = 0x',
-            '(void *) myImp = 0x'
-        ])
-        self.expect('disassemble --start-address `((MyClass*)object)->myImp`', substrs=[
-            '-[MyClass init]'
-        ])

Removed: lldb/trunk/test/lang/objc/ivar-IMP/myclass.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/myclass.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/myclass.h (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/myclass.h (removed)
@@ -1,6 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface MyClass : NSObject
-{}
-- (id)init;
- at end

Removed: lldb/trunk/test/lang/objc/ivar-IMP/myclass.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/myclass.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/myclass.m (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/myclass.m (removed)
@@ -1,16 +0,0 @@
-#import <Foundation/Foundation.h>
-#import "MyClass.h"
-
- at implementation MyClass
-{
-  IMP myImp;
-}
-- (id)init {
-  if (self = [super init])
-  {
-    SEL theSelector = @selector(init);
-    self->myImp = [self methodForSelector:theSelector]; 
-  }
-  return self;
-}
- at end

Removed: lldb/trunk/test/lang/objc/ivar-IMP/repro.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/ivar-IMP/repro.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/ivar-IMP/repro.m (original)
+++ lldb/trunk/test/lang/objc/ivar-IMP/repro.m (removed)
@@ -1,7 +0,0 @@
-#import <Foundation/Foundation.h>
-#import "MyClass.h"
-
-int main() {
-  id object = [MyClass new];
-  return 0; // break here
-}

Removed: lldb/trunk/test/lang/objc/modules-auto-import/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-auto-import/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-auto-import/Makefile (original)
+++ lldb/trunk/test/lang/objc/modules-auto-import/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-OBJC_SOURCES := main.m
-
-CFLAGS += -fmodules -gmodules -g
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py (original)
+++ lldb/trunk/test/lang/objc/modules-auto-import/TestModulesAutoImport.py (removed)
@@ -1,53 +0,0 @@
-"""Test that importing modules in Objective-C works as expected."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class ObjCModulesAutoImportTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.m', '// Set breakpoint 0 here.')
-
-    @skipUnlessDarwin
-    @unittest2.expectedFailure("rdar://problem/19991953")
-    @expectedFailureDarwin # clang: error: unknown argument: '-gmodules'
-    @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
-    def test_expr(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.runCmd("settings set target.auto-import-clang-modules true")
-
-        self.expect("p getpid()", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["pid_t"])

Removed: lldb/trunk/test/lang/objc/modules-auto-import/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-auto-import/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-auto-import/main.m (original)
+++ lldb/trunk/test/lang/objc/modules-auto-import/main.m (removed)
@@ -1,7 +0,0 @@
- at import Darwin;
-
-int main()
-{
-    size_t ret = printf("Stop here\n"); // Set breakpoint 0 here.
-    return ret;
-}

Removed: lldb/trunk/test/lang/objc/modules-incomplete/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/Makefile (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m myModule.m
-
-include $(LEVEL)/Makefile.rules
-
-CFLAGS += -fmodules -I$(PWD)
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/TestIncompleteModules.py (removed)
@@ -1,61 +0,0 @@
-"""Test that DWARF types are trusted over module types"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class IncompleteModulesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.m', '// Set breakpoint 0 here.')
-
-    @skipUnlessDarwin
-    @unittest2.expectedFailure("rdar://20416388")
-    @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
-    def test_expr(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.runCmd("settings set target.clang-module-search-paths \"" + os.getcwd() + "\"")
-
-        self.expect("expr @import myModule; 3", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "3"])
-
-        self.expect("expr [myObject privateMethod]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "5"])
-
-        self.expect("expr MIN(2,3)", "#defined macro was found",
-            substrs = ["int", "2"])
-
-        self.expect("expr MAX(2,3)", "#undefd macro was correcltly not found",
-            error=True)

Removed: lldb/trunk/test/lang/objc/modules-incomplete/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/main.m (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/main.m (removed)
@@ -1,11 +0,0 @@
- at import Foundation;
- at import myModule;
-
-int main()
-{
-    @autoreleasepool
-    {
-        MyClass *myObject = [MyClass alloc];
-        [myObject publicMethod]; // Set breakpoint 0 here.
-    }
-}

Removed: lldb/trunk/test/lang/objc/modules-incomplete/module.map
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/module.map?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/module.map (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/module.map (removed)
@@ -1,4 +0,0 @@
-module myModule {
-  header "myModule.h"
-  export *
-}

Removed: lldb/trunk/test/lang/objc/modules-incomplete/myModule.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/myModule.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/myModule.h (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/myModule.h (removed)
@@ -1,8 +0,0 @@
- at import Foundation;
-
-#undef MAX
-
- at interface MyClass : NSObject {
-};
--(void)publicMethod;
- at end

Removed: lldb/trunk/test/lang/objc/modules-incomplete/myModule.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-incomplete/myModule.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-incomplete/myModule.m (original)
+++ lldb/trunk/test/lang/objc/modules-incomplete/myModule.m (removed)
@@ -1,14 +0,0 @@
-#include "myModule.h"
-#include "stdio.h"
-
- at implementation MyClass {
-};
--(void)publicMethod {
-  printf("Hello public!\n");
-}
--(int)privateMethod {
-  printf("Hello private!\n");
-  return 5;
-}
- at end
-

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/Makefile (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/Makefile (removed)
@@ -1,9 +0,0 @@
-LEVEL = ../../../make
-
-C_SOURCES := myModule.c
-
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-CFLAGS += -fmodules -I$(PWD)

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/TestModulesInlineFunctions.py (removed)
@@ -1,54 +0,0 @@
-"""Test that inline functions from modules are imported correctly"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class ModulesInlineFunctionsTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.m', '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
-    def test_expr(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.runCmd("settings set target.clang-module-search-paths \"" + os.getcwd() + "\"")
-
-        self.expect("expr @import myModule; 3", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "3"])
-
-        self.expect("expr isInline(2)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["4"])

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/main.m (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/main.m (removed)
@@ -1,9 +0,0 @@
- at import Darwin;
- at import myModule;
-
-int main()
-{
-    int a = isInline(2);
-    int b = notInline();
-    printf("%d %d\n", a, b); // Set breakpoint here.
-}

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/module.map
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/module.map?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/module.map (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/module.map (removed)
@@ -1,4 +0,0 @@
-module myModule {
-  header "myModule.h"
-  export *
-}

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/myModule.c
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/myModule.c?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/myModule.c (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/myModule.c (removed)
@@ -1,7 +0,0 @@
-#include "myModule.h"
-
-int notInline()
-{
-    return 3;
-}
-

Removed: lldb/trunk/test/lang/objc/modules-inline-functions/myModule.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules-inline-functions/myModule.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules-inline-functions/myModule.h (original)
+++ lldb/trunk/test/lang/objc/modules-inline-functions/myModule.h (removed)
@@ -1,7 +0,0 @@
-int notInline();
-
-static __inline__ __attribute__ ((always_inline)) int isInline(int a)
-{
-    int b = a + a;
-    return b;
-}

Removed: lldb/trunk/test/lang/objc/modules/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules/Makefile (original)
+++ lldb/trunk/test/lang/objc/modules/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/lang/objc/modules/TestObjCModules.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules/TestObjCModules.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules/TestObjCModules.py (original)
+++ lldb/trunk/test/lang/objc/modules/TestObjCModules.py (removed)
@@ -1,71 +0,0 @@
-"""Test that importing modules in Objective-C works as expected."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class ObjCModulesTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.m', '// Set breakpoint 0 here.')
-
-    @skipUnlessDarwin
-    @unittest2.expectedFailure("rdar://20416388")
-    @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
-    def test_expr(self):
-        if not self.applies():
-            return
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.expect("expr @import Darwin; 3", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "3"])
-
-        self.expect("expr getpid()", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["pid_t"])
-
-        self.expect("expr @import Foundation; 4", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["int", "4"])
-
-        self.expect("expr string.length", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSUInteger", "5"])
-
-        self.expect("expr array.count", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSUInteger", "3"])
-
-        self.expect("p *[NSURL URLWithString:@\"http://lldb.llvm.org\"]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSURL", "isa", "_urlString"])
-
-        self.expect("p [NSURL URLWithString:@\"http://lldb.llvm.org\"].scheme", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["http"])

Removed: lldb/trunk/test/lang/objc/modules/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/modules/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/modules/main.m (original)
+++ lldb/trunk/test/lang/objc/modules/main.m (removed)
@@ -1,12 +0,0 @@
-#import <Foundation/Foundation.h>
-
-int main()
-{
-    @autoreleasepool
-    {
-        NSString *string = @"Hello";
-        NSArray *array = @[ @1, @2, @3 ];
-
-        NSLog(@"Stop here"); // Set breakpoint 0 here.
-    }
-}

Removed: lldb/trunk/test/lang/objc/objc++/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc%2B%2B/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc++/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc++/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJCXX_SOURCES := main.mm
-LD_EXTRAS = -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc++/TestObjCXX.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc%2B%2B/TestObjCXX.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc++/TestObjCXX.py (original)
+++ lldb/trunk/test/lang/objc/objc++/TestObjCXX.py (removed)
@@ -1,33 +0,0 @@
-"""
-Make sure that ivars of Objective-C++ classes are visible in LLDB.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class ObjCXXTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    @skipUnlessDarwin
-    def test_break(self):
-        """Test ivars of Objective-C++ classes"""
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires Objective-C 2.0 runtime")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_source_regexp (self, 'breakpoint 1', num_expected_locations=1) 
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        self.expect("expr f->f", "Found ivar in class",
-            substrs = ["= 3"])

Removed: lldb/trunk/test/lang/objc/objc++/main.mm
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc%2B%2B/main.mm?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc++/main.mm (original)
+++ lldb/trunk/test/lang/objc/objc++/main.mm (removed)
@@ -1,19 +0,0 @@
-#include <Foundation/NSObject.h>
-
- at interface F : NSObject
- at end
-
- at implementation F
-{
- at public
-    int f;
-}
-
- at end
-
-int main(int argc, char* argv[])
-{
-    F* f = [F new];
-    f->f = 3;
-    return 0; // breakpoint 1
-}

Removed: lldb/trunk/test/lang/objc/objc-baseclass-sbtype/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-baseclass-sbtype/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-baseclass-sbtype/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-baseclass-sbtype/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-LD_EXTRAS = -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py (original)
+++ lldb/trunk/test/lang/objc/objc-baseclass-sbtype/TestObjCBaseClassSBType.py (removed)
@@ -1,57 +0,0 @@
-"""
-Use lldb Python API to test base class resolution for ObjC classes
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ObjCDynamicValueTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        self.line = line_number('main.m', '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_get_baseclass(self):
-        """Test fetching ObjC dynamic values."""
-        if self.getArchitecture() == 'i386':
-            # rdar://problem/9946499
-            self.skipTest("Dynamic types for ObjC V1 runtime not implemented")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-
-        target.BreakpointCreateByLocation('main.m', self.line)
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        var = self.frame().FindVariable("foo")
-        var_ptr_type = var.GetType()
-        var_pte_type = var_ptr_type.GetPointeeType()
-        self.assertTrue(var_ptr_type.GetNumberOfDirectBaseClasses() == 1, "Foo * has one base class")
-        self.assertTrue(var_pte_type.GetNumberOfDirectBaseClasses() == 1, "Foo has one base class")
-
-        self.assertTrue(var_ptr_type.GetDirectBaseClassAtIndex(0).IsValid(), "Foo * has a valid base class")
-        self.assertTrue(var_pte_type.GetDirectBaseClassAtIndex(0).IsValid(), "Foo * has a valid base class")
-
-        self.assertTrue(var_ptr_type.GetDirectBaseClassAtIndex(0).GetName() == var_pte_type.GetDirectBaseClassAtIndex(0).GetName(), "Foo and its pointer type don't agree on their base class")

Removed: lldb/trunk/test/lang/objc/objc-baseclass-sbtype/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-baseclass-sbtype/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-baseclass-sbtype/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-baseclass-sbtype/main.m (removed)
@@ -1,22 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Foo : NSObject {}
-
--(id) init;
-
- at end
-
- at implementation Foo
-
--(id) init
-{
-    return self = [super init];
-}
- at end
-int main ()
-{
-    Foo *foo = [Foo new];
-	NSLog(@"a"); // Set breakpoint here.
-	return 0;
-}
-

Removed: lldb/trunk/test/lang/objc/objc-builtin-types/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-builtin-types/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-builtin-types/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-builtin-types/Makefile (removed)
@@ -1,5 +0,0 @@
-LEVEL = ../../../make
-
-CXX_SOURCES := main.cpp
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py (original)
+++ lldb/trunk/test/lang/objc/objc-builtin-types/TestObjCBuiltinTypes.py (removed)
@@ -1,55 +0,0 @@
-"""Test that the expression parser doesn't get confused by 'id' and 'Class'"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCBuiltinTypes(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.cpp"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    #<rdar://problem/10591460> [regression] Can't print ivar value: error: reference to 'id' is ambiguous
-    def test_with_python_api(self):
-        """Test expression parser respect for ObjC built-in types."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        # Now make sure we can call a function in the class method we've stopped in.
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        self.expect("expr (foo)", patterns = ["\(ns::id\) \$.* = 0"])
-
-        self.expect("expr id my_id = 0; my_id", patterns = ["\(id\) \$.* = nil"])

Removed: lldb/trunk/test/lang/objc/objc-builtin-types/main.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-builtin-types/main.cpp?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-builtin-types/main.cpp (original)
+++ lldb/trunk/test/lang/objc/objc-builtin-types/main.cpp (removed)
@@ -1,9 +0,0 @@
-namespace ns {
-  typedef int id;
-};
-
-int main()
-{
-  ns::id foo = 0;
-  return foo; // Set breakpoint here.
-}

Removed: lldb/trunk/test/lang/objc/objc-checker/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-checker/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-checker/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-checker/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py (original)
+++ lldb/trunk/test/lang/objc/objc-checker/TestObjCCheckers.py (removed)
@@ -1,74 +0,0 @@
-"""
-Use lldb Python API to make sure the dynamic checkers are doing their jobs.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ObjCCheckerTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        # Find the line number to break for main.c.                                                                                       
-        self.source_name = 'main.m'
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_objc_checker(self):
-        """Test that checkers catch unrecognized selectors"""
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires Objective-C 2.0 runtime")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-
-        
-        main_bkpt = target.BreakpointCreateBySourceRegex ("Set a breakpoint here.", lldb.SBFileSpec (self.source_name))
-        self.assertTrue(main_bkpt and
-                        main_bkpt.GetNumLocations() == 1,
-                        VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, main_bkpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        #
-        #  The class Simple doesn't have a count method.  Make sure that we don't 
-        #  actually try to send count but catch it as an unrecognized selector.
-
-        frame = thread.GetFrameAtIndex(0)
-        expr_value = frame.EvaluateExpression("(int) [my_simple count]", False)
-        expr_error = expr_value.GetError()
-
-        self.assertTrue (expr_error.Fail())
-        
-        # Make sure the call produced no NSLog stdout.
-        stdout = process.GetSTDOUT(100)
-        self.assertTrue (len(stdout) == 0)
-        
-        # Make sure the error is helpful:
-        err_string = expr_error.GetCString()
-        self.assertTrue ("selector" in err_string)

Removed: lldb/trunk/test/lang/objc/objc-checker/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-checker/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-checker/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-checker/main.m (removed)
@@ -1,32 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Simple : NSObject
-{
-  int _value;
-}
-- (int) value;
-- (void) setValue: (int) newValue;
- at end
-
- at implementation Simple
-- (int) value
-{
-  return _value;
-}
-
-- (void) setValue: (int) newValue
-{
-  _value = newValue;
-}
- at end
-
-int main ()
-{
-  NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
-  Simple *my_simple = [[Simple alloc] init];
-  my_simple.value = 20;
-  // Set a breakpoint here.
-  NSLog (@"Object has value: %d.", my_simple.value); 
-  [pool drain];
-  return 0;
-}

Removed: lldb/trunk/test/lang/objc/objc-class-method/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-class-method/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-class-method/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-class-method/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := class.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py (original)
+++ lldb/trunk/test/lang/objc/objc-class-method/TestObjCClassMethod.py (removed)
@@ -1,56 +0,0 @@
-"""Test calling functions in class methods."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCClassMethod(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "class.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @expectedFailurei386
-    @add_test_categories(['pyapi'])
-    #rdar://problem/9745789 "expression" can't call functions in class methods
-    def test_with_python_api(self):
-        """Test calling functions in class methods."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        # Now make sure we can call a function in the class method we've stopped in.
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        cmd_value = frame.EvaluateExpression ("(int)[Foo doSomethingWithString:@\"Hello\"]")
-        self.assertTrue (cmd_value.IsValid())
-        self.assertTrue (cmd_value.GetValueAsUnsigned() == 5)

Removed: lldb/trunk/test/lang/objc/objc-class-method/class.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-class-method/class.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-class-method/class.m (original)
+++ lldb/trunk/test/lang/objc/objc-class-method/class.m (removed)
@@ -1,24 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Foo : NSObject
-+(int) doSomethingWithString: (NSString *) string;
--(int) doSomethingInstance: (NSString *) string;
- at end
-
- at implementation Foo
-+(int) doSomethingWithString: (NSString *) string
-{
-  NSLog (@"String is: %@.", string);
-  return [string length];
-}
-
--(int) doSomethingInstance: (NSString *)string
-{
-  return [Foo doSomethingWithString:string];
-}
- at end
-
-int main()
-{
-  return 0; // Set breakpoint here.
-}

Removed: lldb/trunk/test/lang/objc/objc-dyn-sbtype/.categories
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dyn-sbtype/.categories?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dyn-sbtype/.categories (original)
+++ lldb/trunk/test/lang/objc/objc-dyn-sbtype/.categories (removed)
@@ -1 +0,0 @@
-dyntype

Removed: lldb/trunk/test/lang/objc/objc-dyn-sbtype/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dyn-sbtype/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dyn-sbtype/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-dyn-sbtype/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-LD_EXTRAS = -framework Foundation

Removed: lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py (original)
+++ lldb/trunk/test/lang/objc/objc-dyn-sbtype/TestObjCDynamicSBType.py (removed)
@@ -1,62 +0,0 @@
-"""
-Test that we are able to properly report a usable dynamic type
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
- at skipUnlessDarwin
-class ObjCDynamicSBTypeTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # We'll use the test method name as the exe_name.
-        self.exe_name = self.testMethodName
-        # Find the line number to break inside main().
-        self.main_source = "main.m"
-        self.line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipIfi386
-    def test_dyn(self):
-        """Test that we are able to properly report a usable dynamic type."""
-        d = {'EXE': self.exe_name}
-        self.build(dictionary=d)
-        self.setTearDownCleanup(dictionary=d)
-
-        exe = os.path.join(os.getcwd(), self.exe_name)
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_file_and_line (self, self.main_source, self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        v_object = self.frame().FindVariable("object").GetDynamicValue(lldb.eDynamicCanRunTarget)
-        v_base = self.frame().FindVariable("base").GetDynamicValue(lldb.eDynamicCanRunTarget)
-        self.assertTrue(v_object.GetTypeName() == "MyDerivedClass *", "The NSObject is properly type-named")
-        self.assertTrue(v_base.GetTypeName() == "MyDerivedClass *", "The Base is properly type-named")
-        object_type = v_object.GetType()
-        base_type = v_base.GetType()
-        self.assertTrue(object_type.GetName() == "MyDerivedClass *", "The dynamic SBType for NSObject is for the correct type")
-        self.assertTrue(base_type.GetName() == "MyDerivedClass *", "The dynamic SBType for Base is for the correct type")
-        object_pointee_type = object_type.GetPointeeType()
-        base_pointee_type = base_type.GetPointeeType()
-        self.assertTrue(object_pointee_type.GetName() == "MyDerivedClass", "The dynamic type for NSObject figures out its pointee type just fine")
-        self.assertTrue(base_pointee_type.GetName() == "MyDerivedClass", "The dynamic type for Base figures out its pointee type just fine")
-
-        self.assertTrue(object_pointee_type.GetDirectBaseClassAtIndex(0).GetName() == "MyBaseClass", "The dynamic type for NSObject can go back to its base class")
-        self.assertTrue(base_pointee_type.GetDirectBaseClassAtIndex(0).GetName() == "MyBaseClass", "The dynamic type for Base can go back to its base class")
-
-        self.assertTrue(object_pointee_type.GetDirectBaseClassAtIndex(0).GetType().GetDirectBaseClassAtIndex(0).GetName() == "NSObject", "The dynamic type for NSObject can go up the hierarchy")
-        self.assertTrue(base_pointee_type.GetDirectBaseClassAtIndex(0).GetType().GetDirectBaseClassAtIndex(0).GetName() == "NSObject", "The dynamic type for Base can go up the hierarchy")
-
-        self.assertTrue(object_pointee_type.GetNumberOfFields() == 2, "The dynamic type for NSObject has 2 fields")
-        self.assertTrue(base_pointee_type.GetNumberOfFields() == 2, "The dynamic type for Base has 2 fields")

Removed: lldb/trunk/test/lang/objc/objc-dyn-sbtype/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dyn-sbtype/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dyn-sbtype/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-dyn-sbtype/main.m (removed)
@@ -1,53 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface MyBaseClass : NSObject
-{}
--(id) init;
--(int) getInt;
- at end
-
- at implementation MyBaseClass
-- (id) init {
-	return (self = [super init]);
-}
-
-- (int) getInt {
-	return 1;
-}
- at end
-
- at interface MyDerivedClass : MyBaseClass
-{
-	int x;
-	int y;
-}
--(id) init;
--(int) getInt;
- at end
-
- at implementation MyDerivedClass
-- (id) init {
-	self = [super init];
-	if (self) {
-		self-> x = 0;
-		self->y = 1;
-	}
-	return self;
-}
-
-- (int) getInt {
-	y = x++;
-	return x;
-}
- at end
-
-
-int main (int argc, char const *argv[])
-{
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];	
-	NSObject* object = [[MyDerivedClass alloc] init];
-	MyBaseClass* base = [[MyDerivedClass alloc] init];
-    [pool release]; // Set breakpoint here.
-    return 0;
-}
-

Removed: lldb/trunk/test/lang/objc/objc-dynamic-value/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dynamic-value/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dynamic-value/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-dynamic-value/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := dynamic-value.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py (original)
+++ lldb/trunk/test/lang/objc/objc-dynamic-value/TestObjCDynamicValue.py (removed)
@@ -1,176 +0,0 @@
-"""
-Use lldb Python API to test dynamic values in ObjC
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ObjCDynamicValueTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        # Find the line number to break for main.c.                                                                                       
-
-        self.source_name = 'dynamic-value.m'
-        self.set_property_line = line_number(self.source_name, '// This is the line in setProperty, make sure we step to here.')
-        self.handle_SourceBase = line_number(self.source_name,
-                                                 '// Break here to check dynamic values.')
-        self.main_before_setProperty_line = line_number(self.source_name,
-                                                       '// Break here to see if we can step into real method.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    @expectedFailureDarwin("llvm.org/pr20271 rdar://18684107")
-    def test_get_objc_dynamic_vals(self):
-        """Test fetching ObjC dynamic values."""
-        if self.getArchitecture() == 'i386':
-            # rdar://problem/9946499
-            self.skipTest("Dynamic types for ObjC V1 runtime not implemented")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-
-        handle_SourceBase_bkpt = target.BreakpointCreateByLocation(self.source_name, self.handle_SourceBase)
-        self.assertTrue(handle_SourceBase_bkpt and
-                        handle_SourceBase_bkpt.GetNumLocations() == 1,
-                        VALID_BREAKPOINT)
-
-        main_before_setProperty_bkpt = target.BreakpointCreateByLocation(self.source_name, self.main_before_setProperty_line)
-        self.assertTrue(main_before_setProperty_bkpt and
-                        main_before_setProperty_bkpt.GetNumLocations() == 1,
-                        VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, main_before_setProperty_bkpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        #
-        #  At this point, myObserver has a Source pointer that is actually a KVO swizzled SourceDerived
-        #  make sure we can get that properly:
-
-        frame = thread.GetFrameAtIndex(0)
-        myObserver = frame.FindVariable('myObserver', lldb.eDynamicCanRunTarget)
-        self.assertTrue (myObserver)
-        myObserver_source = myObserver.GetChildMemberWithName ('_source', lldb.eDynamicCanRunTarget)
-        self.examine_SourceDerived_ptr (myObserver_source)
-
-        #
-        #  Make sure a static value can be correctly turned into a dynamic value.
-
-        frame = thread.GetFrameAtIndex(0)
-        myObserver_static = frame.FindVariable('myObserver', lldb.eNoDynamicValues)
-        self.assertTrue (myObserver_static)
-        myObserver = myObserver_static.GetDynamicValue (lldb.eDynamicCanRunTarget)
-        myObserver_source = myObserver.GetChildMemberWithName ('_source', lldb.eDynamicCanRunTarget)
-        self.examine_SourceDerived_ptr (myObserver_source)
-
-        # The "frame var" code uses another path to get into children, so let's
-        # make sure that works as well:
-
-        result = lldb.SBCommandReturnObject()
-
-        self.expect('frame var -d run-target myObserver->_source', 'frame var finds its way into a child member',
-            patterns = ['\(SourceDerived \*\)'])
-        
-        # check that our ObjC GetISA() does a good job at hiding KVO swizzled classes
-        
-        self.expect('frame var -d run-target myObserver->_source -T', 'the KVO-ed class is hidden',
-                    substrs = ['SourceDerived'])
-
-        self.expect('frame var -d run-target myObserver->_source -T', 'the KVO-ed class is hidden', matching = False,
-                    substrs = ['NSKVONotify'])
-
-        # This test is not entirely related to the main thrust of this test case, but since we're here,
-        # try stepping into setProperty, and make sure we get into the version in Source:
-
-        thread.StepInto()
-
-        threads = lldbutil.get_stopped_threads (process, lldb.eStopReasonPlanComplete)
-        self.assertTrue (len(threads) == 1)
-        line_entry = threads[0].GetFrameAtIndex(0).GetLineEntry()
-
-        self.assertEqual (line_entry.GetLine(), self.set_property_line)
-        self.assertEqual (line_entry.GetFileSpec().GetFilename(), self.source_name) 
-
-        # Okay, back to the main business.  Continue to the handle_SourceBase and make sure we get the correct dynamic value.
-
-        threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-
-        # Get "object" using FindVariable:
-
-        noDynamic = lldb.eNoDynamicValues
-        useDynamic = lldb.eDynamicCanRunTarget
-
-        object_static = frame.FindVariable ('object', noDynamic)
-        object_dynamic = frame.FindVariable ('object', useDynamic)
-
-        # Delete this object to make sure that this doesn't cause havoc with the dynamic object that depends on it.
-        del (object_static)
-
-        self.examine_SourceDerived_ptr (object_dynamic)
-        
-        # Get "this" using FindValue, make sure that works too:
-        object_static = frame.FindValue ('object', lldb.eValueTypeVariableArgument, noDynamic)
-        object_dynamic = frame.FindValue ('object', lldb.eValueTypeVariableArgument, useDynamic)
-        del (object_static)
-        self.examine_SourceDerived_ptr (object_dynamic)
-
-        # Get "this" using the EvaluateExpression:
-        object_static = frame.EvaluateExpression ('object', noDynamic)
-        object_dynamic = frame.EvaluateExpression ('object', useDynamic)
-        del (object_static)
-        self.examine_SourceDerived_ptr (object_dynamic)
-        
-        # Continue again to the handle_SourceBase and make sure we get the correct dynamic value.
-        # This one looks exactly the same, but in fact this is an "un-KVO'ed" version of SourceBase, so
-        # its isa pointer points to SourceBase not NSKVOSourceBase or whatever...
-
-        threads = lldbutil.continue_to_breakpoint (process, handle_SourceBase_bkpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-
-        frame = thread.GetFrameAtIndex(0)
-
-        # Get "object" using FindVariable:
-
-        object_static = frame.FindVariable ('object', noDynamic)
-        object_dynamic = frame.FindVariable ('object', useDynamic)
-
-        # Delete this object to make sure that this doesn't cause havoc with the dynamic object that depends on it.
-        del (object_static)
-
-        self.examine_SourceDerived_ptr (object_dynamic)
-
-    def examine_SourceDerived_ptr (self, object):
-        self.assertTrue (object)
-        self.assertTrue (object.GetTypeName().find ('SourceDerived') != -1)
-        derivedValue = object.GetChildMemberWithName ('_derivedValue')
-        self.assertTrue (derivedValue)
-        self.assertTrue (int (derivedValue.GetValue(), 0) == 30)

Removed: lldb/trunk/test/lang/objc/objc-dynamic-value/dynamic-value.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-dynamic-value/dynamic-value.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-dynamic-value/dynamic-value.m (original)
+++ lldb/trunk/test/lang/objc/objc-dynamic-value/dynamic-value.m (removed)
@@ -1,147 +0,0 @@
-#import <Foundation/Foundation.h>
-
-// SourceBase will be the base class of Source.  We'll pass a Source object into a
-// function as a SourceBase, and then see if the dynamic typing can get us through the KVO
-// goo and all the way back to Source.
-
- at interface SourceBase: NSObject
-{
-    uint32_t _value;
-}
-- (SourceBase *) init;
-- (uint32_t) getValue;
- at end
-
- at implementation SourceBase
-- (SourceBase *) init
-{
-    [super init];
-    _value = 10;
-    return self;
-}
-- (uint32_t) getValue
-{
-    return _value;
-}
- at end
-
-// Source is a class that will be observed by the Observer class below.
-// When Observer sets itself up to observe this property (in initWithASource)
-// the KVO system will overwrite the "isa" pointer of the object with the "kvo'ed" 
-// one.
-
- at interface Source : SourceBase
-{
-    int _property;
-}
-- (Source *) init;
-- (void) setProperty: (int) newValue;
- at end
-
- at implementation Source
-- (Source *) init
-{
-    [super init];
-    _property = 20;
-    return self;
-}
-- (void) setProperty: (int) newValue
-{
-    _property = newValue;  // This is the line in setProperty, make sure we step to here.
-}
- at end
-
- at interface SourceDerived : Source
-{
-    int _derivedValue;
-}
-- (SourceDerived *) init;
-- (uint32_t) getValue;
- at end
-
- at implementation SourceDerived
-- (SourceDerived *) init
-{
-    [super init];
-    _derivedValue = 30;
-    return self;
-}
-- (uint32_t) getValue
-{
-    return _derivedValue;
-}
- at end
-
-// Observer is the object that will watch Source and cause KVO to swizzle it...
-
- at interface Observer : NSObject
-{
-    Source *_source;
-}
-+ (Observer *) observerWithSource: (Source *) source;
-- (Observer *) initWithASource: (Source *) source;
-- (void) observeValueForKeyPath: (NSString *) path 
-		       ofObject: (id) object
-			 change: (NSDictionary *) change
-			context: (void *) context;
- at end
-
- at implementation Observer
-
-+ (Observer *) observerWithSource: (Source *) inSource;
-{
-    Observer *retval;
-
-    retval = [[Observer alloc] initWithASource: inSource];
-    return retval;
-}
-
-- (Observer *) initWithASource: (Source *) source
-{
-    [super init];
-    _source = source;
-    [_source addObserver: self 
-	    forKeyPath: @"property" 
-	    options: (NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)
-	    context: NULL];
-    return self;
-}
-
-- (void) observeValueForKeyPath: (NSString *) path 
-		       ofObject: (id) object
-			 change: (NSDictionary *) change
-			context: (void *) context
-{
-    printf ("Observer function called.\n");
-    return;
-}
- at end
-
-uint32_t 
-handle_SourceBase (SourceBase *object)
-{
-    return [object getValue];  // Break here to check dynamic values.
-}
-
-int main ()
-{
-    Source *mySource;
-    Observer *myObserver;
-
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
-    mySource = [[SourceDerived alloc] init];
-    myObserver = [Observer observerWithSource: mySource];
-
-    [mySource setProperty: 5];      // Break here to see if we can step into real method.
-    
-    uint32_t return_value = handle_SourceBase (mySource);
-
-    SourceDerived *unwatchedSource = [[SourceDerived alloc] init];
-    
-    return_value = handle_SourceBase (unwatchedSource);
-    
-    [pool release];
-    return 0;
-
-}

Removed: lldb/trunk/test/lang/objc/objc-ivar-offsets/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := objc-ivar-offsets.m main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/TestObjCIvarOffsets.py (removed)
@@ -1,74 +0,0 @@
-"""Test printing ObjC objects that use unbacked properties - so that the static ivar offsets are incorrect."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestObjCIvarOffsets(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.m"
-        self.stop_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test printing ObjC objects that use unbacked properties"""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation(self.main_source, self.stop_line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue (process, "Created a process.")
-        self.assertTrue (process.GetState() == lldb.eStateStopped, "Stopped it too.")
-
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-        
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (frame, "frame 0 is valid")
-        
-        mine = thread.GetFrameAtIndex(0).FindVariable("mine")
-        self.assertTrue(mine, "Found local variable mine.")
-        
-        # Test the value object value for BaseClass->_backed_int
-
-        error = lldb.SBError()
-
-        mine_backed_int = mine.GetChildMemberWithName ("_backed_int")
-        self.assertTrue(mine_backed_int, "Found mine->backed_int local variable.")
-        backed_value = mine_backed_int.GetValueAsSigned (error)
-        self.assertTrue (error.Success())
-        self.assertTrue (backed_value == 1111)
-        
-        # Test the value object value for DerivedClass->_derived_backed_int
-
-        mine_derived_backed_int = mine.GetChildMemberWithName ("_derived_backed_int")
-        self.assertTrue(mine_derived_backed_int, "Found mine->derived_backed_int local variable.")
-        derived_backed_value = mine_derived_backed_int.GetValueAsSigned (error)
-        self.assertTrue (error.Success())
-        self.assertTrue (derived_backed_value == 3333)
-
-        # Make sure we also get bit-field offsets correct:
-
-        mine_flag2 = mine.GetChildMemberWithName ("flag2")
-        self.assertTrue(mine_flag2, "Found mine->flag2 local variable.")
-        flag2_value = mine_flag2.GetValueAsUnsigned (error)
-        self.assertTrue (error.Success())
-        self.assertTrue (flag2_value == 7)

Removed: lldb/trunk/test/lang/objc/objc-ivar-offsets/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/main.m (removed)
@@ -1,15 +0,0 @@
-#include "objc-ivar-offsets.h"
-
-int
-main ()
-{
-  DerivedClass *mine = [[DerivedClass alloc] init];
-  mine.backed_int = 1111;
-  mine.unbacked_int = 2222;
-  mine.derived_backed_int = 3333;
-  mine.derived_unbacked_int = 4444;
-  mine->flag1 = 1;
-  mine->flag2 = 7;
-
-  return 0;  // Set breakpoint here.
-}

Removed: lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.h (removed)
@@ -1,27 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface BaseClass : NSObject
-{
-  int _backed_int;
-#if !__OBJC2__
-  int _unbacked_int;
-#endif
-}
- at property int backed_int;
- at property int unbacked_int;
- at end
-
- at interface DerivedClass : BaseClass
-{
-  int _derived_backed_int;
-#if !__OBJC2__
-  int _derived_unbacked_int;
-#endif
-  @public
-  uint32_t flag1 : 1;
-  uint32_t flag2 : 3;
-}
-
- at property int derived_backed_int;
- at property int derived_unbacked_int;
- at end

Removed: lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.m (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-offsets/objc-ivar-offsets.m (removed)
@@ -1,19 +0,0 @@
-#import "objc-ivar-offsets.h"
-
- at implementation BaseClass
- at synthesize backed_int = _backed_int;
-#if __OBJC2__
- at synthesize unbacked_int;
-#else
- at synthesize unbacked_int = _unbacked_int;
-#endif
- at end
-
- at implementation DerivedClass
- at synthesize derived_backed_int = _derived_backed_int;
-#if __OBJC2__
- at synthesize derived_unbacked_int;
-#else
- at synthesize derived_unbacked_int = _derived_unbacked_int;
-#endif
- at end

Removed: lldb/trunk/test/lang/objc/objc-ivar-protocols/TestIvarProtocols.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-protocols/TestIvarProtocols.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-protocols/TestIvarProtocols.py (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-protocols/TestIvarProtocols.py (removed)
@@ -1,4 +0,0 @@
-import lldbinline
-import lldbtest
-
-lldbinline.MakeInlineTest(__file__, globals(), [lldbtest.skipIfFreeBSD,lldbtest.skipIfLinux,lldbtest.skipIfWindows])

Removed: lldb/trunk/test/lang/objc/objc-ivar-protocols/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-protocols/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-protocols/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-protocols/main.m (removed)
@@ -1,33 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at protocol MyProtocol
--(void)aMethod;
- at end
-
- at interface MyClass : NSObject {
-  id <MyProtocol> myId;
-  NSObject <MyProtocol> *myObject;
-};
-
--(void)doSomething;
-
- at end
-
- at implementation MyClass
-
--(void)doSomething
-{
-  NSLog(@"Hello"); //% self.expect("expression -- myId", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["id"]);
-                   //% self.expect("expression -- myObject", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["NSObject"]);
-}
-
- at end
-
-int main ()
-{
-  @autoreleasepool
-  {
-    MyClass *c = [MyClass alloc];
-    [c doSomething];
-  }
-}

Removed: lldb/trunk/test/lang/objc/objc-ivar-stripped/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-stripped/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-stripped/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-stripped/Makefile (removed)
@@ -1,15 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-default:        a.out.stripped
-
-a.out.stripped: a.out.dSYM
-	strip -o a.out.stripped a.out
-
-clean::
-	rm -f a.out.stripped
-	rm -rf a.out.stripped.dSYM
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-stripped/TestObjCIvarStripped.py (removed)
@@ -1,59 +0,0 @@
-"""Test printing ObjC objects that use unbacked properties - so that the static ivar offsets are incorrect."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-
-class TestObjCIvarStripped(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "main.m"
-        self.stop_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @skipIfDwarf    # This test requires a stripped binary and a dSYM
-    @skipIfDWO      # This test requires a stripped binary and a dSYM
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test that we can find stripped Objective-C ivars in the runtime"""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out.stripped")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        self.dbg.HandleCommand("add-dsym a.out.dSYM")
-
-        breakpoint = target.BreakpointCreateByLocation(self.main_source, self.stop_line)
-        self.assertTrue(breakpoint.IsValid() and breakpoint.GetNumLocations() > 0, VALID_BREAKPOINT)
-
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-        self.assertTrue (process, "Created a process.")
-        self.assertTrue (process.GetState() == lldb.eStateStopped, "Stopped it too.")
-
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, breakpoint)
-        self.assertTrue (len(thread_list) == 1)
-        thread = thread_list[0]
-        
-        frame = thread.GetFrameAtIndex(0)
-        self.assertTrue (frame, "frame 0 is valid")
-        
-        # Test the expression for mc->_foo
-
-        error = lldb.SBError()
-
-        ivar = frame.EvaluateExpression ("(mc->_foo)")
-        self.assertTrue(ivar, "Got result for mc->_foo")
-        ivar_value = ivar.GetValueAsSigned (error)
-        self.assertTrue (error.Success())
-        self.assertTrue (ivar_value == 3)

Removed: lldb/trunk/test/lang/objc/objc-ivar-stripped/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-ivar-stripped/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-ivar-stripped/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-ivar-stripped/main.m (removed)
@@ -1,33 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface MyClass : NSObject {
- at public
-  int _foo;
-};
-
--(id)init;
- at end
-
- at implementation MyClass
-
--(id)init
-{
-  if ([super init])
-  {
-    _foo = 3;
-  }
-
-  return self;
-}
-
- at end
-
-int main ()
-{
-  @autoreleasepool
-  {
-    MyClass *mc = [[MyClass alloc] init];
-
-    NSLog(@"%d", mc->_foo); // Set breakpoint here.
-  }
-}

Removed: lldb/trunk/test/lang/objc/objc-new-syntax/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-new-syntax/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-new-syntax/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-new-syntax/Makefile (removed)
@@ -1,7 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-
-include $(LEVEL)/Makefile.rules
-
-LDFLAGS += -framework Foundation

Removed: lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py (original)
+++ lldb/trunk/test/lang/objc/objc-new-syntax/TestObjCNewSyntax.py (removed)
@@ -1,103 +0,0 @@
-"""Test that the Objective-C syntax for dictionary/array literals and indexing works"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import unittest2
-import os, time
-import lldb
-import platform
-import lldbutil
-
-from distutils.version import StrictVersion
-
-from lldbtest import *
-
-class ObjCNewSyntaxTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line number to break inside main().
-        self.line = line_number('main.m', '// Set breakpoint 0 here.')
-
-    @skipUnlessDarwin
-    @expectedFailureAll(oslist=['macosx'], compiler='clang', compiler_version=['<', '7.0.0'])
-    @unittest2.skipIf(platform.system() != "Darwin" or StrictVersion('12.0.0') > platform.release(), "Only supported on Darwin 12.0.0+")
-    def test_expr(self):
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        # Break inside the foo function which takes a bar_ptr argument.
-        lldbutil.run_break_set_by_file_and_line (self, "main.m", self.line, num_expected_locations=1, loc_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-
-        # The stop reason of the thread should be breakpoint.
-        self.expect("thread list", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ['stopped',
-                       'stop reason = breakpoint'])
-
-        # The breakpoint should have a hit count of 1.
-        self.expect("breakpoint list -f", BREAKPOINT_HIT_ONCE,
-            substrs = [' resolved, hit count = 1'])
-
-        self.expect("expr --object-description -- immutable_array[0]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["foo"])
-
-        self.expect("expr --object-description -- mutable_array[0]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["foo"])
-
-        self.expect("expr --object-description -- mutable_array[0] = @\"bar\"", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["bar"])
-
-        self.expect("expr --object-description -- mutable_array[0]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["bar"])
-
-        self.expect("expr --object-description -- immutable_dictionary[@\"key\"]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["value"])
-
-        self.expect("expr --object-description -- mutable_dictionary[@\"key\"]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["value"])
-
-        self.expect("expr --object-description -- mutable_dictionary[@\"key\"] = @\"object\"", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["object"])
-
-        self.expect("expr --object-description -- mutable_dictionary[@\"key\"]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["object"])
-
-        self.expect("expr --object-description -- @[ @\"foo\", @\"bar\" ]", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSArray", "foo", "bar"])
-
-        self.expect("expr --object-description -- @{ @\"key\" : @\"object\" }", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["key", "object"])
-
-        self.expect("expr --object-description -- @'a'", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = [str(ord('a'))])
-
-        self.expect("expr --object-description -- @1", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["1"])
-
-        self.expect("expr --object-description -- @1l", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["1"])
-
-        self.expect("expr --object-description -- @1ul", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["1"])
-
-        self.expect("expr --object-description -- @1ll", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["1"])
-
-        self.expect("expr --object-description -- @1ull", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["1"])
-
-        self.expect("expr -- @123.45", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSNumber", "123.45"])
-
-        self.expect("expr --object-description -- @( 1 + 3 )", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["4"])
-        self.expect("expr -- @((char*)\"Hello world\" + 6)", VARIABLES_DISPLAYED_CORRECTLY,
-            substrs = ["NSString", "world"])

Removed: lldb/trunk/test/lang/objc/objc-new-syntax/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-new-syntax/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-new-syntax/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-new-syntax/main.m (removed)
@@ -1,21 +0,0 @@
-#import <Foundation/Foundation.h>
-
-int main()
-{
-    @autoreleasepool
-    {
-        // NSArrays
-        NSArray *immutable_array = @[ @"foo", @"bar" ];
-        NSMutableArray *mutable_array = [NSMutableArray arrayWithCapacity:2];
-        [mutable_array addObjectsFromArray:immutable_array];
-        
-        // NSDictionaries
-        NSDictionary *immutable_dictionary = @{ @"key" : @"value" };
-        NSMutableDictionary *mutable_dictionary = [NSMutableDictionary dictionaryWithCapacity:1];
-        [mutable_dictionary addEntriesFromDictionary:immutable_dictionary];
-
-        NSNumber *one = @1;
-
-        NSLog(@"Stop here"); // Set breakpoint 0 here.
-    }
-}

Removed: lldb/trunk/test/lang/objc/objc-optimized/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-optimized/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-optimized/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-optimized/Makefile (removed)
@@ -1,8 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-
-CFLAGS ?= -arch $(ARCH) -g -O2
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py (original)
+++ lldb/trunk/test/lang/objc/objc-optimized/TestObjcOptimized.py (removed)
@@ -1,63 +0,0 @@
-"""
-Test that objective-c expression parser continues to work for optimized build.
-
-http://llvm.org/viewvc/llvm-project?rev=126973&view=rev
-Fixed a bug in the expression parser where the 'this'
-or 'self' variable was not properly read if the compiler
-optimized it into a register.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-import lldbutil
-import re
-
-# rdar://problem/9087739
-# test failure: objc_optimized does not work for "-C clang -A i386"
- at skipUnlessDarwin
-class ObjcOptimizedTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-    myclass = "MyClass"
-    mymethod = "description"
-    method_spec = "-[%s %s]" % (myclass, mymethod)
-
-    def test_break(self):
-        """Test 'expr member' continues to work for optimized build."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-        self.runCmd("file " + exe, CURRENT_EXECUTABLE_SET)
-
-        lldbutil.run_break_set_by_symbol (self, self.method_spec, num_expected_locations=1, sym_exact=True)
-
-        self.runCmd("run", RUN_SUCCEEDED)
-        self.expect("thread backtrace", STOPPED_DUE_TO_BREAKPOINT,
-            substrs = ["stop reason = breakpoint"],
-            patterns = ["frame.*0:.*%s %s" % (self.myclass, self.mymethod)])
-
-        self.expect('expression member',
-            startstr = "(int) $0 = 5")
-
-        # <rdar://problem/12693963>
-        interp = self.dbg.GetCommandInterpreter()
-        result = lldb.SBCommandReturnObject()
-        interp.HandleCommand('frame variable self', result)
-        output = result.GetOutput()
-
-        desired_pointer = "0x0"
-
-        mo = re.search("0x[0-9a-f]+", output)
-
-        if mo:
-            desired_pointer = mo.group(0)
-
-        self.expect('expression (self)',
-            substrs = [("(%s *) $1 = " % self.myclass), desired_pointer])
-
-        self.expect('expression self->non_member', error=True,
-            substrs = ["does not have a member named 'non_member'"])

Removed: lldb/trunk/test/lang/objc/objc-optimized/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-optimized/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-optimized/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-optimized/main.m (removed)
@@ -1,44 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface MyClass : NSObject {
-  int member;
-}
-
-- (id)initWithMember:(int)_member;
-- (NSString*)description;
- at end
-
- at implementation MyClass
-
-- (id)initWithMember:(int)_member
-{
-    if (self = [super init])
-    {
-      member = _member;
-    }
-    return self;
-}
-
-- (void)dealloc
-{
-    [super dealloc];
-}
-
-// Set a breakpoint on '-[MyClass description]' and test expressions: expr member
-- (NSString *)description
-{
-    return [NSString stringWithFormat:@"%d", member];
-}
- at end
-
-int main (int argc, char const *argv[])
-{
-    NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
-    MyClass *my_object = [[MyClass alloc] initWithMember:5];
-
-    NSLog(@"MyObject %@", [my_object description]);
-
-    [pool release];
-    return 0;
-}

Removed: lldb/trunk/test/lang/objc/objc-property/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-property/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-property/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-property/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py (original)
+++ lldb/trunk/test/lang/objc/objc-property/TestObjCProperty.py (removed)
@@ -1,113 +0,0 @@
-"""
-Use lldb Python API to verify that expression evaluation for property references uses the correct getters and setters
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import re
-import lldb, lldbutil
-from lldbtest import *
-
-class ObjCPropertyTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().                                                                                                           
-        TestBase.setUp(self)
-
-        # Find the line number to break for main.c.                                                                                       
-        self.source_name = 'main.m'
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_objc_properties(self):
-        """Test that expr uses the correct property getters and setters"""
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        # Create a target from the debugger.
-
-        target = self.dbg.CreateTarget (exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        # Set up our breakpoints:
-        
-        main_bkpt = target.BreakpointCreateBySourceRegex ("Set a breakpoint here.", lldb.SBFileSpec (self.source_name))
-        self.assertTrue(main_bkpt and
-                        main_bkpt.GetNumLocations() == 1,
-                        VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process.GetState() == lldb.eStateStopped,
-                        PROCESS_STOPPED)
-
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, main_bkpt)
-        self.assertTrue (len(threads) == 1)
-        thread = threads[0]
-        frame = thread.GetFrameAtIndex(0)
-
-        mine = frame.FindVariable ("mine")
-        self.assertTrue (mine.IsValid())
-        access_count = mine.GetChildMemberWithName ("_access_count")
-        self.assertTrue (access_count.IsValid())
-        start_access_count = access_count.GetValueAsUnsigned (123456)
-        self.assertTrue (start_access_count != 123456)
-
-        #
-        # The first set of tests test calling the getter & setter of
-        # a property that actually only has a getter & setter and no
-        # @property.
-        #
-        nonexistant_value = frame.EvaluateExpression("mine.nonexistantInt", False)
-        nonexistant_error = nonexistant_value.GetError()
-        self.assertTrue (nonexistant_error.Success())
-        nonexistant_int = nonexistant_value.GetValueAsUnsigned (123456)
-        self.assertTrue (nonexistant_int == 6)
-        
-        # Calling the getter function would up the access count, so make sure that happened.
-        
-        new_access_count = access_count.GetValueAsUnsigned (123456)
-        self.assertTrue (new_access_count - start_access_count == 1)
-        start_access_count = new_access_count
-
-        #
-        # Now call the setter, then make sure that
-        nonexistant_change = frame.EvaluateExpression("mine.nonexistantInt = 10", False)
-        nonexistant_error = nonexistant_change.GetError()
-        self.assertTrue (nonexistant_error.Success())
-
-        # Calling the setter function would up the access count, so make sure that happened.
-        
-        new_access_count = access_count.GetValueAsUnsigned (123456)
-        self.assertTrue (new_access_count - start_access_count == 1)
-        start_access_count = new_access_count
-
-        #
-        # Now we call the getter of a property that is backed by an ivar,
-        # make sure it works and that we actually update the backing ivar.
-        #
-
-        backed_value = frame.EvaluateExpression("mine.backedInt", False)
-        backed_error = backed_value.GetError()
-        self.assertTrue (backed_error.Success())
-        backing_value = mine.GetChildMemberWithName ("_backedInt")
-        self.assertTrue (backing_value.IsValid())
-        self.assertTrue (backed_value.GetValueAsUnsigned (12345) == backing_value.GetValueAsUnsigned(23456))
-
-        unbacked_value = frame.EvaluateExpression("mine.unbackedInt", False)
-        unbacked_error = unbacked_value.GetError()
-        self.assertTrue (unbacked_error.Success())
-
-        idWithProtocol_value = frame.EvaluateExpression("mine.idWithProtocol", False)
-        idWithProtocol_error = idWithProtocol_value.GetError()
-        self.assertTrue (idWithProtocol_error.Success())
-        self.assertTrue (idWithProtocol_value.GetTypeName() == "id")

Removed: lldb/trunk/test/lang/objc/objc-property/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-property/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-property/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-property/main.m (removed)
@@ -1,100 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at protocol MyProtocol
-
--(const char *)hello;
-
- at end
-
- at interface BaseClass : NSObject
-{
-  int _backedInt;
-  int _access_count;
-}
-
-- (int) nonexistantInt;
-- (void) setNonexistantInt: (int) in_int;
-
-- (int) myGetUnbackedInt;
-- (void) mySetUnbackedInt: (int) in_int;
-
-- (int) getAccessCount;
-
-+(BaseClass *) baseClassWithBackedInt: (int) inInt andUnbackedInt: (int) inOtherInt;
-
- at property(getter=myGetUnbackedInt,setter=mySetUnbackedInt:) int unbackedInt;
- at property int backedInt;
- at property (nonatomic, assign) id <MyProtocol> idWithProtocol;
- at end
-
- at implementation BaseClass
- at synthesize unbackedInt;
- at synthesize backedInt = _backedInt;
-
-+ (BaseClass *) baseClassWithBackedInt: (int) inInt andUnbackedInt: (int) inOtherInt
-{
-  BaseClass *new = [[BaseClass alloc] init];
-  
-  new->_backedInt = inInt;
-  new->unbackedInt = inOtherInt;
-
-  return new;
-}
-
-- (int) myGetUnbackedInt
-{
-  // NSLog (@"Getting BaseClass::unbackedInt - %d.\n", unbackedInt);
-  _access_count++;
-  return unbackedInt;
-}
-
-- (void) mySetUnbackedInt: (int) in_int
-{
-  // NSLog (@"Setting BaseClass::unbackedInt from %d to %d.", unbackedInt, in_int);
-  _access_count++;
-  unbackedInt = in_int;
-}
-
-- (int) nonexistantInt
-{
-  // NSLog (@"Getting BaseClass::nonexistantInt - %d.\n", 5);
-  _access_count++;
-  return 6;
-}
-
-- (void) setNonexistantInt: (int) in_int
-{
-  // NSLog (@"Setting BaseClass::nonexistantInt from 7 to %d.", in_int);
-  _access_count++;
-}
-
-- (int) getAccessCount
-{
-  return _access_count;
-}
- at end
-
-int
-main ()
-{
-  BaseClass *mine = [BaseClass baseClassWithBackedInt: 10 andUnbackedInt: 20];
-  
-  // Set a breakpoint here.
-  int nonexistant = mine.nonexistantInt;
-
-  int backedInt = mine.backedInt;
-
-  int unbackedInt = mine.unbackedInt;
-
-  id idWithProtocol = mine.idWithProtocol;
-
-  NSLog (@"Results for %p: nonexistant: %d backed: %d unbacked: %d accessCount: %d.",
-         mine,
-         nonexistant,
-         backedInt,
-         unbackedInt,
-         [mine getAccessCount]);
-  return 0;
-
-}
-

Removed: lldb/trunk/test/lang/objc/objc-runtime-ivars/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-runtime-ivars/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-runtime-ivars/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-runtime-ivars/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := main.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py (original)
+++ lldb/trunk/test/lang/objc/objc-runtime-ivars/TestRuntimeIvars.py (removed)
@@ -1,4 +0,0 @@
-import lldbinline
-import lldbtest
-
-lldbinline.MakeInlineTest(__file__, globals(), [lldbtest.skipIfFreeBSD,lldbtest.skipIfLinux,lldbtest.skipIfWindows])

Removed: lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m (original)
+++ lldb/trunk/test/lang/objc/objc-runtime-ivars/main.m (removed)
@@ -1,10 +0,0 @@
-#import <Foundation/Foundation.h>
-
-int main ()
-{
-  @autoreleasepool
-  {
-    NSLog(@"Hello"); //% self.expect("expression -- *((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["count", "capacity", "options", "mutations"]);
-                     //% self.expect("expression -- ((NSConcretePointerArray*)[NSPointerArray strongObjectsPointerArray])->count", DATA_TYPES_DISPLAYED_CORRECTLY, substrs = ["unsigned"]);
-  }
-}

Removed: lldb/trunk/test/lang/objc/objc-static-method-stripped/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method-stripped/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method-stripped/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-static-method-stripped/Makefile (removed)
@@ -1,15 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := static.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-default:        a.out.stripped
-
-a.out.stripped: a.out.dSYM
-	strip -o a.out.stripped a.out
-
-clean::
-	rm -f a.out.stripped
-	rm -rf a.out.stripped.dSYM
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py (original)
+++ lldb/trunk/test/lang/objc/objc-static-method-stripped/TestObjCStaticMethodStripped.py (removed)
@@ -1,65 +0,0 @@
-"""Test calling functions in static methods with a stripped binary."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCStaticMethodStripped(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "static.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    @skipIfDwarf    # This test requires a stripped binary and a dSYM
-    @skipIfDWO      # This test requires a stripped binary and a dSYM
-    #<rdar://problem/12042992>
-    def test_with_python_api(self):
-        """Test calling functions in static methods with a stripped binary."""
-        if self.getArchitecture() == 'i386':
-            self.skipTest("requires modern objc runtime")
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out.stripped")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        # Now make sure we can call a function in the static method we've stopped in.
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        cmd_value = frame.EvaluateExpression ("(char *) sel_getName (_cmd)")
-        self.assertTrue (cmd_value.IsValid())
-        sel_name = cmd_value.GetSummary()
-        self.assertTrue (sel_name == "\"doSomethingWithString:\"", "Got the right value for the selector as string.")
-
-        cmd_value = frame.EvaluateExpression ("[Foo doSomethingElseWithString:string]")
-        self.assertTrue (cmd_value.IsValid())
-        string_length = cmd_value.GetValueAsUnsigned()
-        self.assertTrue (string_length == 27, "Got the right value from another class method on the same class.")

Removed: lldb/trunk/test/lang/objc/objc-static-method-stripped/static.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method-stripped/static.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method-stripped/static.m (original)
+++ lldb/trunk/test/lang/objc/objc-static-method-stripped/static.m (removed)
@@ -1,29 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Foo : NSObject
-+(void) doSomethingWithString: (NSString *) string;
--(void) doSomethingWithNothing;
- at end
-
- at implementation Foo
-+(void) doSomethingWithString: (NSString *) string
-{
-  NSLog (@"String is: %@.", string); // Set breakpoint here.
-}
-
-+(int) doSomethingElseWithString: (NSString *) string
-{
-  NSLog (@"String is still: %@.", string);
-  return [string length];
-}
-
--(void) doSomethingWithNothing
-{
-}
- at end
-
-int main()
-{
-  [Foo doSomethingWithString: @"Some string I have in mind."];
-  return 0;
-}

Removed: lldb/trunk/test/lang/objc/objc-static-method/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-static-method/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := static.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py (original)
+++ lldb/trunk/test/lang/objc/objc-static-method/TestObjCStaticMethod.py (removed)
@@ -1,61 +0,0 @@
-"""Test calling functions in static methods."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCStaticMethod(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "static.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    #<rdar://problem/9745789> "expression" can't call functions in class methods
-    def test_with_python_api(self):
-        """Test calling functions in static methods."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        # Now make sure we can call a function in the static method we've stopped in.
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        cmd_value = frame.EvaluateExpression ("(char *) sel_getName (_cmd)")
-        self.assertTrue (cmd_value.IsValid())
-        sel_name = cmd_value.GetSummary()
-        self.assertTrue (sel_name == "\"doSomethingWithString:\"", "Got the right value for the selector as string.")
-
-        cmd_value = frame.EvaluateExpression ("[self doSomethingElseWithString:string]")
-        self.assertTrue (cmd_value.IsValid())
-        string_length = cmd_value.GetValueAsUnsigned()
-        self.assertTrue (string_length == 27, "Got the right value from another class method on the same class.")

Removed: lldb/trunk/test/lang/objc/objc-static-method/static.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-static-method/static.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-static-method/static.m (original)
+++ lldb/trunk/test/lang/objc/objc-static-method/static.m (removed)
@@ -1,29 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Foo : NSObject
-+(void) doSomethingWithString: (NSString *) string;
--(void) doSomethingWithNothing;
- at end
-
- at implementation Foo
-+(void) doSomethingWithString: (NSString *) string
-{
-  NSLog (@"String is: %@.", string); // Set breakpoint here.
-}
-
-+(int) doSomethingElseWithString: (NSString *) string
-{
-  NSLog (@"String is still: %@.", string);
-  return [string length];
-}
-
--(void) doSomethingWithNothing
-{
-}
- at end
-
-int main()
-{
-  [Foo doSomethingWithString: @"Some string I have in mind."];
-  return 0;
-}

Removed: lldb/trunk/test/lang/objc/objc-stepping/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-stepping/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-stepping/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-stepping/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := stepping-tests.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py (original)
+++ lldb/trunk/test/lang/objc/objc-stepping/TestObjCStepping.py (removed)
@@ -1,172 +0,0 @@
-"""Test stepping through ObjC method dispatch in various forms."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCStepping(TestBase):
-
-    def getCategories (self):
-        return ['basic_process']
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers that we will step to in main:
-        self.main_source = "stepping-tests.m"
-        self.source_randomMethod_line = line_number (self.main_source, '// Source randomMethod start line.')
-        self.sourceBase_randomMethod_line = line_number (self.main_source, '// SourceBase randomMethod start line.')
-        self.source_returnsStruct_start_line = line_number (self.main_source, '// Source returnsStruct start line.')
-        self.sourceBase_returnsStruct_start_line = line_number (self.main_source, '// SourceBase returnsStruct start line.')
-        self.stepped_past_nil_line = line_number (self.main_source, '// Step over nil should stop here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test stepping through ObjC method dispatch in various forms."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        self.main_source_spec = lldb.SBFileSpec (self.main_source)
-
-        breakpoints_to_disable = []
-
-        break1 = target.BreakpointCreateBySourceRegex ("// Set first breakpoint here.", self.main_source_spec)
-        self.assertTrue(break1, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break1)
-
-        break2 = target.BreakpointCreateBySourceRegex ("// Set second breakpoint here.", self.main_source_spec)
-        self.assertTrue(break2, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break2)
-
-        break3 = target.BreakpointCreateBySourceRegex ('// Set third breakpoint here.', self.main_source_spec)
-        self.assertTrue(break3, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break3)
-
-        break4 = target.BreakpointCreateBySourceRegex ('// Set fourth breakpoint here.', self.main_source_spec)
-        self.assertTrue(break4, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break4)
-
-        break5 = target.BreakpointCreateBySourceRegex ('// Set fifth breakpoint here.', self.main_source_spec)
-        self.assertTrue(break5, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break5)
-
-        break_returnStruct_call_super = target.BreakpointCreateBySourceRegex ('// Source returnsStruct call line.', self.main_source_spec)
-        self.assertTrue(break_returnStruct_call_super, VALID_BREAKPOINT)
-        breakpoints_to_disable.append (break_returnStruct_call_super)
-
-        break_step_nil = target.BreakpointCreateBySourceRegex ('// Set nil step breakpoint here.', self.main_source_spec)
-        self.assertTrue(break_step_nil, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        threads = lldbutil.get_threads_stopped_at_breakpoint (process, break1)
-        if len(threads) != 1:
-            self.fail ("Failed to stop at breakpoint 1.")
-
-        thread = threads[0]
-
-        mySource = thread.GetFrameAtIndex(0).FindVariable("mySource")
-        self.assertTrue(mySource, "Found mySource local variable.")
-        mySource_isa = mySource.GetChildMemberWithName ("isa")
-        self.assertTrue(mySource_isa, "Found mySource->isa local variable.")
-        className = mySource_isa.GetSummary ()
-
-        if self.TraceOn():
-             print(mySource_isa)
-
-        # Lets delete mySource so we can check that after stepping a child variable
-        # with no parent persists and is useful.
-        del (mySource)
-
-        # Now step in, that should leave us in the Source randomMethod:
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.source_randomMethod_line, "Stepped into Source randomMethod.")
-
-        # Now step in again, through the super call, and that should leave us in the SourceBase randomMethod:
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.sourceBase_randomMethod_line, "Stepped through super into SourceBase randomMethod.")
-
-        threads = lldbutil.continue_to_breakpoint (process, break2)
-        self.assertTrue (len(threads) == 1, "Continued to second breakpoint in main.")
-
-        # Again, step in twice gets us to a stret method and a stret super call:
-        thread = threads[0]
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.source_returnsStruct_start_line, "Stepped into Source returnsStruct.")
-
-        threads = lldbutil.continue_to_breakpoint (process, break_returnStruct_call_super)
-        self.assertTrue (len(threads) == 1, "Stepped to the call super line in Source returnsStruct.")
-        thread = threads[0]
-
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.sourceBase_returnsStruct_start_line, "Stepped through super into SourceBase returnsStruct.")
-
-        # Cool now continue to get past the call that initializes the Observer, and then do our steps in again to see that 
-        # we can find our way when we're stepping through a KVO swizzled object.
-
-        threads = lldbutil.continue_to_breakpoint (process, break3)
-        self.assertTrue (len(threads) == 1, "Continued to third breakpoint in main, our object should now be swizzled.")
-
-        newClassName = mySource_isa.GetSummary ()
-
-        if self.TraceOn():
-             print(mySource_isa)
-
-        self.assertTrue (newClassName != className, "The isa did indeed change, swizzled!")
-
-        # Now step in, that should leave us in the Source randomMethod:
-        thread = threads[0]
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.source_randomMethod_line, "Stepped into Source randomMethod in swizzled object.")
-
-        # Now step in again, through the super call, and that should leave us in the SourceBase randomMethod:
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.sourceBase_randomMethod_line, "Stepped through super into SourceBase randomMethod in swizzled object.")
-
-        threads = lldbutil.continue_to_breakpoint (process, break4)
-        self.assertTrue (len(threads) == 1, "Continued to fourth breakpoint in main.")
-        thread = threads[0]
-
-        # Again, step in twice gets us to a stret method and a stret super call:
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.source_returnsStruct_start_line, "Stepped into Source returnsStruct in swizzled object.")
-
-        threads = lldbutil.continue_to_breakpoint(process, break_returnStruct_call_super)
-        self.assertTrue (len(threads) == 1, "Stepped to the call super line in Source returnsStruct - second time.")
-        thread = threads[0]
-
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.sourceBase_returnsStruct_start_line, "Stepped through super into SourceBase returnsStruct in swizzled object.")
-
-        for bkpt in breakpoints_to_disable:
-            bkpt.SetEnabled(False)
-
-        threads = lldbutil.continue_to_breakpoint (process, break_step_nil)
-        self.assertTrue (len(threads) == 1, "Continued to step nil breakpoint.")
-
-        thread.StepInto()
-        line_number = thread.GetFrameAtIndex(0).GetLineEntry().GetLine()
-        self.assertTrue (line_number == self.stepped_past_nil_line, "Step in over dispatch to nil stepped over.")

Removed: lldb/trunk/test/lang/objc/objc-stepping/stepping-tests.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-stepping/stepping-tests.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-stepping/stepping-tests.m (original)
+++ lldb/trunk/test/lang/objc/objc-stepping/stepping-tests.m (removed)
@@ -1,138 +0,0 @@
-#import <Foundation/Foundation.h>
-#include <stdio.h>
-
-struct return_me
-{
-  int first;
-  int second;
-};
-
- at interface SourceBase: NSObject
-{
-  struct return_me my_return;
-}
-- (SourceBase *) initWithFirst: (int) first andSecond: (int) second;
-- (void) randomMethod;
-- (struct return_me) returnsStruct;
- at end
-
- at implementation SourceBase
-- (void) randomMethod
-{
-  printf ("Called in SourceBase version of randomMethod.\n"); // SourceBase randomMethod start line.
-}
-
-- (struct return_me) returnsStruct
-{
-  return my_return; // SourceBase returnsStruct start line.
-}
-
-- (SourceBase *) initWithFirst: (int) first andSecond: (int) second
-{
-  my_return.first = first;
-  my_return.second = second;
-
-  return self;
-}
- at end
-
- at interface Source : SourceBase
-{
-  int _property;
-}
-- (void) setProperty: (int) newValue;
-- (void) randomMethod;
-- (struct return_me) returnsStruct;
- at end
-
- at implementation Source
-- (void) setProperty: (int) newValue
-{
-  _property = newValue;
-}
-
-- (void) randomMethod
-{
-  [super randomMethod];  // Source randomMethod start line.
-    printf ("Called in Source version of random method.");
-}
-
-- (struct return_me) returnsStruct
-{
-  printf ("Called in Source version of returnsStruct.\n");  // Source returnsStruct start line.
-  return [super returnsStruct];                             // Source returnsStruct call line.  
-}
-
- at end
-
- at interface Observer : NSObject
-{
-  Source *_source;
-}
-+ (Observer *) observerWithSource: (Source *) source;
-- (Observer *) initWithASource: (Source *) source;
-- (void) observeValueForKeyPath: (NSString *) path 
-		       ofObject: (id) object
-			 change: (NSDictionary *) change
-			context: (void *) context;
- at end
-
- at implementation Observer
-
-+ (Observer *) observerWithSource: (Source *) inSource;
-{
-  Observer *retval;
-
-  retval = [[Observer alloc] initWithASource: inSource];
-  return retval;
-}
-
-- (Observer *) initWithASource: (Source *) source
-{
-  [super init];
-  _source = source;
-  [_source addObserver: self 
-	    forKeyPath: @"property" 
-	    options: (NSKeyValueObservingOptionNew | NSKeyValueObservingOptionOld)
-	    context: NULL];
-  return self;
-}
-
-- (void) observeValueForKeyPath: (NSString *) path 
-		       ofObject: (id) object
-			 change: (NSDictionary *) change
-			context: (void *) context
-{
-  printf ("Observer function called.\n");
-  return;
-}
- at end
-
-int main ()
-{
-  Source *mySource;
-  Observer *myObserver;
-  struct return_me ret_val;
-
-  NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-
-  mySource = [[Source alloc] init];
-
-  [mySource randomMethod];               // Set first breakpoint here.
-  ret_val = [mySource returnsStruct];    // Set second breakpoint here.
-
-  myObserver = [Observer observerWithSource: mySource];  
-
-  [mySource randomMethod];              // Set third breakpoint here.
-  ret_val = [mySource returnsStruct];   // Set fourth breakpoint here.
-  [mySource setProperty: 5];            // Set fifth breakpoint here.
-
-  // We also had a bug where stepping into a method dispatch to nil turned
-  // into continue.  So make sure that works here:
-
-  mySource = nil;
-  [mySource randomMethod];             // Set nil step breakpoint here.
-  [pool release];                      // Step over nil should stop here.
-  return 0;
-
-}

Removed: lldb/trunk/test/lang/objc/objc-struct-argument/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-argument/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-argument/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-struct-argument/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := test.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py (original)
+++ lldb/trunk/test/lang/objc/objc-struct-argument/TestObjCStructArgument.py (removed)
@@ -1,57 +0,0 @@
-"""Test passing structs to Objective-C methods."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCStructArgument(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "test.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test passing structs to Objective-C methods."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        self.expect("p [summer sumThings:tts]", substrs = ['9'])
-
-        self.expect("po [NSValue valueWithRect:rect]", substrs = ['NSRect: {{0, 0}, {10, 20}}'])
-
-        # Now make sure we can call a method that returns a struct without crashing.
-        cmd_value = frame.EvaluateExpression ("[provider getRange]")
-        self.assertTrue (cmd_value.IsValid())

Removed: lldb/trunk/test/lang/objc/objc-struct-argument/test.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-argument/test.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-argument/test.m (original)
+++ lldb/trunk/test/lang/objc/objc-struct-argument/test.m (removed)
@@ -1,34 +0,0 @@
-#import <Foundation/Foundation.h>
-
-struct things_to_sum {
-    int a;
-    int b;
-    int c;
-};
-
- at interface ThingSummer : NSObject {
-};
--(int)sumThings:(struct things_to_sum)tts;
- at end
-
- at implementation ThingSummer
--(int)sumThings:(struct things_to_sum)tts
-{
-  return tts.a + tts.b + tts.c;
-}
- at end
-
-int main()
-{
-  @autoreleasepool
-  {
-    ThingSummer *summer = [ThingSummer alloc];
-    struct things_to_sum tts = { 2, 3, 4 };
-    int ret = [summer sumThings:tts];
-
-    NSRect rect = {{0, 0}, {10, 20}};    
-
-    // Set breakpoint here.
-    return rect.origin.x;
-  }
-}

Removed: lldb/trunk/test/lang/objc/objc-struct-return/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-return/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-return/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-struct-return/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := test.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py (original)
+++ lldb/trunk/test/lang/objc/objc-struct-return/TestObjCStructReturn.py (removed)
@@ -1,53 +0,0 @@
-"""Test calling functions in class methods."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCClassMethod(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "test.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test calling functions in class methods."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        # Now make sure we can call a method that returns a struct without crashing.
-        cmd_value = frame.EvaluateExpression ("[provider getRange]")
-        self.assertTrue (cmd_value.IsValid())

Removed: lldb/trunk/test/lang/objc/objc-struct-return/test.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-struct-return/test.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-struct-return/test.m (original)
+++ lldb/trunk/test/lang/objc/objc-struct-return/test.m (removed)
@@ -1,23 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface RangeProvider : NSObject {
-};
--(NSRange)getRange;
- at end
-
- at implementation RangeProvider
--(NSRange)getRange
-{
-  return NSMakeRange(0, 3);
-}
- at end
-
-int main()
-{
-  @autoreleasepool
-  {
-    RangeProvider *provider = [RangeProvider alloc];
-    NSRange range = [provider getRange]; // Set breakpoint here.
-    return 0;
-  }
-}

Removed: lldb/trunk/test/lang/objc/objc-super/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-super/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-super/Makefile (original)
+++ lldb/trunk/test/lang/objc/objc-super/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := class.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py (original)
+++ lldb/trunk/test/lang/objc/objc-super/TestObjCSuper.py (removed)
@@ -1,59 +0,0 @@
-"""Test calling methods on super."""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-import lldbutil
-from lldbtest import *
-
-class TestObjCSuperMethod(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # Find the line numbers to break inside main().
-        self.main_source = "class.m"
-        self.break_line = line_number(self.main_source, '// Set breakpoint here.')
-
-    @skipUnlessDarwin
-    @expectedFailurei386
-    @add_test_categories(['pyapi'])
-    def test_with_python_api(self):
-        """Test calling methods on super."""
-        self.build()
-        exe = os.path.join(os.getcwd(), "a.out")
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        bpt = target.BreakpointCreateByLocation(self.main_source, self.break_line)
-        self.assertTrue(bpt, VALID_BREAKPOINT)
-
-        # Now launch the process, and do not stop at entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.assertTrue(process, PROCESS_IS_VALID)
-
-        # The stop reason of the thread should be breakpoint.
-        thread_list = lldbutil.get_threads_stopped_at_breakpoint (process, bpt)
-
-        # Make sure we stopped at the first breakpoint.
-        self.assertTrue (len(thread_list) != 0, "No thread stopped at our breakpoint.")
-        self.assertTrue (len(thread_list) == 1, "More than one thread stopped at our breakpoint.")
-            
-        # Now make sure we can call a function in the class method we've stopped in.
-        frame = thread_list[0].GetFrameAtIndex(0)
-        self.assertTrue (frame, "Got a valid frame 0 frame.")
-
-        cmd_value = frame.EvaluateExpression ("[self get]")
-        self.assertTrue (cmd_value.IsValid())
-        self.assertTrue (cmd_value.GetValueAsUnsigned() == 2)
-
-        cmd_value = frame.EvaluateExpression ("[super get]")
-        self.assertTrue (cmd_value.IsValid())
-        self.assertTrue (cmd_value.GetValueAsUnsigned() == 1)

Removed: lldb/trunk/test/lang/objc/objc-super/class.m
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/objc-super/class.m?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/objc-super/class.m (original)
+++ lldb/trunk/test/lang/objc/objc-super/class.m (removed)
@@ -1,39 +0,0 @@
-#import <Foundation/Foundation.h>
-
- at interface Foo : NSObject {
-}
--(int)get;
- at end
-
- at implementation Foo
--(int)get
-{
-  return 1;
-}
- at end
-
- at interface Bar : Foo {
-}
--(int)get;
- at end
-
- at implementation Bar
--(int)get
-{
-  return 2; 
-}
-
--(int)callme
-{
-  return [self get]; // Set breakpoint here.
-}
- at end
-
-int main()
-{
-  @autoreleasepool
-  {
-    Bar *bar = [Bar alloc];
-    return [bar callme];
-  }
-}

Removed: lldb/trunk/test/lang/objc/print-obj/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/print-obj/Makefile?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/print-obj/Makefile (original)
+++ lldb/trunk/test/lang/objc/print-obj/Makefile (removed)
@@ -1,6 +0,0 @@
-LEVEL = ../../../make
-
-OBJC_SOURCES := blocked.m
-LDFLAGS = $(CFLAGS) -lobjc -framework Foundation
-
-include $(LEVEL)/Makefile.rules

Removed: lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py?rev=251531&view=auto
==============================================================================
--- lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py (original)
+++ lldb/trunk/test/lang/objc/print-obj/TestPrintObj.py (removed)
@@ -1,87 +0,0 @@
-"""
-Test "print object" where another thread blocks the print object from making progress.
-"""
-
-from __future__ import print_function
-
-import use_lldb_suite
-
-import os, time
-import lldb
-from lldbtest import *
-
- at skipUnlessDarwin
-class PrintObjTestCase(TestBase):
-
-    mydir = TestBase.compute_mydir(__file__)
-
-    def setUp(self):
-        # Call super's setUp().
-        TestBase.setUp(self)
-        # My source program.
-        self.source = "blocked.m"
-        # Find the line numbers to break at.
-        self.line = line_number(self.source, '// Set a breakpoint here.')
-
-    def test_print_obj(self):
-        """
-        Test "print object" where another thread blocks the print object from making progress.
-
-        Set a breakpoint on the line in my_pthread_routine.  Then switch threads
-        to the main thread, and do print the lock_me object.  Since that will
-        try to get the lock already gotten by my_pthread_routime thread, it will
-        have to switch to running all threads, and that should then succeed.
-        """
-        d = {'EXE': 'b.out'}
-        self.build(dictionary=d)
-        self.setTearDownCleanup(dictionary=d)
-        exe = os.path.join(os.getcwd(), 'b.out')
-
-        target = self.dbg.CreateTarget(exe)
-        self.assertTrue(target, VALID_TARGET)
-
-        breakpoint = target.BreakpointCreateByLocation(self.source, self.line)
-        self.assertTrue(breakpoint, VALID_BREAKPOINT)
-        self.runCmd("breakpoint list")
-
-        # Launch the process, and do not stop at the entry point.
-        process = target.LaunchSimple (None, None, self.get_process_working_directory())
-
-        self.runCmd("thread backtrace all")
-
-        # Let's get the current stopped thread.  We'd like to switch to the
-        # other thread to issue our 'po lock_me' command.
-        import lldbutil
-        this_thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonBreakpoint)
-        self.assertTrue(this_thread)
-
-        # Find the other thread.  The iteration protocol of SBProcess and the
-        # rich comparison methods (__eq__/__ne__) of SBThread come in handy.
-        other_thread = None
-        for t in process:
-            if t != this_thread:
-                other_thread = t
-                break
-
-        # Set the other thread as the selected thread to issue our 'po' command.other
-        self.assertTrue(other_thread)
-        process.SetSelectedThread(other_thread)
-        if self.TraceOn():
-            print("selected thread:" + lldbutil.get_description(other_thread))
-        self.runCmd("thread backtrace")
-
-        # We want to traverse the frame to the one corresponding to blocked.m to
-        # issue our 'po lock_me' command.
-
-        depth = other_thread.GetNumFrames()
-        for i in range(depth):
-            frame = other_thread.GetFrameAtIndex(i)
-            name = frame.GetFunctionName()
-            if name == 'main':
-                other_thread.SetSelectedFrame(i)
-                if self.TraceOn():
-                    print("selected frame:" + lldbutil.get_description(frame))
-                break