-
Notifications
You must be signed in to change notification settings - Fork 248
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
Printing backtrace ip for x86_64-fortanix-unknown-sgx #268
base: master
Are you sure you want to change the base?
Printing backtrace ip for x86_64-fortanix-unknown-sgx #268
Conversation
@@ -196,30 +198,32 @@ impl BacktraceFrameFmt<'_, '_, '_> { | |||
// To reduce TCB size in Sgx enclave, we do not want to implement symbol | |||
// resolution functionality. Rather, we can print the offset of the | |||
// address here, which could be later mapped to correct function. | |||
#[cfg(all(feature = "std", target_env = "sgx", target_vendor = "fortanix"))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the removal of this feature
directive will break this building when included into libstd?
write!(self.fmt.fmt, "{:1$}", "", HEX_WIDTH + 3)?; | ||
} | ||
} | ||
|
||
// Next up write out the symbol name, using the alternate formatting for | ||
// more information if we're a full backtrace. Here we also handle | ||
// symbols which don't have a name, | ||
#[cfg(not(all(target_env = "sgx", target_vendor = "fortanix")))] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this use an if
instead of using an attribute?
I need to take a look at https://github.com/nhynes/backtrace-rs/tree/fix-sgx |
@jethrogb Hello! Do you intend to pick up this PR again? Is this even still needed? |
Not sure what happened, this used to work.
cc @VardhanThigle