[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
Wed Apr 26 08:12:45 PDT 2023


kuilpd created this revision.
kuilpd added reviewers: asl, bulbazord, DavidSpickett.
kuilpd added projects: LLDB, All.
Herald added subscribers: Michael137, JDevlieghere, arichardson.
kuilpd requested review of this revision.
Herald added a subscriber: lldb-commits.

Expression evaluation allocates memory for storing intermediate data during evaluation. For it to work properly it has to be allocated within target's available address space, for example within first 0xFFFF bytes for the 16-bit MSP430. The memory for such targets can be very tightly packed, but not all targets support GetMemoryRegionInfo API to pick an unused region, like MSP430 with MSPDebug GDB server.

These settings allow the programmer to manually pick precisely where and how much memory to allocate for expression evaluation in order not to overlap with existing data in process memory.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149262

Files:
  lldb/include/lldb/Target/Target.h
  lldb/source/Expression/IRMemoryMap.cpp
  lldb/source/Expression/LLVMUserExpression.cpp
  lldb/source/Target/Target.cpp
  lldb/source/Target/TargetProperties.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149262.517180.patch
Type: text/x-patch
Size: 6628 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230426/80fb1c94/attachment-0001.bin>


More information about the lldb-commits mailing list