fix --enable-stacksize-verbose: relocate declarations for HAVE_STACK_SIZE_VERBOSE global variables from wolfssl/test.h to wolfssl/wolfcrypt/logging.h, matching their location in wolfcrypt/src/logging.c.

This commit is contained in:
Daniel Pouzzner
2020-11-19 13:36:45 -06:00
parent b93109cf1c
commit c5e2ccabb1
2 changed files with 8 additions and 6 deletions

View File

@ -2052,12 +2052,6 @@ struct stack_size_debug_context {
* CFLAGS='-g -DHAVE_STACK_SIZE_VERBOSE' ./configure --enable-stacksize [...] * CFLAGS='-g -DHAVE_STACK_SIZE_VERBOSE' ./configure --enable-stacksize [...]
*/ */
extern THREAD_LS_T unsigned char *StackSizeCheck_myStack;
extern THREAD_LS_T size_t StackSizeCheck_stackSize;
extern THREAD_LS_T size_t StackSizeCheck_stackSizeHWM;
extern THREAD_LS_T size_t *StackSizeCheck_stackSizeHWM_ptr;
extern THREAD_LS_T void *StackSizeCheck_stackOffsetPointer;
static void *debug_stack_size_verbose_shim(struct stack_size_debug_context *shim_args) { static void *debug_stack_size_verbose_shim(struct stack_size_debug_context *shim_args) {
StackSizeCheck_myStack = shim_args->myStack; StackSizeCheck_myStack = shim_args->myStack;
StackSizeCheck_stackSize = shim_args->stackSize; StackSizeCheck_stackSize = shim_args->stackSize;

View File

@ -191,6 +191,14 @@ WOLFSSL_API void wolfSSL_Debugging_OFF(void);
#define WOLFSSL_ERROR_MSG(m) #define WOLFSSL_ERROR_MSG(m)
#endif #endif
#ifdef HAVE_STACK_SIZE_VERBOSE
extern WOLFSSL_API THREAD_LS_T unsigned char *StackSizeCheck_myStack;
extern WOLFSSL_API THREAD_LS_T size_t StackSizeCheck_stackSize;
extern WOLFSSL_API THREAD_LS_T size_t StackSizeCheck_stackSizeHWM;
extern WOLFSSL_API THREAD_LS_T size_t *StackSizeCheck_stackSizeHWM_ptr;
extern WOLFSSL_API THREAD_LS_T void *StackSizeCheck_stackOffsetPointer;
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif