Skip to content

Backport small changes from Undo AI Gen 2#106

Merged
barisione merged 4 commits intomasterfrom
small-changes-from-gen2
Feb 25, 2026
Merged

Backport small changes from Undo AI Gen 2#106
barisione merged 4 commits intomasterfrom
small-changes-from-gen2

Conversation

@barisione
Copy link
Collaborator

I fixed some problems in our internal repository, which I think are worth backporting.

`func.type.target` returns a `gdb.Type` object, not a type code
integer.
When searching for the `return` statement, if we hit the function start
breakpoint again it means the function body is a single line; break out
of the loop instead of asserting.
If switching to the sending process fails, restore the debugger to its
original position so the failed tool call does not leave the session in
an unexpected state.
Previously, `reverse_finish` only restored the selected frame on
failure. Just reverting the frame should work considering what
`reverse_finish`, but restoring the full bookmarked time is safer,
consistent with other tools and restores the frame anyway.
Copy link
Contributor

@mark-undoio mark-undoio left a comment

Choose a reason for hiding this comment

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

All looks good - thanks!

@barisione barisione merged commit b46fa5e into master Feb 25, 2026
2 checks passed
@barisione barisione deleted the small-changes-from-gen2 branch February 25, 2026 21:36
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