[Lldb-commits] [lldb] [lldb] fix LR/SC handling in lldb-server (PR #127505)

via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 17 07:31:51 PST 2025


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff 4d7192a5ecabb36263a2cacd4e9243b958424805 2ab6cea7391b00ec865e6b7838452511320a2eee --extensions cpp -- lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
index e4de28d97d..34c259a8e6 100644
--- a/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
+++ b/lldb/source/Plugins/Instruction/RISCV/EmulateInstructionRISCV.cpp
@@ -351,8 +351,8 @@ bool AtomicSequence(EmulateInstructionRISCV &emulator) {
     return false;
   current_pc += 4;
 
-      // The second instruction should be BNE or C.BNEZ to exit address
-      inst = emulator.ReadInstructionAt(current_pc);
+  // The second instruction should be BNE or C.BNEZ to exit address
+  inst = emulator.ReadInstructionAt(current_pc);
   if (!inst || !std::holds_alternative<B>(inst->decoded))
     return false;
   auto bne_exit = std::get<B>(inst->decoded);
@@ -370,8 +370,8 @@ bool AtomicSequence(EmulateInstructionRISCV &emulator) {
     return false;
   current_pc += 4;
 
-      // The fourth instruction should be BNE or C.BNEZ to entry address
-      inst = emulator.ReadInstructionAt(current_pc);
+  // The fourth instruction should be BNE or C.BNEZ to entry address
+  inst = emulator.ReadInstructionAt(current_pc);
   if (!inst || !std::holds_alternative<B>(inst->decoded))
     return false;
   auto bne_start = std::get<B>(inst->decoded);

``````````

</details>


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


More information about the lldb-commits mailing list