o Exposed SBFileSpec to the Python APIs in lldb.py.
o Fixed a crasher when getting it via SBTarget.GetExecutable().
>>> filespec = target.GetExecutable()
Segmentation fault
o And renamed SBFileSpec::GetFileName() to GetFilename() to be consistent with FileSpec::GetFilename().
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@112308 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/API/SBFileSpec.cpp b/source/API/SBFileSpec.cpp
index 308e609..e1a8399 100644
--- a/source/API/SBFileSpec.cpp
+++ b/source/API/SBFileSpec.cpp
@@ -24,7 +24,7 @@
m_opaque_ap()
{
if (rhs.m_opaque_ap.get())
- m_opaque_ap.reset (new FileSpec (*m_opaque_ap));
+ m_opaque_ap.reset (new FileSpec (rhs.get()));
}
SBFileSpec::SBFileSpec (const char *path) :
@@ -69,7 +69,7 @@
}
const char *
-SBFileSpec::GetFileName() const
+SBFileSpec::GetFilename() const
{
if (m_opaque_ap.get())
return m_opaque_ap->GetFilename().AsCString();