public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Additional maintenance command for dumping target descriptions
@ 2020-06-11 10:41 Andrew Burgess
  2020-06-11 10:41 ` [PATCH 1/2] gdb: Allow target description to be dumped even when it is remote Andrew Burgess
                   ` (3 more replies)
  0 siblings, 4 replies; 10+ messages in thread
From: Andrew Burgess @ 2020-06-11 10:41 UTC (permalink / raw)
  To: gdb-patches

After some fun and games debugging some target description issues I
finally got fed up enough to implement something that I've wanted for
a while.  A mechanism to ask GDB what target description was sent from
the target.

Patch #1 was a quick hack to `maint print c-tdesc', which was easy,
and did give me the information I needed, but the output format isn't
great for what I wanted, so

Patch #2 allows GDB developers to see in XML form the description that
was sent from the target.

Feedback welcome.

Thanks,
Andrew


---

Andrew Burgess (2):
  gdb: Allow target description to be dumped even when it is remote
  gdb: New maintenance command to print XML target description

 gdb/ChangeLog                               |  17 +++
 gdb/NEWS                                    |   6 +
 gdb/doc/ChangeLog                           |   5 +
 gdb/doc/gdb.texinfo                         |   9 ++
 gdb/target-descriptions.c                   | 102 +++++++++++++++-
 gdb/testsuite/ChangeLog                     |   6 +
 gdb/testsuite/gdb.xml/maint-xml-dump-01.xml |  10 ++
 gdb/testsuite/gdb.xml/maint-xml-dump-02.xml |  27 +++++
 gdb/testsuite/gdb.xml/maint-xml-dump.exp    | 124 ++++++++++++++++++++
 gdbsupport/ChangeLog                        |  13 ++
 gdbsupport/tdesc.cc                         |  99 +++++++++++-----
 gdbsupport/tdesc.h                          |  15 +++
 12 files changed, 399 insertions(+), 34 deletions(-)
 create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump-01.xml
 create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump-02.xml
 create mode 100644 gdb/testsuite/gdb.xml/maint-xml-dump.exp

-- 
2.25.4


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

end of thread, other threads:[~2020-06-16 20:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-11 10:41 [PATCH 0/2] Additional maintenance command for dumping target descriptions Andrew Burgess
2020-06-11 10:41 ` [PATCH 1/2] gdb: Allow target description to be dumped even when it is remote Andrew Burgess
2020-06-11 11:33   ` Pedro Alves
2020-06-11 14:05     ` Andrew Burgess
2020-06-11 14:24       ` Pedro Alves
2020-06-11 10:41 ` [PATCH 2/2] gdb: New maintenance command to print XML target description Andrew Burgess
2020-06-11 13:10   ` Pedro Alves
2020-06-11 13:27   ` Eli Zaretskii
2020-06-11 19:50 ` [PATCH 0/2] Additional maintenance command for dumping target descriptions Christian Biesinger
2020-06-16 20:51 ` 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).