From 792f510d0d4382734b7c3a19cf0a4d0c69ed0586 Mon Sep 17 00:00:00 2001 From: Alexey Gerenkov Date: Tue, 21 Sep 2021 23:35:53 +0300 Subject: [PATCH] gcov: Do not use shrunk ROM's fake stdout and stderr FILE struct --- components/app_trace/gcov/gcov_rtio.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/components/app_trace/gcov/gcov_rtio.c b/components/app_trace/gcov/gcov_rtio.c index bd470c9a4f..70c30cf8e6 100644 --- a/components/app_trace/gcov/gcov_rtio.c +++ b/components/app_trace/gcov/gcov_rtio.c @@ -52,18 +52,11 @@ void gcov_dump_task(void *pvParameter) } ESP_EARLY_LOGV(TAG, "Config apptrace down buf"); esp_apptrace_down_buffer_config(down_buf, ESP_GCOV_DOWN_BUF_SIZE); - /* we are directing the std outputs to the fake ones in order to reduce stack usage */ - FILE *old_stderr = stderr; - FILE *old_stdout = stdout; - stderr = (FILE *) &__sf_fake_stderr; - stdout = (FILE *) &__sf_fake_stdout; ESP_EARLY_LOGV(TAG, "Dump data..."); __gcov_dump(); // reset dump status to allow incremental data accumulation __gcov_reset(); free(down_buf); - stderr = old_stderr; - stdout = old_stdout; ESP_EARLY_LOGV(TAG, "Finish file transfer session"); dump_result = esp_apptrace_fstop(ESP_APPTRACE_DEST_TRAX); if (dump_result != ESP_OK) {