Index: apps/debug_menu.c =================================================================== --- apps/debug_menu.c (revision 31026) +++ apps/debug_menu.c (working copy) @@ -2016,7 +2016,20 @@ } #endif +extern char cachetrashed[2048]; +static bool dump_cachetrash(void) +{ + int fd = open("/cachetrash.dump", O_WRONLY | O_TRUNC | O_CREAT); + if (fd >= 0) + { + write(fd, (void *)UNCACHED_ADDR(&cachetrashed[0]), 2048); + close(fd); + } + + return false; +} + /****** The menu *********/ struct the_menu_item { unsigned char *desc; /* string or ID */ @@ -2121,6 +2134,7 @@ && !defined(IPOD_MINI) && !defined(SIMULATOR)) {"Debug scrollwheel", dbg_scrollwheel }, #endif + {"Dump cache trash", dump_cachetrash }, }; static int menu_action_callback(int btn, struct gui_synclist *lists) {