mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
9b4b61c8db
* features/Makefile (%.dat): Emit xmltarget statement. * regformats/regdat.sh: Support xmltarget and xmlarch statments. Generate code to set gdbserver_xmltarget in init_registers_${name}. * regformats/arm-with-iwmmxt.dat: Regenerate. * regformats/mips64-linux.dat: Regenerate. * regformats/mips-linux.dat: Regenerate. * regformats/rs6000/powerpc-32.dat: Regenerate. * regformats/rs6000/powerpc-64.dat: Regenerate. * regformats/rs6000/powerpc-e500.dat: Regenerate. * regformats/reg-arm.dat: Add xmlarch statement. * regformats/reg-i386.dat: Likewise. * regformats/reg-i386-linux.dat: Likewise. * regformats/reg-x86-64-linux.dat: Likewise. * regformats/reg-spu.dat: Likewise. gdbserver/ChangeLog: * regcache.h (gdbserver_xmltarget): Add extern declaration. * server.c (gdbserver_xmltarget): Define. (get_features_xml): Use it to replace "target.xml" and arch_string. * configure.srv: Remove srv_xmltarget. Add XML files that were mentioned there to srv_xmlfiles instead. Remove conditional tests on gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe; set srv_xmlfiles and srv_regobj to include all possible choices. * configure.ac (srv_xmltarget): Remove. (srv_xmlfiles): Do not add "target.xml". (gdb_cv_arm_iwmmxt, gdb_cv_ppc_altivec, gdb_cv_ppc_spe): Remove checks for supplementary target information. * configure: Regenerate. * Makefile.in (XML_TARGET): Remove. (target.xml): Remove rule. (clean): Do not clean up target.xml. (.PRECIOUS): Do not mention target.xml. * target.h (struct target_ops): Remove arch_string member. * linux-low.c (linux_arch_string): Remove. (linux_target_ops): Remove arch_string initializer. * linux-low.h (struct linux_target_ops): Remove arch_string member. * linux-i386-low.c (the_low_target): Remove arch_string initializer. * linux-x86-64-low.c (the_low_target): Remove arch_string initializer. * spu-low.c (spu_arch_string): Remove. (spu_target_ops): Remove arch_string initializer. * win32-low.c (win32_arch_string): Remove. (win32_target_ops): Remove arch_string initializer. * win32-low.h (struct win32_target_ops): Remove arch_string member. * win32-arm-low.c (the_low_target): Remove arch_string initializer. * win32-i368-low.c (the_low_target): Remove arch_string initializer.
73 lines
2.7 KiB
Makefile
73 lines
2.7 KiB
Makefile
# Copyright (C) 2007, 2008 Free Software Foundation, Inc.
|
|
|
|
# This file is part of GDB.
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with this program; if not, write to the Free Software
|
|
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
|
|
# This file requires GNU make!
|
|
|
|
# This Makefile updates files in ../regformats from their XML master
|
|
# copies. Because this relies on xsltproc, it is not normally run
|
|
# during the build process; it should be run by hand when one of the
|
|
# affected XML files is changed, and the results should be kept in the
|
|
# GDB repository.
|
|
|
|
# It can also update the C files in the features directory from their
|
|
# XML master copies. This relies on a GDB linked with expat and
|
|
# configured for the correct architecture, so the files are again kept
|
|
# in the GDB repository. To generate C files:
|
|
# make GDB=/path/to/gdb XMLTOC="xml files" cfiles
|
|
|
|
WHICH = arm-with-iwmmxt mips-linux mips64-linux \
|
|
rs6000/powerpc-32 rs6000/powerpc-e500 rs6000/powerpc-64
|
|
|
|
# Record which registers should be sent to GDB by default after stop.
|
|
arm-with-iwmmxt-expedite = r11,sp,pc
|
|
mips-linux-expedite = r29,pc
|
|
mips64-linux-expedite = r29,pc
|
|
rs6000/powerpc-32-expedite = r1,pc
|
|
rs6000/powerpc-e500-expedite = r1,pc
|
|
rs6000/powerpc-64-expedite = r1,pc
|
|
|
|
XSLTPROC = xsltproc
|
|
outdir = ../regformats
|
|
OUTPUTS = $(patsubst %,$(outdir)/%.dat,$(WHICH))
|
|
|
|
XMLTOC =
|
|
CFILES = $(patsubst %.xml,%.c,$(XMLTOC))
|
|
GDB = false
|
|
|
|
all: $(OUTPUTS)
|
|
|
|
$(outdir)/%.dat: %.xml number-regs.xsl sort-regs.xsl gdbserver-regs.xsl
|
|
echo "# DO NOT EDIT: generated from $<" > $(outdir)/$*.tmp
|
|
echo "name:`echo $(notdir $*) | sed 's/-/_/g'`" >> $(outdir)/$*.tmp
|
|
echo "xmltarget:$<" >> $(outdir)/$*.tmp
|
|
echo "expedite:$($*-expedite)" >> $(outdir)/$*.tmp
|
|
$(XSLTPROC) --path "$(PWD)" --xinclude number-regs.xsl $< | \
|
|
$(XSLTPROC) sort-regs.xsl - | \
|
|
$(XSLTPROC) gdbserver-regs.xsl - >> $(outdir)/$*.tmp
|
|
sh ../../move-if-change $(outdir)/$*.tmp $(outdir)/$*.dat
|
|
|
|
cfiles: $(CFILES)
|
|
%.c: %.xml
|
|
$(GDB) -nx -q -batch \
|
|
-ex "set tdesc filename $<" -ex 'maint print c-tdesc' > $@.tmp
|
|
sh ../../move-if-change $@.tmp $@
|
|
|
|
# Other dependencies.
|
|
$(outdir)/arm-with-iwmmxt.dat: arm-core.xml xscale-iwmmxt.xml
|