aboutsummaryrefslogtreecommitdiff
path: root/gdb/regcache.h
diff options
context:
space:
mode:
authorAlan Hayward <alan.hayward@arm.com>2017-03-24 16:53:05 +0000
committerAlan Hayward <alan.hayward@arm.com>2017-03-24 16:53:05 +0000
commited771251e16c8c66cbdd03738135e76caef6937e (patch)
tree90da838f03344ada7e41de4d09815cf999438b7f /gdb/regcache.h
parent568c1b9f503649d19ed1d17e6970f212e6b6317d (diff)
Remove MAX_REGISTER_SIZE from target.c
gdb/ * regcache.c (regcache_debug_print_register): New function. * regcache.h (regcache_debug_print_register): New declaration. * target.c (debug_print_register): Remove. (target_fetch_registers): Call regcache_debug_print_register. (target_store_registers): Likewise.
Diffstat (limited to 'gdb/regcache.h')
-rw-r--r--gdb/regcache.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/regcache.h b/gdb/regcache.h
index d0107cd76e..1d60fa7616 100644
--- a/gdb/regcache.h
+++ b/gdb/regcache.h
@@ -236,4 +236,10 @@ extern void regcache_cpy (struct regcache *dest, struct regcache *src);
extern void registers_changed (void);
extern void registers_changed_ptid (ptid_t);
+/* Dump the contents of a register from the register cache to the target
+ debug. */
+extern void regcache_debug_print_register (const char *func,
+ struct regcache *regcache,
+ int regno);
+
#endif /* REGCACHE_H */