@@ -805,10 +805,10 @@ bool abi_new_print = false;
805
805
#define DEBUG_ABI_CPP_PRINTF ets_uart_printf
806
806
807
807
// _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) {
809
809
if (abi_new_print) {
810
810
uint32_t saved_ps = xt_rsil (DEFAULT_CRITICAL_SECTION_INTLEVEL);
811
- DEBUG_HEAP_PRINTF (" \n Trace %s : " , op );
811
+ DEBUG_HEAP_PRINTF (" \n Trace: " );
812
812
if (withinISR (saved_ps)) {
813
813
DEBUG_HEAP_PRINTF (" FN(%p)" , function_name);
814
814
} else {
@@ -821,7 +821,7 @@ extern "C" void _dbg_abi_print_pstr(const char* op, const char *function_name) {
821
821
}
822
822
}
823
823
// #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 )
825
825
826
826
#else
827
827
#define DEBUG_DELETE_OP_PRINT_FN (...) do { } while (false )
@@ -972,57 +972,58 @@ void operator delete[] (void *ptr, const std::nothrow_t&) noexcept
972
972
}
973
973
974
974
// 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
976
976
{
977
977
DEBUG_DELETE_OP_PRINT_FN ();
978
978
DEBUG_ABI_CPP_PRINTF (" , ptr(%p), size(%u), caller(%p)\n " , ptr, size, __builtin_return_address (0 ));
979
979
980
980
_heap_delete (ptr, __builtin_return_address (0 ));
981
981
}
982
982
983
- #if defined(__cpp_exceptions)
984
983
#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
987
987
{
988
988
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 ));
990
990
991
991
_heap_delete (ptr, __builtin_return_address (0 ));
992
992
}
993
993
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
996
996
{
997
997
DEBUG_DELETE_OP_PRINT_FN ();
998
998
DEBUG_ABI_CPP_PRINTF (" , ptr(%p), alignment(%u), std::nothrow_t, caller(%p)\n " , ptr, std::size_t (alignment), __builtin_return_address (0 ));
999
999
1000
1000
_heap_delete (ptr, __builtin_return_address (0 ));
1001
1001
}
1002
+ // /////////////////////////////////////////////////////////////////////////////
1002
1003
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
1005
1006
{
1006
1007
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 ));
1008
1009
1009
1010
_heap_delete (ptr, __builtin_return_address (0 ));
1010
1011
}
1011
1012
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
1014
1015
{
1015
1016
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 ));
1017
1018
1018
1019
_heap_delete (ptr, __builtin_return_address (0 ));
1019
1020
}
1020
1021
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
1023
1024
{
1024
1025
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 ));
1026
1027
1027
1028
_heap_delete (ptr, __builtin_return_address (0 ));
1028
1029
}
@@ -1035,7 +1036,6 @@ void operator delete[] (void *ptr, [[maybe_unused]]std::size_t size, [[maybe_unu
1035
1036
1036
1037
_heap_delete (ptr, __builtin_return_address (0 ));
1037
1038
}
1038
- #endif // #if defined(UMM_ENABLE_MEMALIGN)
1039
- #endif // #if defined(__cpp_exceptions)
1040
1039
1041
- #endif
1040
+ #endif // #if defined(UMM_ENABLE_MEMALIGN)
1041
+ #endif // #if defined(ENABLE_THICK_DEBUG_WRAPPERS)
0 commit comments