Howdy OguzKerem,
My first thought is to ask you what "version" of the ESP-IDF are you using?
The ESP-IDF is the SDK (development kit) for building ESP32 applications. It is available for download from Github here ...
https://github.com/espressif/esp-idf
Espressif provides "releases" every period and these are "named" such as 1.0, 2.0 RC1 etc etc
However, beyond the releases, you can also download the current "master" which is the "best so far" of the ESP-IDF. That is what I use when working with the ESP32. The core-dump functions were added in the last 2-6 weeks (sorry, can't remember the date). What that means is that if you are using an earlier release or a download of ESP-IDF prior to that, you won't find the "new" core dump functions.
Let me know if this helps.
Neil