<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/lldb/test/API/functionalities/postmortem, branch users/mingmingl-llvm/samplefdo-profile-format</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>NFC: SBThread should not be the one to compute StopReasonData. (#157577)</title>
<updated>2025-09-09T22:31:55+00:00</updated>
<author>
<name>jimingham</name>
<email>jingham@apple.com</email>
</author>
<published>2025-09-09T22:31:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=2669fdeee295ebec5f4f8e7b7826c08d7191d838'/>
<id>2669fdeee295ebec5f4f8e7b7826c08d7191d838</id>
<content type='text'>
This is something the StopInfo class manages, so it should be allowed to
compute this rather than having SBThread do so. This code just moves the
computation to methods in StopInfo. It is mostly NFC. The one change
that I actually had to adjust the tests for was a couple of tests that
were asking for the UnixSignal stop info data by asking for the data at
index 1. GetStopInfoDataCount returns 1 and we don't do 1 based indexing
so the test code was clearly wrong. But I don't think it makes sense to
perpetuate handing out the value regardless of what index you pass us.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is something the StopInfo class manages, so it should be allowed to
compute this rather than having SBThread do so. This code just moves the
computation to methods in StopInfo. It is mostly NFC. The one change
that I actually had to adjust the tests for was a couple of tests that
were asking for the UnixSignal stop info data by asking for the data at
index 1. GetStopInfoDataCount returns 1 and we don't do 1 based indexing
so the test code was clearly wrong. But I don't think it makes sense to
perpetuate handing out the value regardless of what index you pass us.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb][elf-core][ARM] Add support for VFP registers (#155956)</title>
<updated>2025-09-08T21:55:54+00:00</updated>
<author>
<name>Igor Kudrin</name>
<email>ikudrin@accesssoftek.com</email>
</author>
<published>2025-09-08T21:55:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8ec4d87550c01b06a9841014d901146874688894'/>
<id>8ec4d87550c01b06a9841014d901146874688894</id>
<content type='text'>
This patch loads values of the VFP registers from the NT_ARM_VFP note.

Note that a CORE/NT_FPREGSET note is typically present in core dump
files and is used to store the FPA registers. The FPA unit is rare and
obsolete; however, Linux creates the note even if the unit is absent.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch loads values of the VFP registers from the NT_ARM_VFP note.

Note that a CORE/NT_FPREGSET note is typically present in core dump
files and is used to store the FPA registers. The FPA unit is rare and
obsolete; however, Linux creates the note even if the unit is absent.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb] Add stop_description Python property to SBThread (#151568)</title>
<updated>2025-07-31T20:10:04+00:00</updated>
<author>
<name>Dave Lee</name>
<email>davelee.com@gmail.com</email>
</author>
<published>2025-07-31T20:10:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=68b9bb5e9bc3dcd5ff33fe250184debd3cc3dff5'/>
<id>68b9bb5e9bc3dcd5ff33fe250184debd3cc3dff5</id>
<content type='text'>
Add `stop_description` as a Python convenience property to `SBThread`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add `stop_description` as a Python convenience property to `SBThread`.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb] Fix updating persistent variables without JIT (#149642)</title>
<updated>2025-07-30T19:54:15+00:00</updated>
<author>
<name>Igor Kudrin</name>
<email>ikudrin@accesssoftek.com</email>
</author>
<published>2025-07-30T19:54:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=e4c0f300309fbdcdabc43ff4bf57957181d6451e'/>
<id>e4c0f300309fbdcdabc43ff4bf57957181d6451e</id>
<content type='text'>
This patch fixes updating persistent variables when memory cannot be
allocated in an inferior process:
```
&gt; lldb -c test.core
(lldb) expr int $i = 5
(lldb) expr $i = 55
(int) $0 = 55
(lldb) expr $i
(int) $i = 5
```

With this patch, the last command prints:
```
(int) $i = 55
```

The issue was introduced in #145599.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch fixes updating persistent variables when memory cannot be
allocated in an inferior process:
```
&gt; lldb -c test.core
(lldb) expr int $i = 5
(lldb) expr $i = 55
(int) $0 = 55
(lldb) expr $i
(int) $i = 5
```

With this patch, the last command prints:
```
(int) $i = 55
```

The issue was introduced in #145599.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb] Fix evaluating expressions without JIT in an object context (#145599)</title>
<updated>2025-06-27T21:30:24+00:00</updated>
<author>
<name>Igor Kudrin</name>
<email>ikudrin@accesssoftek.com</email>
</author>
<published>2025-06-27T21:30:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=442f99d7698a4ca87ebb16cb22df610c45d4698a'/>
<id>442f99d7698a4ca87ebb16cb22df610c45d4698a</id>
<content type='text'>
If a server does not support allocating memory in an inferior process or
when debugging a core file, evaluating an expression in the context of a
value object results in an error:

```
error: &lt;lldb wrapper prefix&gt;:43:1: use of undeclared identifier '$__lldb_class'
   43 | $__lldb_class::$__lldb_expr(void *$__lldb_arg)
      | ^
```

Such expressions require a live address to be stored in the value
object. However, `EntityResultVariable::Dematerialize()` only sets
`ret-&gt;m_live_sp` if JIT is available, even if the address points to the
process memory and no custom allocations were made. Similarly,
`EntityPersistentVariable::Dematerialize()` tries to deallocate memory
based on the same check, resulting in an error if the memory was not
previously allocated in `EntityPersistentVariable::Materialize()`.

As an unintended bonus, the patch also fixes a FIXME case in
`TestCxxChar8_t.py`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a server does not support allocating memory in an inferior process or
when debugging a core file, evaluating an expression in the context of a
value object results in an error:

```
error: &lt;lldb wrapper prefix&gt;:43:1: use of undeclared identifier '$__lldb_class'
   43 | $__lldb_class::$__lldb_expr(void *$__lldb_arg)
      | ^
```

Such expressions require a live address to be stored in the value
object. However, `EntityResultVariable::Dematerialize()` only sets
`ret-&gt;m_live_sp` if JIT is available, even if the address points to the
process memory and no custom allocations were made. Similarly,
`EntityPersistentVariable::Dematerialize()` tries to deallocate memory
based on the same check, resulting in an error if the memory was not
previously allocated in `EntityPersistentVariable::Materialize()`.

As an unintended bonus, the patch also fixes a FIXME case in
`TestCxxChar8_t.py`.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb][core] Fix getting summary of a variable pointing to r/o memory (#139196)</title>
<updated>2025-05-20T20:50:24+00:00</updated>
<author>
<name>Igor Kudrin</name>
<email>ikudrin@accesssoftek.com</email>
</author>
<published>2025-05-20T20:50:24+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=3f196e029314e3ccb429413a5f38ad241e50f3c5'/>
<id>3f196e029314e3ccb429413a5f38ad241e50f3c5</id>
<content type='text'>
Motivation example:

```
&gt; 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.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Motivation example:

```
&gt; 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.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb][LoongArch] Complete register alias name in `AugmentRegisterInfo`</title>
<updated>2025-02-21T02:59:27+00:00</updated>
<author>
<name>wanglei</name>
<email>wanglei@loongson.cn</email>
</author>
<published>2025-02-21T02:59:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=89e80abbc58b5d92f3a0eaa393a0b095aac11ec2'/>
<id>89e80abbc58b5d92f3a0eaa393a0b095aac11ec2</id>
<content type='text'>
Fixes: https://github.com/llvm/llvm-project/issues/123903

