From 68c765e263432b1aa5f5a54edc358eba302be4ca Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Thu, 31 Oct 2013 16:50:15 +0800 Subject: Move target-dcache out of target.c This patch moves target_dcache related code out of target.c. gdb: 2013-11-20 Yao Qi * Makefile.in (SFILES):Add target-dcache.c. (HFILES_NO_SRCDIR): Add target-dcache.h. (COMMON_OBS): Add target-dcache.o. * dcache.c: Remove inclusion to "target.h". Include "target-dcache.h". * memattr.c: Include "target-dcache.h". * top.c: Likewise. * tracepoint.c: Likewise. * target.c: (stack_cache_enabled_p_1): Move to target-dcache.c. (stack_cache_enabled_p): Likewise. (set_stack_cache_enabled_p): Likewise. (show_stack_cache_enabled_p): Likewise. (target_dcache, target_dcache_init_p): Likewise. (target_dcache_invalidate): Likewise. (target_dcache_get, target_dcache_get_or_init): Likewise. (memory_xfer_partial_1): Call function stack_cache_enabled. (initialize_target): Move code to target-dcache.c. * target.h (target_dcache_invalidate): Move to target-dcache.h. (target_dcache_get): Likewise. * target-dcache.c: New. * target-dcache.h: New. --- gdb/tracepoint.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gdb/tracepoint.c') diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index c5bc76d..f30282b 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -26,6 +26,7 @@ #include "gdbcmd.h" #include "value.h" #include "target.h" +#include "target-dcache.h" #include "language.h" #include #include "inferior.h" -- cgit v1.1