This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Can't connect to simulator that doesn't have bi-endian
- From: Masaki Muranaka <monaka at monami-software dot com>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 13 Feb 2007 09:52:23 +0900
- Subject: Re: [patch] Can't connect to simulator that doesn't have bi-endian
- References: <DE6CF8CC-2269-4372-AFFE-AF4E9F343FDE@monami-software.com> <20070105143438.GA24554@nevyn.them.org> <DFB8313C-9E60-400C-A19B-89017D542055@monami-software.com> <20070208150130.GF6861@nevyn.them.org>
Hello Daniel,
Thanks for your patch. I've tried it.
On 2007/02/09, at 0:01, Daniel Jacobowitz wrote:
+enum bfd_endian
+selected_byte_order (void)
+{
+ if (target_byte_order_user)
+ return TARGET_BYTE_ORDER;
+ else
+ return BFD_ENDIAN_UNKNOWN;
+}
+
I think it should be:
- if (target_byte_order_user)
+ if (target_byte_order_user != BFD_ENDIAN_UNKNOWN)
Others nice to me.
--
Masaki Muranaka
Monami software