Skip to content
This repository was archived by the owner on Jun 30, 2025. It is now read-only.

Conversation

@sergiud
Copy link
Contributor

@sergiud sergiud commented Oct 5, 2023

Fixes #953

@cieplik Does this work for you?

@sergiud sergiud added the bug label Oct 5, 2023
@sergiud sergiud added this to the 0.7 milestone Oct 5, 2023
@cieplik
Copy link

cieplik commented Oct 6, 2023

Fixes #953

@cieplik Does this work for you?

@sergiud, thank you for the PR, I'll check it early next week and will let you know.

@cieplik
Copy link

cieplik commented Oct 9, 2023

Fixes #953
@cieplik Does this work for you?

@sergiud, thank you for the PR, I'll check it early next week and will let you know.

@sergiud, that works for me on aarch64 Linux:

-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_gregs_REG_RIP
-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_gregs_REG_RIP - Failed
-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_sc_ip
-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_sc_ip - Failed
-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_pc
-- Performing Test HAVE_PC_FROM_UCONTEXT_uc_mcontext_pc - Success
$ cat config.h | grep PC
/* How to access the PC from a struct ucontext */
#define PC_FROM_UCONTEXT uc_mcontext.pc

Thank you!

@sergiud
Copy link
Contributor Author

sergiud commented Oct 9, 2023

@cieplik Thanks for validating the fix!

@sergiud sergiud merged commit b58718f into master Oct 9, 2023
@sergiud sergiud deleted the cmake-ucontext branch October 9, 2023 19:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GetPC() always returns nullptr

2 participants