1 STRING_EXTENSION_OUTSIDE
(SBDebugger
)
3 %extend lldb
::SBDebugger
{
6 def SetOutputFileHandle
(self
, file
, transfer_ownership
):
7 "DEPRECATED, use SetOutputFile"
11 self.SetOutputFile
(SBFile.Create
(file
, borrow
=True
))
13 def SetInputFileHandle
(self
, file
, transfer_ownership
):
14 "DEPRECATED, use SetInputFile"
18 self.SetInputFile
(SBFile.Create
(file
, borrow
=True
))
20 def SetErrorFileHandle
(self
, file
, transfer_ownership
):
21 "DEPRECATED, use SetErrorFile"
25 self.SetErrorFile
(SBFile.Create
(file
, borrow
=True
))
28 '''Iterate over all targets in a lldb.SBDebugger object.'''
29 return lldb_iter
(self
, 'GetNumTargets'
, 'GetTargetAtIndex'
)
32 '''Return the number of targets in a lldb.SBDebugger object.'''
33 return self.GetNumTargets
()
37 lldb
::FileSP GetInputFileHandle
() {
38 return self-
>GetInputFile
().GetFile
();
41 lldb
::FileSP GetOutputFileHandle
() {
42 return self-
>GetOutputFile
().GetFile
();
45 lldb
::FileSP GetErrorFileHandle
() {
46 return self-
>GetErrorFile
().GetFile
();