diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2010-08-27 22:35:26 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2010-08-27 22:35:26 +0000 |
| commit | 23fd10cb4ed3d181912f79364d3b197cfbac7254 (patch) | |
| tree | c951a5fb8a26ad0c54b22ba3a8852b57c5d672d8 /lldb/source/API/SBFileSpec.cpp | |
| parent | 1ba644575d3ce979d6218ca2f6765b4227b0ce14 (diff) | |
| download | bcm5719-llvm-23fd10cb4ed3d181912f79364d3b197cfbac7254.tar.gz bcm5719-llvm-23fd10cb4ed3d181912f79364d3b197cfbac7254.zip | |
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().
llvm-svn: 112308
Diffstat (limited to 'lldb/source/API/SBFileSpec.cpp')
| -rw-r--r-- | lldb/source/API/SBFileSpec.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp index 308e60975e5..e1a83999f03 100644 --- a/lldb/source/API/SBFileSpec.cpp +++ b/lldb/source/API/SBFileSpec.cpp @@ -24,7 +24,7 @@ SBFileSpec::SBFileSpec (const SBFileSpec &rhs) : 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 @@ SBFileSpec::ResolvePath (const char *src_path, char *dst_path, size_t dst_len) } const char * -SBFileSpec::GetFileName() const +SBFileSpec::GetFilename() const { if (m_opaque_ap.get()) return m_opaque_ap->GetFilename().AsCString(); |

