Skip to content
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

gdbserver: return empty T response if reading regs fails #1282

Merged

Conversation

flit
Copy link
Member

@flit flit commented Dec 26, 2021

If reading registers for the T response fails (for instance if the core isn't halted), don't include any register values in the T response. Unlike other gdb register read responses, we shouldn't set the value of failed register reads to x's since gdb dislikes x's in a T response.

…gs fails.

If reading registers for the T response fails, don't include any
register values in the T response. Unlike other gdb register read
responses, we shouldn't set the value of failed register reads to
x's since gdb dislikes x's in a T response.
@flit flit merged commit 57820bb into pyocd:develop Dec 26, 2021
@flit flit deleted the bugfix/gdbserver_t_response_failed_reg_read branch December 26, 2021 22:10
flit added a commit to flit/pyOCD that referenced this pull request Dec 30, 2021
…gs fails. (pyocd#1282)

If reading registers for the T response fails, don't include any
register values in the T response. Unlike other gdb register read
responses, we shouldn't set the value of failed register reads to
x's since gdb dislikes x's in a T response.
flit added a commit that referenced this pull request Dec 30, 2021
…gs fails. (#1282)

If reading registers for the T response fails, don't include any
register values in the T response. Unlike other gdb register read
responses, we shouldn't set the value of failed register reads to
x's since gdb dislikes x's in a T response.
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.

1 participant