[Reproducers] Implement log_append for function pointers.

Changing the type in the DUMMY macro to void* doesn't actually fix the
build error, because the argument type is deducted from the template (as
opposed to when serializing through the instrumentation framework, where
this would matter). Instead I've added a proper instance of log_append
that takes function pointers and logs their address.

llvm-svn: 355863
This commit is contained in:
Jonas Devlieghere
2019-03-11 20:31:21 +00:00
parent 885b790f89
commit 7bc8356435
4 changed files with 18 additions and 10 deletions

View File

@@ -180,7 +180,7 @@ void SBExpressionOptions::SetLanguage(lldb::LanguageType language) {
void SBExpressionOptions::SetCancelCallback(
lldb::ExpressionCancelCallback callback, void *baton) {
LLDB_RECORD_DUMMY(void, SBExpressionOptions, SetCancelCallback,
(void *, void *), callback, baton);
(lldb::ExpressionCancelCallback, void *), callback, baton);
m_opaque_up->SetCancelCallback(callback, baton);
}