]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Add optional argument to command "maint prints c-tdesc"
authorYao Qi <yao.qi@linaro.org>
Fri, 30 Jun 2017 11:08:21 +0000 (12:08 +0100)
committerYao Qi <yao.qi@linaro.org>
Mon, 10 Jul 2017 11:02:47 +0000 (12:02 +0100)
commit367d4a778728b14eaf9cc06c16254ca8018429a3
treee9bc15dd91d9ad388f3f4a2b35c1aaebab0d51f6
parenta35c5def82d28bb8aecf1514ea644e8a2470b171
Add optional argument to command "maint prints c-tdesc"

Nowadays, we need two steps to print c files for xml target description,
that is, 1) read xml target description in, update the current tdesc,
2) visit the current tdesc, print the c file.  It is unnecessary to
involve in current tdesc, and some validations in each gdbarch are
performed unnecessarily, which will reject some target descriptions if
they are missing some mandatory feature.

This patch adds an optional argument to "maint print c-tdesc", which
is an XML file target description, so that we can combine the two
steps above into one step, and don't have to involve in global current
tdesc.

gdb:

2017-06-30  Yao Qi  <yao.qi@linaro.org>

* NEWS: Mention it.
* features/Makefile (%.c: %.xml): Pass the xml file name to
command "maint print c-tdesc".
* target-descriptions.c (maint_print_c_tdesc_cmd): Get file
name from 'arg'.

gdb/doc:

2017-06-30  Yao Qi  <yao.qi@linaro.org>

* gdb.texinfo (Maintenance Commands): Document optional
argument of "maint print c-tdesc".
gdb/NEWS
gdb/doc/gdb.texinfo
gdb/features/Makefile
gdb/target-descriptions.c