summaryrefslogtreecommitdiff
path: root/gdb/arch-utils.c
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2020-07-03 11:22:03 +0100
committerAndrew Burgess <andrew.burgess@embecosm.com>2020-07-14 13:21:42 +0100
commitf63dcaf808b8e253e197446aeb318e49eddfd260 (patch)
treed74ba59cae98895884701b092671e8faf8bd97f3 /gdb/arch-utils.c
parentccb9eba6a254f8d5e593972a73504c94a009c729 (diff)
downloadbinutils-gdb-f63dcaf808b8e253e197446aeb318e49eddfd260.tar.gz
gdb: Improve formatting of 'show endian' messages
This commit changes the output of 'show endian'. Here is a session before this commit: (gdb) show endian The target endianness is set automatically (currently little endian) (gdb) set endian big The target is assumed to be big endian (gdb) show endian The target is assumed to be big endian (gdb) After this commit the session now looks like this: (gdb) show endian The target endianness is set automatically (currently little endian). (gdb) set endian big The target is set to big endian. (gdb) show endian The target is set to big endian. (gdb) The changes are: 1. Each line ends with '.', and 2. After setting the endianness GDB is now a little more assertive; 'target is set to' not 'target is assumed to be', the user did just tell us after all!
Diffstat (limited to 'gdb/arch-utils.c')
-rw-r--r--gdb/arch-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/arch-utils.c b/gdb/arch-utils.c
index f89260a32b7..13ba50abe61 100644
--- a/gdb/arch-utils.c
+++ b/gdb/arch-utils.c
@@ -317,17 +317,17 @@ show_endian (struct ui_file *file, int from_tty, struct cmd_list_element *c,
if (target_byte_order_user == BFD_ENDIAN_UNKNOWN)
if (gdbarch_byte_order (get_current_arch ()) == BFD_ENDIAN_BIG)
fprintf_unfiltered (file, _("The target endianness is set automatically "
- "(currently big endian)\n"));
+ "(currently big endian).\n"));
else
fprintf_unfiltered (file, _("The target endianness is set automatically "
- "(currently little endian)\n"));
+ "(currently little endian).\n"));
else
if (target_byte_order_user == BFD_ENDIAN_BIG)
fprintf_unfiltered (file,
- _("The target is assumed to be big endian\n"));
+ _("The target is set to big endian.\n"));
else
fprintf_unfiltered (file,
- _("The target is assumed to be little endian\n"));
+ _("The target is set to little endian.\n"));
}
static void