forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -1466,6 +1466,14 @@ typedef const char * (gdbarch_gnu_triplet_regexp_ftype) (struct gdbarch *gdbarch
|
||||
extern const char * gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch);
|
||||
extern void set_gdbarch_gnu_triplet_regexp (struct gdbarch *gdbarch, gdbarch_gnu_triplet_regexp_ftype *gnu_triplet_regexp);
|
||||
|
||||
/* 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. */
|
||||
|
||||
typedef int (gdbarch_addressable_memory_unit_size_ftype) (struct gdbarch *gdbarch);
|
||||
extern int gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch);
|
||||
extern void set_gdbarch_addressable_memory_unit_size (struct gdbarch *gdbarch, gdbarch_addressable_memory_unit_size_ftype *addressable_memory_unit_size);
|
||||
|
||||
/* Definition for an unknown syscall, used basically in error-cases. */
|
||||
#define UNKNOWN_SYSCALL (-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user