summaryrefslogtreecommitdiff
path: root/lldb/scripts/Python/interface/SBFileSpec.i
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
committerBill Wendling <isanbard@gmail.com>2012-04-18 21:39:23 +0000
commit392e4fbdd9b152efff4c051286f6b2c21270c902 (patch)
tree4ac339be2c4c7c596f068b59d5e512b157c7b433 /lldb/scripts/Python/interface/SBFileSpec.i
parenteb1c2bdc1f55fbc5d1e7bb86e9f0e038b0f5adb7 (diff)
Creating release_31 branchllvmorg-3.1.0-rc1
llvm-svn: 155059 llvm-svn: 155053 llvm-svn: 155051
Diffstat (limited to 'lldb/scripts/Python/interface/SBFileSpec.i')
-rw-r--r--lldb/scripts/Python/interface/SBFileSpec.i97
1 files changed, 0 insertions, 97 deletions
diff --git a/lldb/scripts/Python/interface/SBFileSpec.i b/lldb/scripts/Python/interface/SBFileSpec.i
deleted file mode 100644
index ae23c8fd5fc4..000000000000
--- a/lldb/scripts/Python/interface/SBFileSpec.i
+++ /dev/null
@@ -1,97 +0,0 @@
-//===-- SWIG Interface for SBFileSpec ---------------------------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-
-namespace lldb {
-
-%feature("docstring",
-"Represents a file specfication that divides the path into a directory and
-basename. The string values of the paths are put into uniqued string pools
-for fast comparisons and efficient memory usage.
-
-For example, the following code
-
- lineEntry = context.GetLineEntry()
- self.expect(lineEntry.GetFileSpec().GetDirectory(), 'The line entry should have the correct directory',
- exe=False,
- substrs = [self.mydir])
- self.expect(lineEntry.GetFileSpec().GetFilename(), 'The line entry should have the correct filename',
- exe=False,
- substrs = ['main.c'])
- self.assertTrue(lineEntry.GetLine() == self.line,
- 'The line entry's line number should match ')
-
-gets the line entry from the symbol context when a thread is stopped.
-It gets the file spec corresponding to the line entry and checks that
-the filename and the directory matches wat we expect.
-") SBFileSpec;
-class SBFileSpec
-{
-public:
- SBFileSpec ();
-
- SBFileSpec (const lldb::SBFileSpec &rhs);
-
- SBFileSpec (const char *path);// Deprected, use SBFileSpec (const char *path, bool resolve)
-
- SBFileSpec (const char *path, bool resolve);
-
- ~SBFileSpec ();
-
- bool
- IsValid() const;
-
- bool
- Exists () const;
-
- bool
- ResolveExecutableLocation ();
-
- const char *
- GetFilename() const;
-
- const char *
- GetDirectory() const;
-
- uint32_t
- GetPath (char *dst_path, size_t dst_len) const;
-
- static int
- ResolvePath (const char *src_path, char *dst_path, size_t dst_len);
-
- bool
- GetDescription (lldb::SBStream &description) const;
-
- %pythoncode %{
- def __get_fullpath__(self):
- spec_dir = self.GetDirectory()
- spec_file = self.GetFilename()
- if spec_dir and spec_file:
- return '%s/%s' % (spec_dir, spec_file)
- elif spec_dir:
- return spec_dir
- elif spec_file:
- return spec_file
- return None
-
- __swig_getmethods__["fullpath"] = __get_fullpath__
- if _newclass: x = property(__get_fullpath__, None)
-
- __swig_getmethods__["basename"] = GetFilename
- if _newclass: x = property(GetFilename, None)
-
- __swig_getmethods__["dirname"] = GetDirectory
- if _newclass: x = property(GetDirectory, None)
-
- __swig_getmethods__["exists"] = Exists
- if _newclass: x = property(Exists, None)
- %}
-
-};
-
-} // namespace lldb