Skip to content

Conversation

Angelo942
Copy link
Contributor

Description

If gdb is recent enough this patch uses breakpoint.locations to extract directly the address at which the breakpoints are set instead of parsing the command used by the user.

As discussed in #1039 the previous implementation only worked if the user sets the breakpoint with a format "b *{hex(address)}"

  • My code follows the code style of this project.
  • My change includes a change to the documentation, if required.
  • If my change adds new code, adequate tests have been added.
  • I have read and agree to the CONTRIBUTING document.

Copy link

github-actions bot commented Feb 9, 2024

🤖 Coverage update for 55c5bde 🟢

Old New
Commit db5b7b8 55c5bde
Score 71.7996% 71.7996% (0)

hugsy
hugsy previously requested changes Feb 9, 2024
@Angelo942
Copy link
Contributor Author

@Grazfather recommended the hasattr. Which one should I keep ?

I think that we should use hasattr instead of checking the GDB_VERSION, since it better guards against some distros maybe having patches that add the feature early or don't have it in 13.1.

@Angelo942
Copy link
Contributor Author

@hugsy Do we have a decision on which check to use ?

And in both cases you prefer if I remove the comments ?

@Grazfather Grazfather requested a review from hugsy February 23, 2024 13:11
@Grazfather Grazfather merged commit cdaf158 into hugsy:main Feb 23, 2024
@hugsy hugsy added this to the 2024.05 milestone Apr 10, 2024
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