Use enum bfd_endian in gdbarch.sh
This patch changes the return type of gdbarch_byte_order and gdbarch_byte_order_for_code, from 'int' to 'enum bfd_endian'. gdb: 2014-01-07 Yao Qi <yao@codesourcery.com> * gdbarch.sh (byte_order, byte_order_for_code): Change type to 'enum bfd_endian'. (struct gdbarch_info) <byte_order>: Change type to 'enum bfd_endian'. <byte_order_for_code>: Likewise. * gdbarch.c, gdbarch.h: Regenerated.
This commit is contained in:
parent
8318830739
commit
94123b4f91
4 changed files with 21 additions and 12 deletions
|
@ -1,3 +1,12 @@
|
|||
2014-01-07 Yao Qi <yao@codesourcery.com>
|
||||
|
||||
* gdbarch.sh (byte_order, byte_order_for_code): Change type to
|
||||
'enum bfd_endian'.
|
||||
(struct gdbarch_info) <byte_order>: Change type to
|
||||
'enum bfd_endian'.
|
||||
<byte_order_for_code>: Likewise.
|
||||
* gdbarch.c, gdbarch.h: Regenerated.
|
||||
|
||||
2014-01-06 Sasha Smundak <asmundak@google.com>
|
||||
|
||||
* jit.c: (jit_reader_load_command): Fix JIT reader path creation.
|
||||
|
|
|
@ -128,8 +128,8 @@ struct gdbarch
|
|||
|
||||
/* basic architectural information. */
|
||||
const struct bfd_arch_info * bfd_arch_info;
|
||||
int byte_order;
|
||||
int byte_order_for_code;
|
||||
enum bfd_endian byte_order;
|
||||
enum bfd_endian byte_order_for_code;
|
||||
enum gdb_osabi osabi;
|
||||
const struct target_desc * target_desc;
|
||||
|
||||
|
@ -1473,7 +1473,7 @@ gdbarch_bfd_arch_info (struct gdbarch *gdbarch)
|
|||
return gdbarch->bfd_arch_info;
|
||||
}
|
||||
|
||||
int
|
||||
enum bfd_endian
|
||||
gdbarch_byte_order (struct gdbarch *gdbarch)
|
||||
{
|
||||
gdb_assert (gdbarch != NULL);
|
||||
|
@ -1482,7 +1482,7 @@ gdbarch_byte_order (struct gdbarch *gdbarch)
|
|||
return gdbarch->byte_order;
|
||||
}
|
||||
|
||||
int
|
||||
enum bfd_endian
|
||||
gdbarch_byte_order_for_code (struct gdbarch *gdbarch)
|
||||
{
|
||||
gdb_assert (gdbarch != NULL);
|
||||
|
|
|
@ -91,10 +91,10 @@ typedef int (iterate_over_objfiles_in_search_order_cb_ftype)
|
|||
extern const struct bfd_arch_info * gdbarch_bfd_arch_info (struct gdbarch *gdbarch);
|
||||
/* set_gdbarch_bfd_arch_info() - not applicable - pre-initialized. */
|
||||
|
||||
extern int gdbarch_byte_order (struct gdbarch *gdbarch);
|
||||
extern enum bfd_endian gdbarch_byte_order (struct gdbarch *gdbarch);
|
||||
/* set_gdbarch_byte_order() - not applicable - pre-initialized. */
|
||||
|
||||
extern int gdbarch_byte_order_for_code (struct gdbarch *gdbarch);
|
||||
extern enum bfd_endian gdbarch_byte_order_for_code (struct gdbarch *gdbarch);
|
||||
/* set_gdbarch_byte_order_for_code() - not applicable - pre-initialized. */
|
||||
|
||||
extern enum gdb_osabi gdbarch_osabi (struct gdbarch *gdbarch);
|
||||
|
@ -1342,9 +1342,9 @@ struct gdbarch_info
|
|||
const struct bfd_arch_info *bfd_arch_info;
|
||||
|
||||
/* Use default: BFD_ENDIAN_UNKNOWN (NB: is not ZERO). */
|
||||
int byte_order;
|
||||
enum bfd_endian byte_order;
|
||||
|
||||
int byte_order_for_code;
|
||||
enum bfd_endian byte_order_for_code;
|
||||
|
||||
/* Use default: NULL (ZERO). */
|
||||
bfd *abfd;
|
||||
|
|
|
@ -340,8 +340,8 @@ function_list ()
|
|||
cat <<EOF
|
||||
i:const struct bfd_arch_info *:bfd_arch_info:::&bfd_default_arch_struct::::gdbarch_bfd_arch_info (gdbarch)->printable_name
|
||||
#
|
||||
i:int:byte_order:::BFD_ENDIAN_BIG
|
||||
i:int:byte_order_for_code:::BFD_ENDIAN_BIG
|
||||
i:enum bfd_endian:byte_order:::BFD_ENDIAN_BIG
|
||||
i:enum bfd_endian:byte_order_for_code:::BFD_ENDIAN_BIG
|
||||
#
|
||||
i:enum gdb_osabi:osabi:::GDB_OSABI_UNKNOWN
|
||||
#
|
||||
|
@ -1279,9 +1279,9 @@ struct gdbarch_info
|
|||
const struct bfd_arch_info *bfd_arch_info;
|
||||
|
||||
/* Use default: BFD_ENDIAN_UNKNOWN (NB: is not ZERO). */
|
||||
int byte_order;
|
||||
enum bfd_endian byte_order;
|
||||
|
||||
int byte_order_for_code;
|
||||
enum bfd_endian byte_order_for_code;
|
||||
|
||||
/* Use default: NULL (ZERO). */
|
||||
bfd *abfd;
|
||||
|
|
Loading…
Reference in a new issue