feat(gcov): improve gcov file handling using esp_apptrace_feof()

This commit is contained in:
Erhan Kurubas 2023-10-10 16:45:49 +02:00
parent 14a631880c
commit 31b3b1f455

View File

@ -175,8 +175,9 @@ long gcov_rtio_ftell(void *stream)
int gcov_rtio_feof(void *stream)
{
ESP_EARLY_LOGV(TAG, "%s", __FUNCTION__);
return 0; // esp_apptrace_feof(ESP_APPTRACE_DEST_TRAX, stream); // TODO IDF-7920
int ret = esp_apptrace_feof(ESP_APPTRACE_DEST_TRAX, stream);
ESP_EARLY_LOGV(TAG, "%s(%p) = %d", __FUNCTION__, stream, ret);
return ret;
}
void gcov_rtio_setbuf(void *arg1 __attribute__ ((unused)), void *arg2 __attribute__ ((unused)))