Reviewed By: DavidSpickett, SixWeining

Pull Request: https://github.com/llvm/llvm-project/pull/124059
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fixes: https://github.com/llvm/llvm-project/issues/123903

Reviewed By: DavidSpickett, SixWeining

Pull Request: https://github.com/llvm/llvm-project/pull/124059
</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb][RISC-V] Extended if conditions to support alias names for registers (#124475)</title>
<updated>2025-02-20T16:23:53+00:00</updated>
<author>
<name>kper</name>
<email>kevin.per@protonmail.com</email>
</author>
<published>2025-02-20T16:23:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c48e0c182c5a9e19062677cbca17c89ea586e033'/>
<id>c48e0c182c5a9e19062677cbca17c89ea586e033</id>
<content type='text'>
Extending the conditionals in `AugmentRegisterInfo` to support
alternative names for lldb.

Fixes #124023

There is an exception with register `X8` which is not covered here but
more details can be found in the issue
https://github.com/llvm/llvm-project/issues/127900.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Extending the conditionals in `AugmentRegisterInfo` to support
alternative names for lldb.

Fixes #124023

There is an exception with register `X8` which is not covered here but
more details can be found in the issue
https://github.com/llvm/llvm-project/issues/127900.</pre>
</div>
</content>
</entry>
<entry>
<title>[lldb][LoongArch64] Add support for LoongArch64 in elf-core for lldb (#112296)</title>
<updated>2024-10-21T09:04:55+00:00</updated>
<author>
<name>Liu An</name>
<email>liuan@loongson.cn</email>
</author>
<published>2024-10-21T09:04:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=911a6f2fcc719c46b5b392823473ba0bb5b1f4e1'/>
<id>911a6f2fcc719c46b5b392823473ba0bb5b1f4e1</id>
<content type='text'>
When using the lldb command 'target create --core' on the LoongArch64
architecture, this part of the code is required.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
When using the lldb command 'target create --core' on the LoongArch64
architecture, this part of the code is required.</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Renormalize line endings whitespace only after dccebddb3b80"</title>
<updated>2024-10-18T20:16:50+00:00</updated>
<author>
<name>Luke Drummond</name>
<email>luke.drummond@codeplay.com</email>
</author>
<published>2024-10-18T20:16:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b55c52c047a167f42abbde9a33356cfb96b82c7f'/>
<id>b55c52c047a167f42abbde9a33356cfb96b82c7f</id>
<content type='text'>
This reverts commit 9d98acb196a40fee5229afeb08f95fd36d41c10a.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This reverts commit 9d98acb196a40fee5229afeb08f95fd36d41c10a.
</pre>
</div>
</content>
</entry>
</feed>
