Index: tools/memory_inspector/memory_inspector/core/stacktrace.py |
diff --git a/tools/memory_inspector/memory_inspector/core/stacktrace.py b/tools/memory_inspector/memory_inspector/core/stacktrace.py |
index 6b865b451f378f16c93965913f88b2220821fd2a..050c97628a878a5c2f7fc1621ab2b9382cacc28e 100644 |
--- a/tools/memory_inspector/memory_inspector/core/stacktrace.py |
+++ b/tools/memory_inspector/memory_inspector/core/stacktrace.py |
@@ -2,7 +2,7 @@ |
# Use of this source code is governed by a BSD-style license that can be |
# found in the LICENSE file. |
-import os |
+import posixpath |
from memory_inspector.core import symbol |
@@ -67,7 +67,9 @@ class Frame(object): |
@property |
def exec_file_name(self): |
"""Returns the file name (stripped of the path) of the executable.""" |
- return os.path.basename(self.exec_file_rel_path) |
+ if self.exec_file_rel_path is None: |
+ return None |
+ return posixpath.basename(self.exec_file_rel_path.replace('\\', '/')) |
@property |
def raw_address(self): |