[Lldb-commits] [lldb] e066c00 - [lldb] [gdb-server] Zero-initialize fields on WIN32

Michał Górny via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 10 02:59:22 PDT 2021


Author: Michał Górny
Date: 2021-09-10T11:59:06+02:00
New Revision: e066c00be09a9257a28eaf12059e4d28f095ae65

URL: https://github.com/llvm/llvm-project/commit/e066c00be09a9257a28eaf12059e4d28f095ae65
DIFF: https://github.com/llvm/llvm-project/commit/e066c00be09a9257a28eaf12059e4d28f095ae65.diff

LOG: [lldb] [gdb-server] Zero-initialize fields on WIN32

Added: 
    

Modified: 
    lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp b/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp
index 16aa0d687c2e..410937483dcd 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);


        


More information about the lldb-commits mailing list