public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Changes to show architecture/endian message
@ 2020-07-08  8:54 Andrew Burgess
  2020-07-08  8:54 ` [PATCH 1/2] gdb: Improve formatting of 'show architecture' messages Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 12+ messages in thread
From: Andrew Burgess @ 2020-07-08  8:54 UTC (permalink / raw)
  To: gdb-patches

I was recently debugging some issues around architecture selection so
had cause to use the 'show architecture' command.

The output from this command seemed ... not ideal to me, for example:

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

I don't like the use of 'assumed to be', this (to me) seems to imply
that GDB is making some assumptions on the users behalf.  Even if we
interpret this to mean, GDB is assuming because the user told it, I
don't know why we don't just say:

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

Just say what you mean, the architecture was set to this value.

So, I made this and some other clean ups to the 'show architecture'
output.

Then while I was testing this I noticed that 'show endian' is
basically the same, so I changed that in a similar way.

Does the new output seem like an improvement to anyone else?  Or does
anyone else prefer the old output?

Thanks,
Andrew


---

Andrew Burgess (2):
  gdb: Improve formatting of 'show architecture' messages
  gdb: Improve formatting of 'show endian' messages

 gdb/ChangeLog                                 |  4 +++
 gdb/arch-utils.c                              | 14 ++++----
 gdb/testsuite/ChangeLog                       |  8 +++++
 gdb/testsuite/gdb.arch/amd64-osabi.exp        |  2 +-
 .../gdb.base/all-architectures.exp.tcl        |  6 ++--
 gdb/testsuite/gdb.base/attach-pie-noexec.exp  |  4 +--
 gdb/testsuite/gdb.base/catch-syscall.exp      |  4 +--
 gdb/testsuite/gdb.base/endian.exp             | 34 +++++++++----------
 gdb/testsuite/gdb.xml/tdesc-arch.exp          |  6 ++--
 9 files changed, 47 insertions(+), 35 deletions(-)

-- 
2.25.4


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2020-07-17 15:52 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-08  8:54 [PATCH 0/2] Changes to show architecture/endian message Andrew Burgess
2020-07-08  8:54 ` [PATCH 1/2] gdb: Improve formatting of 'show architecture' messages Andrew Burgess
2020-07-08 10:06   ` Gary Benson
2020-07-15  2:06     ` Simon Marchi
2020-07-15  9:36       ` Andrew Burgess
2020-07-17 15:52         ` Gary Benson
2020-07-08  8:54 ` [PATCH 2/2] gdb: Improve formatting of 'show endian' messages Andrew Burgess
2020-07-08 10:06   ` Gary Benson
2020-07-13 18:24 ` [PATCH 0/2] Changes to show architecture/endian message Tom Tromey
2020-07-14 12:27 ` [PUSHED " Andrew Burgess
2020-07-14 12:27   ` [PUSHED 1/2] gdb: Improve formatting of 'show architecture' messages Andrew Burgess
2020-07-14 12:27   ` [PUSHED 2/2] gdb: Improve formatting of 'show endian' messages Andrew Burgess

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).