[Lldb-commits] [PATCH] D133366: [lldb] Fix SBFileSpec.fullpath for Windows
Dave Lee via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Sep 6 10:45:19 PDT 2022
kastiglione created this revision.
kastiglione added a reviewer: mib.
Herald added a project: All.
kastiglione requested review of this revision.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
Fix `fullpath` to not assume a `/` path separator. This was discovered when
D133130 <https://reviews.llvm.org/D133130> failed on Windows. Use `os.path.join()` to fix the issue.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D133366
Files:
lldb/bindings/interface/SBFileSpec.i
Index: lldb/bindings/interface/SBFileSpec.i
===================================================================
--- lldb/bindings/interface/SBFileSpec.i
+++ lldb/bindings/interface/SBFileSpec.i
@@ -88,7 +88,7 @@
spec_dir = self.GetDirectory()
spec_file = self.GetFilename()
if spec_dir and spec_file:
- return '%s/%s' % (spec_dir, spec_file)
+ return os.path.join(spec_dir, spec_file)
elif spec_dir:
return spec_dir
elif spec_file:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133366.458213.patch
Type: text/x-patch
Size: 544 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20220906/5f7b18e1/attachment.bin>
More information about the lldb-commits
mailing list