aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.h
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-10-31 16:50:15 +0800
committerYao Qi <yao@codesourcery.com>2013-11-20 11:40:51 +0800
commit68c765e263432b1aa5f5a54edc358eba302be4ca (patch)
tree132882f55aaaad1d6b6b0373fa7b3862010cafc0 /gdb/target.h
parentf2de978509eb51f85410eab04696725f0bccf9c3 (diff)
downloadgdb-68c765e263432b1aa5f5a54edc358eba302be4ca.zip
gdb-68c765e263432b1aa5f5a54edc358eba302be4ca.tar.gz
gdb-68c765e263432b1aa5f5a54edc358eba302be4ca.tar.bz2
Move target-dcache out of target.c
This patch moves target_dcache related code out of target.c. gdb: 2013-11-20 Yao Qi <yao@codesourcery.com> * 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.
Diffstat (limited to 'gdb/target.h')
-rw-r--r--gdb/target.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/target.h b/gdb/target.h
index 87366e6..646907a 100644
--- a/gdb/target.h
+++ b/gdb/target.h
@@ -1043,11 +1043,6 @@ int target_supports_disable_randomization (void);
#define target_can_run_breakpoint_commands() \
(*current_target.to_can_run_breakpoint_commands) ()
-/* Invalidate all target dcaches. */
-extern void target_dcache_invalidate (void);
-
-extern struct dcache_struct *target_dcache_get (void);
-
extern int target_read_string (CORE_ADDR, char **, int, int *);
extern int target_read_memory (CORE_ADDR memaddr, gdb_byte *myaddr,