mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-06 12:09:26 +08:00
42a4f53d2b
This commit applies all changes made after running the gdb/copyright.py script. Note that one file was flagged by the script, due to an invalid copyright header (gdb/unittests/basic_string_view/element_access/char/empty.cc). As the file was copied from GCC's libstdc++-v3 testsuite, this commit leaves this file untouched for the time being; a patch to fix the header was sent to gcc-patches first. gdb/ChangeLog: Update copyright year range in all GDB files.
30 lines
737 B
Bash
Executable File
30 lines
737 B
Bash
Executable File
#! /bin/bash
|
|
|
|
RISCV_OPC_FILE=$1
|
|
RISCV_FEATURE_DIR=$2
|
|
|
|
function gen_csr_xml ()
|
|
{
|
|
bitsize=$1
|
|
|
|
cat <<EOF
|
|
<?xml version="1.0"?>
|
|
<!-- Copyright (C) 2018-2019 Free Software Foundation, Inc.
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
are permitted in any medium without royalty provided the copyright
|
|
notice and this notice are preserved. -->
|
|
|
|
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
|
|
<feature name="org.gnu.gdb.riscv.csr">
|
|
EOF
|
|
|
|
grep "^DECLARE_CSR(" ${RISCV_OPC_FILE} \
|
|
| sed -e "s!DECLARE_CSR(\(.*\), .*! <reg name=\"\1\" bitsize=\"$bitsize\"/>!"
|
|
|
|
echo "</feature>"
|
|
}
|
|
|
|
gen_csr_xml 32 > ${RISCV_FEATURE_DIR}/32bit-csr.xml
|
|
gen_csr_xml 64 > ${RISCV_FEATURE_DIR}/64bit-csr.xml
|