gdb: Improve formatting of 'show endian' messages
authorAndrew Burgess <andrew.burgess@embecosm.com>
Fri, 3 Jul 2020 10:22:03 +0000 (11:22 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 14 Jul 2020 12:21:42 +0000 (13:21 +0100)
commitf63dcaf808b8e253e197446aeb318e49eddfd260
treed74ba59cae98895884701b092671e8faf8bd97f3
parentccb9eba6a254f8d5e593972a73504c94a009c729
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!
gdb/arch-utils.c
gdb/testsuite/gdb.base/all-architectures.exp.tcl
gdb/testsuite/gdb.base/endian.exp
This page took 0.024834 seconds and 4 git commands to generate.