@@ -805,10 +805,10 @@ bool abi_new_print = false;
805805#define DEBUG_ABI_CPP_PRINTF ets_uart_printf
806806
807807// _dbg_abi_print_pstr is shared (private) between abi.cpp and heap.cpp
808- extern " C" void _dbg_abi_print_pstr (const char * op, const char *function_name) {
808+ extern " C" void _dbg_abi_print_pstr (const char *function_name) {
809809 if (abi_new_print) {
810810 uint32_t saved_ps = xt_rsil (DEFAULT_CRITICAL_SECTION_INTLEVEL);
811- DEBUG_HEAP_PRINTF (" \n Trace %s : " , op );
811+ DEBUG_HEAP_PRINTF (" \n Trace: " );
812812 if (withinISR (saved_ps)) {
813813 DEBUG_HEAP_PRINTF (" FN(%p)" , function_name);
814814 } else {
@@ -821,7 +821,7 @@ extern "C" void _dbg_abi_print_pstr(const char* op, const char *function_name) {
821821 }
822822}
823823// #define DEBUG_DELETE_OP_PRINT_FN() do { _dbg_abi_print_pstr("delete_op", __PRETTY_FUNCTION__, __builtin_return_address(0)); } while (false)
824- #define DEBUG_DELETE_OP_PRINT_FN () do { _dbg_abi_print_pstr (" delete_op " , __PRETTY_FUNCTION__); } while (false )
824+ #define DEBUG_DELETE_OP_PRINT_FN () do { _dbg_abi_print_pstr (__PRETTY_FUNCTION__); } while (false )
825825
826826#else
827827#define DEBUG_DELETE_OP_PRINT_FN (...) do { } while (false )
@@ -972,57 +972,58 @@ void operator delete[] (void *ptr, const std::nothrow_t&) noexcept
972972}
973973
974974// del_opvs
975- void operator delete[] (void *ptr,[[maybe_unused]]std::size_t size) noexcept
975+ void operator delete[] (void *ptr, [[maybe_unused]]std::size_t size) noexcept
976976{
977977 DEBUG_DELETE_OP_PRINT_FN ();
978978 DEBUG_ABI_CPP_PRINTF (" , ptr(%p), size(%u), caller(%p)\n " , ptr, size, __builtin_return_address (0 ));
979979
980980 _heap_delete (ptr, __builtin_return_address (0 ));
981981}
982982
983- #if defined(__cpp_exceptions)
984983#if defined(UMM_ENABLE_MEMALIGN)
985- // del_opa
986- void operator delete (void * ptr, [[maybe_unused]]std::align_val_t alignment) noexcept
984+
985+ // del_opant
986+ void operator delete (void *ptr, [[maybe_unused]]std::align_val_t alignment, const std::nothrow_t &) noexcept
987987{
988988 DEBUG_DELETE_OP_PRINT_FN ();
989- DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
989+ DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), std::nothrow_t, caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
990990
991991 _heap_delete (ptr, __builtin_return_address (0 ));
992992}
993993
994- // del_opant
995- void operator delete (void *ptr, [[maybe_unused]]std::align_val_t alignment, const std::nothrow_t &) noexcept
994+ // del_opvant
995+ void operator delete[] (void *ptr, [[maybe_unused]]std::align_val_t alignment, const std::nothrow_t &) noexcept
996996{
997997 DEBUG_DELETE_OP_PRINT_FN ();
998998 DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), std::nothrow_t, caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
999999
10001000 _heap_delete (ptr, __builtin_return_address (0 ));
10011001}
1002+ // /////////////////////////////////////////////////////////////////////////////
10021003
1003- // del_opsa
1004- void operator delete (void * ptr, [[maybe_unused]]std::size_t size, [[maybe_unused]]std:: align_val_t alignment) noexcept
1004+ // del_opa
1005+ void operator delete (void * ptr, [[maybe_unused]]std::align_val_t alignment) noexcept
10051006{
10061007 DEBUG_DELETE_OP_PRINT_FN ();
1007- DEBUG_ABI_CPP_PRINTF (" , ptr(%p), size(%u), alignment(%u), caller(%p)\n " , ptr, size , std::size_t (alignment), __builtin_return_address (0 ));
1008+ DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
10081009
10091010 _heap_delete (ptr, __builtin_return_address (0 ));
10101011}
10111012
1012- // del_opva
1013- void operator delete[] (void * ptr, [[maybe_unused]]std::align_val_t alignment) noexcept
1013+ // del_opsa
1014+ void operator delete (void * ptr, [[maybe_unused]]std:: size_t size , [[maybe_unused]]std::align_val_t alignment) noexcept
10141015{
10151016 DEBUG_DELETE_OP_PRINT_FN ();
1016- DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
1017+ DEBUG_ABI_CPP_PRINTF (" , ptr(%p), size(%u), alignment(%u), caller(%p)\n " , ptr, size , std::size_t (alignment), __builtin_return_address (0 ));
10171018
10181019 _heap_delete (ptr, __builtin_return_address (0 ));
10191020}
10201021
1021- // del_opvant
1022- void operator delete[] (void *ptr, [[maybe_unused]]std::align_val_t alignment, const std:: nothrow_t & ) noexcept
1022+ // del_opva
1023+ void operator delete[] (void *ptr, [[maybe_unused]]std::align_val_t alignment) noexcept
10231024{
10241025 DEBUG_DELETE_OP_PRINT_FN ();
1025- DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), std::nothrow_t, caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
1026+ DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
10261027
10271028 _heap_delete (ptr, __builtin_return_address (0 ));
10281029}
@@ -1035,7 +1036,6 @@ void operator delete[] (void *ptr, [[maybe_unused]]std::size_t size, [[maybe_unu
10351036
10361037 _heap_delete (ptr, __builtin_return_address (0 ));
10371038}
1038- #endif // #if defined(UMM_ENABLE_MEMALIGN)
1039- #endif // #if defined(__cpp_exceptions)
10401039
1041- #endif
1040+ #endif // #if defined(UMM_ENABLE_MEMALIGN)
1041+ #endif // #if defined(ENABLE_THICK_DEBUG_WRAPPERS)
0 commit comments