[all-commits] [llvm/llvm-project] e2fa8d: [lldb][lldb-dap] Do not expose internal breakpoint...

Gabriele Mondada via All-commits all-commits at lists.llvm.org
Mon Jan 5 07:31:50 PST 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e2fa8dcb0d508cdf9d8a4b18a12838b5adfd8194
      https://github.com/llvm/llvm-project/commit/e2fa8dcb0d508cdf9d8a4b18a12838b5adfd8194
  Author: Gabriele Mondada <gab at ijk.ch>
  Date:   2026-01-05 (Mon, 05 Jan 2026)

  Changed paths:
    M lldb/tools/lldb-dap/LLDBUtils.cpp

  Log Message:
  -----------
  [lldb][lldb-dap] Do not expose internal breakpoints to DAP clients (#173848)

**This commit fixes the following problem:**

When debugging an APK running on Android, and the Android process stops
due to a user breakpoint, sometimes a second breakpoint is hit at the
same time, and the corresponding thread is marked as stopped for reason
`jit-debug-register`.

This second breakpoint is used by lldb internally, to track code
generated by the JIT compiler (JVM).

Instead of displaying the code corresponding to the user breakpoint, the
debugger displays the disassembled code corresponding to this internal
breakpoint.

**Solution:**

Internal breakpoints must stay internal, not visible by VS Code or any
other DAP-based debugger.

**Notes:**

* This is part on an effort to get lldb working for debugging Swift on
Android: https://github.com/swiftlang/llvm-project/issues/10831
* Reproducing the problems is not simple because you need an environment
allowing to run lldb-server in the Android emulator. See
https://github.com/gmondada/swift-on-android/blob/main/Docs/exploring-apk-debugging.md
* The problem has been seen on Android, but `jit-debug-register` is not
Android specific and there are probably other scenarios where internal
breakpoints are used.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list