[Lldb-commits] [PATCH] D72880: Fix a buffer-size bug when the first DW_OP_piece is undefined

Vedant Kumar via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu Jan 16 16:03:29 PST 2020


vsk added inline comments.


================
Comment at: lldb/source/Expression/DWARFExpression.cpp:2077
+          // with the expression result, so the debugger can print missing
+          // members as "<optimized out>" or something.
           ::memset(curr_piece.GetBuffer().GetBytes(), 0, piece_byte_size);
----------------
FTR I'm not really sure this case is allowed by the dwarf standard. Under DW_OP_piece the standard references a "preceding simple location description" -- istm like an error if the stack is empty. My $0.0002 :) 


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D72880/new/

https://reviews.llvm.org/D72880





More information about the lldb-commits mailing list