forked from OSchip/llvm-project
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:
parent
f0b1813fd3
commit
7d2f62dacc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue