[Lldb-commits] [PATCH] D149262: [lldb] Add settings for expression evaluation memory allocations.

Ilia Kuklin via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon May 1 12:11:56 PDT 2023


kuilpd updated this revision to Diff 518520.
kuilpd added a comment.

Rebased and added a test.

Instead of just getting a variable's address from allocated inside an expression, I decided to check for memory allocations inside logs. Exact variable address could change with the compilation changes, so this should be more reliable.


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

https://reviews.llvm.org/D149262

Files:
  lldb/include/lldb/Target/ABI.h
  lldb/include/lldb/Target/Target.h
  lldb/source/Expression/IRMemoryMap.cpp
  lldb/source/Expression/LLVMUserExpression.cpp
  lldb/source/Plugins/ABI/MSP430/ABISysV_msp430.h
  lldb/source/Target/Target.cpp
  lldb/source/Target/TargetProperties.td
  lldb/test/API/commands/expression/memory-allocation/Makefile
  lldb/test/API/commands/expression/memory-allocation/TestMemoryAllocSettings.py
  lldb/test/API/commands/expression/memory-allocation/main.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149262.518520.patch
Type: text/x-patch
Size: 10432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230501/871c40eb/attachment.bin>


More information about the lldb-commits mailing list