]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/testsuite/ChangeLog
gdb: Improve formatting of 'show architecture' messages
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 25 Jun 2020 16:59:34 +0000 (17:59 +0100)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 14 Jul 2020 12:21:42 +0000 (13:21 +0100)
commitccb9eba6a254f8d5e593972a73504c94a009c729
tree98f4f917cf26633d0a7439c0216422c21a667d3f
parent570b0ed6d5368f4653bf019c60fa277ed7e983bf
gdb: Improve formatting of 'show architecture' messages

This commit changes the output of 'show architecture'.  Here is a
session before this commit:

  (gdb) show architecture
  The target architecture is set automatically (currently i386)
  (gdb) set architecture mips
  The target architecture is assumed to be mips
  (gdb) show architecture
  The target architecture is assumed to be mips
  (gdb)

After this commit the session now looks like this:

  (gdb) show architecture
  The target architecture is set to "auto" (currently "i386").
  (gdb) set architecture mips
  The target architecture is set to "mips".
  (gdb) show architecture
  The target architecture is set to "mips".
  (gdb)

The changes are:

  1. The value is now enclosed in quotes,
  2. Each line ends with '.', and
  3. After setting the architecture GDB is now a little more
  assertive; 'architecture is set to' not 'is assumed to be', the user
  did just tell us after all!

gdb/ChangeLog:

* arch-utils.c (show_architecture): Update formatting of messages.

gdb/testsuite/ChangeLog:

* gdb.arch/amd64-osabi.exp: Update.
* gdb.arch/arm-disassembler-options.exp: Update.
* gdb.arch/powerpc-disassembler-options.exp: Update.
* gdb.arch/ppc64-symtab-cordic.exp: Update.
* gdb.arch/s390-disassembler-options.exp: Update.
* gdb.base/all-architectures.exp.tcl: Update.
* gdb.base/attach-pie-noexec.exp: Update.
* gdb.base/catch-syscall.exp: Update.
* gdb.xml/tdesc-arch.exp: Update.
12 files changed:
gdb/ChangeLog
gdb/arch-utils.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/amd64-osabi.exp
gdb/testsuite/gdb.arch/arm-disassembler-options.exp
gdb/testsuite/gdb.arch/powerpc-disassembler-options.exp
gdb/testsuite/gdb.arch/ppc64-symtab-cordic.exp
gdb/testsuite/gdb.arch/s390-disassembler-options.exp
gdb/testsuite/gdb.base/all-architectures.exp.tcl
gdb/testsuite/gdb.base/attach-pie-noexec.exp
gdb/testsuite/gdb.base/catch-syscall.exp
gdb/testsuite/gdb.xml/tdesc-arch.exp