summaryrefslogtreecommitdiff
path: root/lldb/source/API/SBFileSpec.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2020-02-05 21:20:12 -0800
committerJonas Devlieghere <jonas@devlieghere.com>2020-02-05 21:55:36 -0800
commit3da7dcf38a96b7ba8ba0cb61be40210ace3fd91f (patch)
tree8c35226c15011a4a2419602fd0edb15f2ae9437e /lldb/source/API/SBFileSpec.cpp
parent8dc3da7d58fe253b17bbfbdb5b4b51e8f0aa2e0f (diff)
[lldb/Reproducers] Serialize empty string for char* methods.
For the methods taking a char* and a length that have a custom replayer, ignore the incoming string in the instrumentation macro. This prevents potentially reading garbage and blowing up the SB API log.
Diffstat (limited to 'lldb/source/API/SBFileSpec.cpp')
-rw-r--r--lldb/source/API/SBFileSpec.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBFileSpec.cpp b/lldb/source/API/SBFileSpec.cpp
index a9b3c0f99f9d..3c3ea32a455d 100644
--- a/lldb/source/API/SBFileSpec.cpp
+++ b/lldb/source/API/SBFileSpec.cpp
@@ -143,8 +143,8 @@ void SBFileSpec::SetDirectory(const char *directory) {
}
uint32_t SBFileSpec::GetPath(char *dst_path, size_t dst_len) const {
- LLDB_RECORD_DUMMY(uint32_t, SBFileSpec, GetPath, (char *, size_t),
- dst_path, dst_len);
+ LLDB_RECORD_METHOD_CONST(uint32_t, SBFileSpec, GetPath, (char *, size_t), "",
+ dst_len);
uint32_t result = m_opaque_up->GetPath(dst_path, dst_len);