Skip to content

Conversation

@omarArm
Copy link
Contributor

@omarArm omarArm commented Jul 15, 2025

Problem:
When a user is using remote GDB and tries to set more than the amount of HW breakpoints, GDB sends a warning message and cannot step anymore.

Solution:
I created this PR, where a red error message will be printed to the user to ask for the extra breakpoints to be erased.

Future work:
When the user sets all of the breakpoints before starting the debug session the adapter sends an error message to VSCode, which in turn triggers a disconnect request back to the adapter. This should be mitigated somehow for a consistent behaviour between before and after the debug session starts

@jreineckearm
Copy link
Contributor

Addresses part 1) of #402

Copy link
Contributor

@jreineckearm jreineckearm left a comment

Choose a reason for hiding this comment

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

LGTM! Apologies for applying review feedback myself. @omarArm is out for a couple of days.

I think switchOutputToError will evolve over time. I suspect there is more severe errors hidden in the blue logs. Improve the error transformation code when adding more.

@jreineckearm jreineckearm merged commit 433d8b9 into eclipse-cdt-cloud:main Jul 17, 2025
4 checks passed
@omarArm omarArm deleted the improveBpErrorLogging branch September 16, 2025 07:43
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.

2 participants