Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Andrew STUBBS <andrew.stubbs@st.com>
To: gdb@sourceware.org
Subject: Re: Using XML in GDB?
Date: Thu, 26 Jan 2006 16:24:00 -0000	[thread overview]
Message-ID: <43D8E573.1060004@st.com> (raw)
In-Reply-To: <20060126134124.GA3107@nevyn.them.org>

Daniel Jacobowitz wrote:
> There isn't a definitive conclusion because it's evolved substantially
> once I began (re-) implementing it.  This is what I had two weeks ago:
> 
>   http://sourceware.org/ml/gdb/2005-05/msg00171.html
> 
> But it doesn't look entirely like that any more.
> 
> Registers can be generically described without hard-coded GDB
> knowledge.  Most other features can't, except for their presence or
> absence.  But the point of suggesting XML is to keep this extensible
> should someone have a bright idea :-)

That sounds good. We have been considering doing something with memory 
mapped registers (devices, exception/interrupt reason codes, etc.), and 
this might be the answer.

More generally we have been looking at ways to pass back information 
about the target to replace the GDB scripts we currently use that just 
trust that the target is as they describe - there is no check that the 
user hasn't connected to the wrong type.

You may remember that my proposal concerning a plugin interface provided 
means for the target plugin to run GDB commands. This was one way I 
planned to solve this problem.

Specifically, the data we need/want GDB to know about the target are as 
follows:
  - architecture variant (i.e. what registers and instructions are valid);
  - endian;
  - memory map (not that GDB seems to do much with this at present);
  - non-core control/information registers;
  - other features.

'Other features' includes simulator specific trace features, silicon 
specific performance measurement devices, low level jtag commands etc. 
These things are controlled through custom GDB commands that may or may 
not be available on any given target.

In general, there is a selection of GDB 'set' commands which are of 
interest to targets and for which an interface might be nice.

None of this directly addresses the question of XML, but it does 
represent the sort of thing (some) users are looking to do, and 
therefore what 'extensibility' might entail. Of course, I'm still not 
sure exactly what you envisage as the limits of the interface.

Speaking of XML, are you aware of the SPIRIT SOC definition standard 
(http://www.spiritconsortium.com) which contains some things that the 
debugger might be interested in (and much in which it is not). I've no 
idea how compatible they are, but it might be nice if GDB could pull 
relevant information out of one of these.

Thanks

Andrew Stubbs


  reply	other threads:[~2006-01-26 15:08 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-01-26  7:01 Daniel Jacobowitz
2006-01-26 12:45 ` Andrew STUBBS
2006-01-26 13:41   ` Daniel Jacobowitz
2006-01-26 16:24     ` Andrew STUBBS [this message]
2006-01-26 16:41       ` Daniel Jacobowitz
2006-01-26 17:34         ` Paul Koning
2006-01-26 17:44         ` Andrew STUBBS
2006-01-26 18:55           ` Daniel Jacobowitz
2006-01-26 21:05         ` Mark Kettenis
2006-01-26 21:26           ` Daniel Jacobowitz
2006-01-26 21:57             ` Mark Kettenis
2006-01-26 22:02               ` Daniel Jacobowitz
2006-01-26 22:32                 ` Bob Rossi
2006-01-26 20:39 ` Mark Kettenis
2006-01-26 20:43   ` Bob Rossi
2006-01-26 21:41     ` Mark Kettenis
2006-01-26 20:52   ` Daniel Jacobowitz
2006-01-26 21:12     ` Bob Rossi
2006-01-27  0:47 ` Bob Rossi
2006-01-27 18:04 ` Eli Zaretskii
2006-01-27 18:41   ` Daniel Jacobowitz
2006-01-27 18:57     ` Eli Zaretskii
2006-01-27 19:06       ` Paul Koning
2006-01-28  6:33         ` Daniel Jacobowitz
2006-01-28 13:54           ` Jim Blandy
2006-01-29  4:09             ` Eli Zaretskii
2006-01-29  4:27             ` Paul Koning
2006-01-28  5:24       ` Daniel Jacobowitz
2006-01-29  4:33 Paul Schlie
2006-01-29  6:18 ` Jim Blandy
2006-01-29 23:21   ` Daniel Jacobowitz
2006-01-29 23:24   ` Paul Schlie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=43D8E573.1060004@st.com \
    --to=andrew.stubbs@st.com \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox