-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[lldb-dap] assembly breakpoints #139969
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
[lldb-dap] assembly breakpoints #139969
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
d6325b3
support assembly in BreakpointLocationsRequestHandler
eronnen ee49203
support assembly in SetBreakpointsRequestHandler
eronnen dbb2f9b
fix resolving of assembly source breakpoints
eronnen 3699524
remove include
eronnen 61623de
use load address as sourceReference
eronnen f5fd76d
add breakpoint-assembly test
eronnen 40f68e4
python format
eronnen 199512f
restore SBFileSpec and fix assembly breakpoints CR
eronnen dbad33b
abstracted source breakpoints maps by DAP
eronnen 2e9edca
improve assembvly breakpoint test to check clear
eronnen 0515c6d
fix GetSBFileSpecPath extra char
eronnen 9dbca55
restore SBFileSpec changes
eronnen 396970d
single line if with comments curly braces
eronnen 7a0e0ee
unecessary include
eronnen 71dce6c
unecessary source member
eronnen 15e7294
return errors for invalid assembly breakpoints, fix request_setBreakp…
eronnen 044fd90
add python Source class wrapper for request_setBreakpoints
eronnen ef75e4d
fix comments and conventions
eronnen f9d9024
format
eronnen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -1658,9 +1658,16 @@ std::vector<protocol::Breakpoint> DAP::SetSourceBreakpoints( | |||||
| const auto [iv, inserted] = | ||||||
| existing_breakpoints.try_emplace(bp_pos, src_bp); | ||||||
| // We check if this breakpoint already exists to update it. | ||||||
| if (inserted) | ||||||
| iv->second.SetBreakpoint(source); | ||||||
| else | ||||||
| if (inserted) { | ||||||
| if (auto error = iv->second.SetBreakpoint(source)) { | ||||||
|
||||||
| if (auto error = iv->second.SetBreakpoint(source)) { | |
| if (llvm::Error error = iv->second.SetBreakpoint(source)) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What about:
Then we wouldn't need the
get_source_for_pathandget_source_for_source_referencehelpers, since those would be built based on the args of the request.I could also look at adding this as a follow up to this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice idea, I added a simple
Sourceclass for this, let me know what you think