diff options
author | Andrew Cagney <cagney@redhat.com> | 2002-05-28 15:16:34 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2002-05-28 15:16:34 +0000 |
commit | 06a08cd3d165848e94a2736d8e358d67762a5c3d (patch) | |
tree | f881657ca3a9f49c60dc0e8afc8aebea7797a05b | |
parent | 099b5c98f1a2696f37dbe535705034339dd73f59 (diff) | |
download | gdb-06a08cd3d165848e94a2736d8e358d67762a5c3d.tar.gz |
* MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
`tr' and `sed'. Mention that `broken' targets are not expected to
build.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/MAINTAINERS | 45 |
2 files changed, 36 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 286bee18f1f..ffbd7fa50ca 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2002-05-28 Andrew Cagney <ac131313@redhat.com> + + * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use + `tr' and `sed'. Mention that `broken' targets are not expected to + build. + 2002-05-27 Michal Ludvig <mludvig@suse.cz> * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note. diff --git a/gdb/MAINTAINERS b/gdb/MAINTAINERS index bc8d01dc335..8b80d417c6e 100644 --- a/gdb/MAINTAINERS +++ b/gdb/MAINTAINERS @@ -190,21 +190,36 @@ All recognized developers can make mechanical changes (by virtue of the obvious fix rule) to ``maintenance only'' targets. The change shall be sanity checked by compiling with one of the listed targets. -The GAWK segment: - - awk < "${maintainers}" ' - $2 ~ /--target=.*/ { - targets = gensub (/^.*--target=/, "", 1, $2) - warnings = gensub (/[)]*$/, "", 1, $3) - split (targets, targ, /,/) - for (i in targ) { - print targ[i], warnings - } - }' - -can be used to generate a full list of --target= ---enable-gdb-build-warnings= pairs. - +The Bourne shell script: + +cat MAINTAINERS | tr -s '[\t]' '[ ]' | sed -n ' +/^[ ]*[-a-z0-9\.]*[ ]*[(]*--target=.*/ !d +s/^.*--target=// +s/).*$// +h +:loop + g + /^[^ ]*,/ !b end + s/,[^ ]*// + p + g + s/^[^,]*,// + h +b loop +:end +p +' + +can be used to generate a complete list of --target= +--enable-gdb-build-warnings= pairs of the form: + + arc-elf ,-Werror + ... + hppa1.1-hp-proelf broken + ... + +While the ``broken'' targets are included in the listing, the are not +expected to build. Host/Native: |