38 return (dcache != NULL);
172Set cache use for stack access."), _(
"\
173Show cache use for stack access."), _(
"\
174When on, use the target memory cache for all stack access, regardless of any\n\
175configured memory regions. This improves remote performance significantly.\n\
176By default, caching for stack access is on."),
183Set cache use for code segment access."), _(
"\
184Show cache use for code segment access."), _(
"\
185When on, use the target memory cache for all code segment accesses,\n\
186regardless of any configured memory regions. This improves remote\n\
187performance significantly. By default, caching for code segment\n\
195Force gdb to flush its target memory data cache.\n\
197The dcache caches all target memory accesses where possible, this\n\
198includes the stack-cache and the code-cache."),
void set(unsigned key, void *datum)
struct cmd_list_element * showlist
struct cmd_list_element * setlist
struct cmd_list_element * maintenanceflushlist
struct cmd_list_element * add_cmd(const char *name, enum command_class theclass, const char *doc, struct cmd_list_element **list)
set_show_commands add_setshow_boolean_cmd(const char *name, enum command_class theclass, bool *var, const char *set_doc, const char *show_doc, const char *help_doc, cmd_func_ftype *set_func, show_value_ftype *show_func, struct cmd_list_element **set_list, struct cmd_list_element **show_list)
DCACHE * dcache_init(void)
void dcache_invalidate(DCACHE *dcache)
struct dcache_struct DCACHE
struct program_space * current_program_space
struct address_space * aspace
static void maint_flush_dcache_command(const char *command, int from_tty)
static const registry< address_space >::key< DCACHE, dcache_deleter > target_dcache_aspace_key
void _initialize_target_dcache()
int target_dcache_init_p(void)
static void set_code_cache(const char *args, int from_tty, struct cmd_list_element *c)
void target_dcache_invalidate(void)
DCACHE * target_dcache_get(void)
static void show_code_cache(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
DCACHE * target_dcache_get_or_init(void)
int stack_cache_enabled_p(void)
int code_cache_enabled_p(void)
static void show_stack_cache(struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value)
static int code_cache_enabled
static bool code_cache_enabled_1
static bool stack_cache_enabled_1
static int stack_cache_enabled
static void set_stack_cache(const char *args, int from_tty, struct cmd_list_element *c)
void gdb_printf(struct ui_file *stream, const char *format,...)