-
Notifications
You must be signed in to change notification settings - Fork 561
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
Do not reference PTRACE_{G,S}ETFPXREGS when undefined #3382
Conversation
Certainly our ARM build on Travis works fine with the ptrace defines as they are, so this seems more like a toolchain version issue. Please specify which toolchain needs this change. |
I am not sure about how to do that. I found the problem on Ubuntu 18.04 ( |
I get the impression that If you want to build with GCC 7, replace |
This patch looks good to me, though the commit message should be improved. There's the obvious alternative of replacing the architecture test with a direct test for the macro in question:
I tried grepping the Linux kernel source and found |
@egrimley I was trying to find some "solid" proof that It is very surprising for me that the Travis builds and tests are passing, because it seems that those variables have never existed on ARM. |
I changed it.
I implemented this now. If both macros exist, both are added. Otherwise, none. |
… mapping only if they exist
@derekbruening, which should the commit/title if there is no specific issue number to fix by this PR? |
Just a short description. "Do not reference PTRACE_{G,S}ETFPXREGS when undefined" or some such.
Please don't force-push: it deletes past review comments and makes it impossible for the reviewer to see what changed since the last review. The squash-and-merge cleans up the final commit. (See https://github.com/DynamoRIO/dynamorio/wiki/Code-Reviews#submitting-a-change-as-a-non-project-member, https://github.com/DynamoRIO/dynamorio/wiki/Contributing) |
Ok. Sorry for the inconvenience. Just to make it clear:
Is it correct? |
The PR title would be the default commit title (== first line), yes, but the default final commit body (== lines beyond the first line) comes from the commit message bodies concatenated together. Whoever does the squash merges those messages together in some fashion, usually by discarding later bug fix or tweak commit messages.
Right, in general do not change the history of a shared git branch: rebase/history rewrite is for private branches. I wish Github would have first-class support for the final commit message and title being some separate field that would take review comments and be editable, but given that support not being there, one method is to make the next commit's message be the new full message for the final squash. The squasher would then take that one and discard the earlier one. |
run arm tests |
Looks like #2898 but sigsuspend has never been flaky on x86 before. |
Issue: #3381
Issue: #3399
Signed-off-by: Unai Martinez-Corral [email protected]
Building on
armv7l
orarmv8l
fails with:This PR avoids using
PTRACE_GETFPXREGS
andPTRACE_SETFPXREGS
onARM
, as it is currently done onAARCH64
.