gdbarch: add addressable_memory_unit_size method
authorSimon Marchi <simon.marchi@ericsson.com>
Fri, 12 Jun 2015 20:51:51 +0000 (16:51 -0400)
committerSimon Marchi <simon.marchi@ericsson.com>
Fri, 12 Jun 2015 20:51:51 +0000 (16:51 -0400)
commit3374165f51fa3cc3ce1b1bf8c72293464da9d511
treeb5a791fa52f1eea0685a16214a30c62d84c10cf1
parent99a2c56121247207d4846fe7e28b5e7e18e0bfa0
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.
gdb/ChangeLog
gdb/arch-utils.c
gdb/arch-utils.h
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh