Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@MrIndeciso
Copy link
Member

No description provided.

@MrIndeciso MrIndeciso requested a review from Copilot September 28, 2025 21:56
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR allows hardware breakpoints and watchpoints to be set at non-existent memory addresses, enabling them to trigger when that memory is later allocated and accessed. The change adds fallback behavior for hardware breakpoints at absolute addresses that can't be resolved in current memory maps.

  • Enhanced address resolution to handle hardware breakpoints at invalid/unmapped addresses
  • Added comprehensive test coverage with dynamic memory mapping scenarios
  • Updated documentation to reflect the new capability

Reviewed Changes

Copilot reviewed 4 out of 7 changed files in this pull request and generated 1 comment.

File Description
libdebug/debugger/internal_debugger.py Added exception handling to allow hardware breakpoints at unresolved absolute addresses
test/srcs/breakpoint_test_2.c Created test program with dynamic memory mapping to validate breakpoint behavior
test/scripts/breakpoint_test.py Added test case for hardware breakpoints at invalid locations
newsfragments/284.improvement.md Added changelog entry describing the new feature

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

io-no
io-no previously approved these changes Oct 12, 2025
Copy link
Member

@io-no io-no left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a draft because you’re worried about edge cases, or do you already know of edge cases that aren’t handled yet? In general lgtm

@MrIndeciso
Copy link
Member Author

@io-no currently it is a draft because it breaks in the CI and I couldn't figure out why

@MrIndeciso MrIndeciso force-pushed the allow-hw-bps-at-invalid-locations branch from dcc7c45 to b3f5413 Compare October 29, 2025 22:50
@MrIndeciso
Copy link
Member Author

I'm starting to think that this might be a QEMU bug...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants