From: Daniel Jacobowitz Date: Sat, 20 Jan 2007 18:31:29 +0000 (+0000) Subject: * arch-utils.c (show_endian): Correct reversed condition. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7b6b9e83ffd92aba8030e75a05b66fa490ad9624;p=binutils-gdb.git * arch-utils.c (show_endian): Correct reversed condition. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6d4a8fcd5af..c929f4435f9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-01-20 Daniel Jacobowitz + + * arch-utils.c (show_endian): Correct reversed condition. + 2007-01-19 Jan Kratochvil * MAINTAINERS (Write After Approval): Add myself. diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c index bd8abeae4f6..386425014d0 100644 --- a/gdb/arch-utils.c +++ b/gdb/arch-utils.c @@ -322,7 +322,7 @@ static void show_endian (struct ui_file *file, int from_tty, struct cmd_list_element *c, const char *value) { - if (target_byte_order_user != BFD_ENDIAN_UNKNOWN) + if (target_byte_order_user == BFD_ENDIAN_UNKNOWN) if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) fprintf_unfiltered (file, _("The target endianness is set automatically " "(currently big endian)\n"));