The memory read --outfile command should truncate the output when unless --append-outfile. Fix the bug and add a test.
rdar://76062318
| Paths 
 |  Differential  D99890  
[lldb] Fix bug where memory read --outfile is not truncating the file ClosedPublic Authored by JDevlieghere on Apr 5 2021, 10:16 AM. 
Details Summary The memory read --outfile command should truncate the output when unless --append-outfile. Fix the bug and add a test. rdar://76062318 
Diff Detail 
 Event TimelineJDevlieghere created this revision. Comment Actions Thanks for the patch! I'll be extra nit-picky about the test to make up for the great meme steal of 2021. 
 This revision now requires changes to proceed.Apr 6 2021, 6:18 AM Comment Actions 
 Credit was given, so I do not consider it theft. This revision is now accepted and ready to land.Apr 6 2021, 8:36 AM This revision was landed with ongoing or failed builds.Apr 6 2021, 9:16 AM Closed by commit rG710651c61dcd: [lldb] Fix bug where memory read --outfile is not truncating the file (authored by JDevlieghere).  ·  Explain Why This revision was automatically updated to reflect the committed changes. 
Revision Contents 
 
 
Diff 335548 lldb/source/Commands/CommandObjectMemory.cpp
 lldb/test/API/functionalities/memory/read/TestMemoryRead.py
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
No longer needed