diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 16:51:51 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2015-06-12 16:51:51 -0400 |
commit | 3374165f51fa3cc3ce1b1bf8c72293464da9d511 (patch) | |
tree | b5a791fa52f1eea0685a16214a30c62d84c10cf1 /gdb/gdbarch.sh | |
parent | 99a2c56121247207d4846fe7e28b5e7e18e0bfa0 (diff) |
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 a3c903e745..6c5d684b4d 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 } |