[lldb] [llvm] [lldb][RISCV] function calls support in lldb expressions (PR #99336)

Pavel Labath via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 26 02:17:45 PDT 2024


================
@@ -0,0 +1,58 @@
+//===--- DirectToIndirectFCR.h - RISC-V specific pass ---------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#pragma once
+
+#include "lldb/lldb-types.h"
+
+#include "llvm/IR/Instructions.h"
+#include "llvm/Pass.h"
+
+namespace lldb_private {
+
+class ExecutionContext;
+
+// During the lldb expression execution lldb wraps a user expression, jittes
+// fabricated code and then puts it into the stack memory. Thus, if user tried
----------------
labath wrote:

LLDB allocates memory inside the target process, either by calling mmap (that's what the `PrepareTrivialCall` function you're updating in this patch does), or through a server-specific mechanism the `_M` packet.

https://github.com/llvm/llvm-project/pull/99336


More information about the llvm-commits mailing list