Vector35 / Vector35/debugger

Relative breakpoint (module + offset) does not work with LLDB adapter when the module is not the main module

Open
#952 0 comments 0 reactions 1 assignee View on GitHub

@xusheng6 is already working on this.

Since Jan 9, 2026.

breakpoint bug Impact: Medium LLDB Adapter
Dominant language
C++
Stars
331
Forks
33
PR merge metrics
No merged PRs in 30d

Description

This happens at https://github.com/Vector35/debugger/blob/e99b62995421f94a440a2185a7a067ec5a18ef5c/core/adapters/lldbadapter.cpp#L987

LLDB expects breakpoint to be in the form of module + address_in_original_module. So for example, if module foobar is originally based at 0x140000000, and we want a breakpoint at offset 0x1234, we need to use 0x140001234 to set the breakpoint. For the main module, we compensate for this by doing uint64_t addr = address.offset + m_originalImageBase;. But this is incorrect for any modules other than the module that is opened in binja

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.