diff options
author | 2015-06-12 16:51:51 -0400 | |
---|---|---|
committer | 2015-06-12 16:51:51 -0400 | |
commit | 3374165f51fa3cc3ce1b1bf8c72293464da9d511 (patch) | |
tree | b5a791fa52f1eea0685a16214a30c62d84c10cf1 /gdb/gdbarch.sh | |
parent | Remove unused MTMSRD_L macro and re-add accidentally deleted comment. (diff) | |
download | binutils-gdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.tar.gz binutils-gdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.tar.bz2 binutils-gdb-3374165f51fa3cc3ce1b1bf8c72293464da9d511.zip |
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/gdbarch.sh')
-rwxr-xr-x | gdb/gdbarch.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh index a3c903e7458..6c5d684b4d3 100755 --- a/gdb/gdbarch.sh +++ b/gdb/gdbarch.sh @@ -1113,6 +1113,12 @@ m:char *:gcc_target_options:void:::default_gcc_target_options::0 # returns the BFD architecture name, which is correct in nearly every # case. m:const char *:gnu_triplet_regexp:void:::default_gnu_triplet_regexp::0 + +# Return the size in 8-bit bytes of an addressable memory unit on this +# architecture. This corresponds to the number of 8-bit bytes associated to +# each address in memory. +m:int:addressable_memory_unit_size:void:::default_addressable_memory_unit_size::0 + EOF } |