Skip to content

lldb: Don't mistake memory reads for notifications - #10

Merged
oleavr merged 1 commit into
mainfrom
fix-binary-replies
Nov 12, 2026
Merged

oleavr merged 1 commit into
mainfrom
fix-binary-replies

Conversation

@mrmacete

Copy link
Copy Markdown
Member

Read memory with an ordered predicate, so an x reply whose first byte looks like a stop, exit or console output notification still reaches the read instead of timing out. A reply of the requested size is always taken, and so is anything else unless it is shaped like a notification, so errors and short reads are still reported as before, while a stray stop reply can't be mistaken for memory contents.

Depends on query_with_ordered_predicate() in Efni.

Read memory with an ordered predicate, so an `x` reply whose first byte
looks like a stop, exit or console output notification still reaches
the read instead of timing out. A reply of the requested size is always
taken, and so is anything else unless it is shaped like a notification,
so errors and short reads are still reported as before, while a stray
stop reply can't be mistaken for memory contents.

Depends on `query_with_ordered_predicate()` in Efni.
@mrmacete
mrmacete requested a review from oleavr November 12, 2026 16:45
@oleavr
oleavr merged commit d945c55 into main Nov 12, 2026
1 of 7 checks passed
@oleavr

oleavr commented Nov 12, 2026

Copy link
Copy Markdown
Member

Thanks! 🙌🏻

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