Fix TestSymbolContext for remote Windows to Android.

Summary: Denormalize path returned by SBFileSpec::GetDirectory().

Reviewers: zturner, clayborg

Reviewed By: clayborg

Subscribers: tberghammer, lldb-commits

Differential Revision: http://reviews.llvm.org/D10298

llvm-svn: 239358
This commit is contained in:
Chaoren Lin 2015-06-08 22:12:58 +00:00
parent f0b1813fd3
commit 7d2f62dacc
1 changed files with 5 additions and 4 deletions

View File

@ -119,18 +119,19 @@ SBFileSpec::GetFilename() const
const char *
SBFileSpec::GetDirectory() const
{
const char *s = m_opaque_ap->GetDirectory().AsCString();
FileSpec directory{*m_opaque_ap};
directory.GetFilename().Clear();
Log *log(lldb_private::GetLogIfAllCategoriesSet (LIBLLDB_LOG_API));
if (log)
{
if (s)
if (directory)
log->Printf ("SBFileSpec(%p)::GetDirectory () => \"%s\"",
static_cast<void*>(m_opaque_ap.get()), s);
static_cast<void*>(m_opaque_ap.get()), directory.GetCString());
else
log->Printf ("SBFileSpec(%p)::GetDirectory () => NULL",
static_cast<void*>(m_opaque_ap.get()));
}
return s;
return directory.GetCString();
}
void