diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 453677e599..e8e01288d9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2019-01-24 Pedro Alves + + * common/forward-scope-exit.h + (forward_scope_exit::forward_scope_exit): Pass arguments to + m_bind_function directly, instead of creating a std::bind and + copying that. + 2019-01-24 Alan Hayward * aarch64-tdep.c (aapcs_is_vfp_call_or_return_candidate_1): Check diff --git a/gdb/common/forward-scope-exit.h b/gdb/common/forward-scope-exit.h index 8d639151a4..bffc6e683b 100644 --- a/gdb/common/forward-scope-exit.h +++ b/gdb/common/forward-scope-exit.h @@ -95,7 +95,7 @@ class forward_scope_exit public: explicit forward_scope_exit (Args ...args) - : m_bind_function (std::bind (function, args...)) + : m_bind_function (function, args...) { /* Nothing. */ }