def test_get_num_supported_hardware_watchpoints(self):
    'Test SBProcess.GetNumSupportedHardwareWatchpoints() API with a process.'
    self.build()
    exe = self.getBuildArtifact('a.out')
    self.runCmd(('file ' + exe), CURRENT_EXECUTABLE_SET)
    target = self.dbg.CreateTarget(exe)
    self.assertTrue(target, VALID_TARGET)
    breakpoint = target.BreakpointCreateByLocation('main.cpp', self.line)
    self.assertTrue(breakpoint, VALID_BREAKPOINT)
    process = target.LaunchSimple(None, None, self.get_process_working_directory())
    error = lldb.SBError()
    num = process.GetNumSupportedHardwareWatchpoints(error)
    if (self.TraceOn() and error.Success()):
        print(('Number of supported hardware watchpoints: %d' % num))
Test SBProcess.GetNumSupportedHardwareWatchpoints() API with a process.
def test_get_num_supported_hardware_watchpoints(self):
    
    self.build()
    exe = self.getBuildArtifact('a.out')
    self.runCmd(('file ' + exe), CURRENT_EXECUTABLE_SET)
    target = self.dbg.CreateTarget(exe)
    self.assertTrue(target, VALID_TARGET)
    breakpoint = target.BreakpointCreateByLocation('main.cpp', self.line)
    self.assertTrue(breakpoint, VALID_BREAKPOINT)
    process = target.LaunchSimple(None, None, self.get_process_working_directory())
    error = lldb.SBError()
    num = process.GetNumSupportedHardwareWatchpoints(error)
    if (self.TraceOn() and error.Success()):
        print(('Number of supported hardware watchpoints: %d' % num))