Igor Kudrin
442f99d769
[lldb] Fix evaluating expressions without JIT in an object context ( #145599 )
...
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: <lldb wrapper prefix>: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->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`.
2025-06-27 14:30:24 -07:00
..
2023-05-25 12:54:09 -07:00
2023-07-03 08:35:55 -04:00
2024-06-28 14:15:09 +01:00
2023-05-25 12:54:09 -07:00
2024-08-20 22:26:49 +04:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-06-27 14:30:24 -07:00
2025-02-28 14:59:35 +00:00
2025-02-28 14:59:35 +00:00
2025-02-28 14:59:35 +00:00
2023-05-25 12:54:09 -07:00
2024-07-26 14:28:11 +02:00
2025-02-13 09:53:17 +00:00
2024-07-26 14:28:11 +02:00
2023-05-25 12:54:09 -07:00
2024-11-11 13:30:06 +00:00
2025-05-27 18:41:16 -07:00
2024-04-19 16:41:07 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-06-06 17:17:00 +01:00
2023-05-25 12:54:09 -07:00
2024-11-05 16:39:31 +01:00
2024-06-28 20:08:53 +01:00
2025-05-27 18:41:16 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-02-13 18:13:09 +00:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2023-10-13 10:06:50 -07:00
2025-06-09 10:14:54 +00:00
2023-05-25 12:54:09 -07:00
2024-09-18 17:50:09 +05:00
2023-05-25 12:54:09 -07:00
2023-06-16 14:51:14 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-29 17:39:36 +04:00
2025-05-29 12:06:29 +01:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-10-16 13:07:02 +02:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-02-28 14:59:35 +00:00
2024-05-21 12:45:59 +02:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-02-28 14:59:35 +00:00
2025-05-27 18:41:16 -07:00
2023-05-25 12:54:09 -07:00
2025-01-16 10:49:51 +01:00
2024-09-16 12:05:00 +01:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-10-18 14:19:42 +01:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-13 16:19:41 -06:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2025-03-17 14:30:39 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-29 17:39:36 +04:00
2023-05-25 12:54:09 -07:00
2025-01-24 10:02:15 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-11-18 16:15:41 -08:00
2023-05-25 12:54:09 -07:00
2025-05-27 18:41:16 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-16 20:58:50 -08:00
2025-02-17 22:03:53 +00:00
2024-09-27 18:09:52 -07:00
2024-02-16 20:58:50 -08:00
2023-05-25 12:54:09 -07:00
2023-05-29 12:13:16 +04:00
2024-02-13 16:19:41 -06:00
2025-02-17 16:25:13 -08:00
2025-05-27 18:41:16 -07:00
2023-05-25 12:54:09 -07:00
2025-05-07 20:39:37 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-12-23 11:51:28 +00:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-15 22:54:00 -08:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00
2024-02-15 22:54:00 -08:00
2025-02-28 14:59:35 +00:00
2023-05-25 12:54:09 -07:00
2023-05-25 12:54:09 -07:00