A few small fixes to make things like image list not
print "//mach_kernel" if you are debugging an executable
in the top level directory.
git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@181190 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Commands/CommandObjectTarget.cpp b/source/Commands/CommandObjectTarget.cpp
index 899db4c..522a482 100644
--- a/source/Commands/CommandObjectTarget.cpp
+++ b/source/Commands/CommandObjectTarget.cpp
@@ -1385,12 +1385,9 @@
{
if (width > 0)
{
- char fullpath[PATH_MAX];
- if (file_spec_ptr->GetPath(fullpath, sizeof(fullpath)))
- {
- strm.Printf("%-*s", width, fullpath);
- return;
- }
+ std::string fullpath = file_spec_ptr->GetPath();
+ strm.Printf("%-*s", width, fullpath.c_str());
+ return;
}
else
{