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

proc: fixes concerning call injection on freebsd and rr #3000

Merged
merged 2 commits into from
May 5, 2022

Conversation

aarzilli
Copy link
Member

@aarzilli aarzilli commented May 4, 2022

On FreeBSD it seems we have problems restoring and setting floating
point registers, since at least restoring is necessary for call
injection to function properly fully disable call injection on FreeBSD.

On rr the same problem exists, however due to the fact that we are
acting on a recording and ending a diversion will restore register
values anyway simply disable the floatsum test.

See also: rr-debugger/rr#3208

Updates #3001

@aarzilli aarzilli force-pushed the fbsdregs branch 2 times, most recently from 58b33ec to 9869e2a Compare May 4, 2022 14:40
On FreeBSD it seems we have problems restoring and setting floating
point registers, since at least restoring is necessary for call
injection to function properly fully disable call injection on FreeBSD.

On rr the same problem exists, however due to the fact that we are
acting on a recording and ending a diversion will restore register
values anyway simply disable the floatsum test.

See also: rr-debugger/rr#3208

Updates go-delve#3001
@aarzilli aarzilli changed the title proc: fix function call injection on freebsd and rr [WIP] proc: fixes concerning call injection on freebsd and rr May 4, 2022
Copy link
Member

@derekparker derekparker left a comment

Choose a reason for hiding this comment

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

LGTM

@derekparker derekparker merged commit 51090f0 into go-delve:master May 5, 2022
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