[all-commits] [llvm/llvm-project] 3f196e: [lldb][core] Fix getting summary of a variable poi...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Tue May 20 13:50:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3f196e029314e3ccb429413a5f38ad241e50f3c5
      https://github.com/llvm/llvm-project/commit/3f196e029314e3ccb429413a5f38ad241e50f3c5
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2025-05-20 (Tue, 20 May 2025)

  Changed paths:
    M lldb/source/ValueObject/ValueObject.cpp
    M lldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py
    A lldb/test/API/functionalities/postmortem/elf-core/altmain2.core
    A lldb/test/API/functionalities/postmortem/elf-core/altmain2.out

  Log Message:
  -----------
  [lldb][core] Fix getting summary of a variable pointing to r/o memory (#139196)

Motivation example:

```
> lldb -c altmain2.core
...
(lldb) var F
(const char *) F = 0x0804a000 ""
```

The variable `F` points to a read-only memory page not dumped to the
core file, so `Process::ReadMemory()` cannot read the data. The patch
switches to `Target::ReadMemory()`, which can read data both from the
process memory and the application binary.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list