diff options
author | Michał Górny <mgorny@moritz.systems> | 2021-09-10 11:59:06 +0200 |
---|---|---|
committer | Michał Górny <mgorny@moritz.systems> | 2021-09-10 11:59:06 +0200 |
commit | e066c00be09a9257a28eaf12059e4d28f095ae65 (patch) | |
tree | 5abe2c5ac1430dceee9eb28d4d630d111b0cc360 /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | |
parent | a1097d315c80a1c079dc7dda1661d0c2baa2d1e6 (diff) | |
download | llvm-e066c00be09a9257a28eaf12059e4d28f095ae65.zip llvm-e066c00be09a9257a28eaf12059e4d28f095ae65.tar.gz llvm-e066c00be09a9257a28eaf12059e4d28f095ae65.tar.bz2 |
[lldb] [gdb-server] Zero-initialize fields on WIN32
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp index 16aa0d6..4109374 100644 --- a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp @@ -789,6 +789,9 @@ GDBRemoteCommunicationServerCommon::Handle_vFile_FStat( #if !defined(_WIN32) data.gdb_st_blksize = file_stats.st_blksize; data.gdb_st_blocks = file_stats.st_blocks; +#else + data.gdb_st_blksize = 0; + data.gdb_st_blocks = 0; #endif fill_clamp(data.gdb_st_atime, file_stats.st_atime, 0); fill_clamp(data.gdb_st_mtime, file_stats.st_mtime, 0); |