diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-10-25 15:08:26 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2023-10-25 16:50:00 +0900 |
commit | 526292d9fe8a50aabe54b06c4449e9d8e2b22381 (patch) | |
tree | 9b3e960651015dd3ae469fbd017115ee008d9d55 /misc/lldb_rb/commands/heap_page_command.py | |
parent | bf1362306e2c799b0e5ff222b0cdcdb8644adc27 (diff) |
LLDB: Use `expression` to save the result into the history [ci skip]
Diffstat (limited to 'misc/lldb_rb/commands/heap_page_command.py')
-rw-r--r-- | misc/lldb_rb/commands/heap_page_command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/misc/lldb_rb/commands/heap_page_command.py b/misc/lldb_rb/commands/heap_page_command.py index edb74a415b..b56a3eae4e 100644 --- a/misc/lldb_rb/commands/heap_page_command.py +++ b/misc/lldb_rb/commands/heap_page_command.py @@ -14,8 +14,8 @@ class HeapPageCommand(RbBaseCommand): page = self._get_page(self.frame.EvaluateExpression(command)) page.Cast(self.t_heap_page_ptr) - self._append_command_output(debugger, "p (struct heap_page *) %0#x" % page.GetValueAsUnsigned(), result) - self._append_command_output(debugger, "p *(struct heap_page *) %0#x" % page.GetValueAsUnsigned(), result) + self._append_expression(debugger, "(struct heap_page *) %0#x" % page.GetValueAsUnsigned(), result) + self._append_expression(debugger, "*(struct heap_page *) %0#x" % page.GetValueAsUnsigned(), result) def _get_page(self, val): addr = val.GetValueAsUnsigned() |