Use enum bfd_endian in gdbarch.sh
authorYao Qi <yao@codesourcery.com>
Thu, 2 Jan 2014 03:02:56 +0000 (11:02 +0800)
committerYao Qi <yao@codesourcery.com>
Tue, 7 Jan 2014 02:28:06 +0000 (10:28 +0800)
commit94123b4f917eb03353fa46a43ea1fd7c37f3fb55
tree2f69debc666e234e6c67f3c68e841a2f661c3ca1
parent831883073995ff46717fa4918340e253f1c1d772
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.
gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh