aboutsummaryrefslogtreecommitdiff
path: root/gdb/arch-utils.h
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-06-12 16:51:51 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-06-12 16:51:51 -0400
commit3374165f51fa3cc3ce1b1bf8c72293464da9d511 (patch)
treeb5a791fa52f1eea0685a16214a30c62d84c10cf1 /gdb/arch-utils.h
parent99a2c56121247207d4846fe7e28b5e7e18e0bfa0 (diff)
downloadgdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.zip
gdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.tar.gz
gdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.tar.bz2
gdbarch: add addressable_memory_unit_size method
Add a new gdbarch method to get the length of an addressable memory unit for a given architecture. The default implementation returns 1. gdb/ChangeLog: * arch-utils.h (default_addressable_memory_unit_size): New. * arch-utils.c (default_addressable_memory_unit_size): New. * gdbarch.sh (addressable_memory_unit_size): New. * gdbarch.h: Re-generate. * gdbarch.c: Re-generate.
Diffstat (limited to 'gdb/arch-utils.h')
-rw-r--r--gdb/arch-utils.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/arch-utils.h b/gdb/arch-utils.h
index 9cb28e4..27f4787 100644
--- a/gdb/arch-utils.h
+++ b/gdb/arch-utils.h
@@ -203,5 +203,6 @@ extern CORE_ADDR default_infcall_mmap (CORE_ADDR size, unsigned prot);
extern void default_infcall_munmap (CORE_ADDR addr, CORE_ADDR size);
extern char *default_gcc_target_options (struct gdbarch *gdbarch);
extern const char *default_gnu_triplet_regexp (struct gdbarch *gdbarch);
+extern int default_addressable_memory_unit_size (struct gdbarch *gdbarch);
#endif