Index: gdb/gdbserver/configure.srv |
diff --git a/gdb/gdbserver/configure.srv b/gdb/gdbserver/configure.srv |
index 7c47c863ed150b010a5a9ae43ffafe626143f51b..d1e04a9685c4d8258bee20ec0dece26a6ecc1392 100644 |
--- a/gdb/gdbserver/configure.srv |
+++ b/gdb/gdbserver/configure.srv |
@@ -26,18 +26,18 @@ srv_hostio_err_objs="hostio-errno.o" |
srv_i386_regobj="i386.o i386-avx.o i386-mmx.o" |
srv_i386_linux_regobj="i386-linux.o i386-avx-linux.o i386-mmx-linux.o" |
-srv_amd64_regobj="amd64.o amd64-avx.o" |
-srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o" |
+srv_amd64_regobj="amd64.o amd64-avx.o x32.o x32-avx.o" |
+srv_amd64_linux_regobj="amd64-linux.o amd64-avx-linux.o x32-linux.o x32-avx-linux.o" |
ipa_i386_linux_regobj=i386-linux-ipa.o |
ipa_amd64_linux_regobj=amd64-linux-ipa.o |
srv_i386_32bit_xmlfiles="i386/32bit-core.xml i386/32bit-sse.xml i386/32bit-avx.xml" |
-srv_i386_64bit_xmlfiles="i386/64bit-core.xml i386/64bit-sse.xml i386/64bit-avx.xml" |
+srv_i386_64bit_xmlfiles="i386/64bit-core.xml i386/64bit-sse.xml i386/64bit-avx.xml i386/x32-core.xml" |
srv_i386_xmlfiles="i386/i386.xml i386/i386-avx.xml i386/i386-mmx.xml $srv_i386_32bit_xmlfiles" |
-srv_amd64_xmlfiles="i386/amd64.xml i386/amd64-avx.xml $srv_i386_64bit_xmlfiles" |
+srv_amd64_xmlfiles="i386/amd64.xml i386/amd64-avx.xml i386/x32.xml i386/x32-avx.xml $srv_i386_64bit_xmlfiles" |
srv_i386_linux_xmlfiles="i386/i386-linux.xml i386/i386-avx-linux.xml i386/i386-mmx-linux.xml i386/32bit-linux.xml $srv_i386_32bit_xmlfiles" |
-srv_amd64_linux_xmlfiles="i386/amd64-linux.xml i386/amd64-avx-linux.xml i386/64bit-linux.xml $srv_i386_64bit_xmlfiles" |
+srv_amd64_linux_xmlfiles="i386/amd64-linux.xml i386/amd64-avx-linux.xml i386/64bit-linux.xml i386/x32-linux.xml i386/x32-avx-linux.xml $srv_i386_64bit_xmlfiles" |
# Input is taken from the "${target}" variable. |
@@ -47,6 +47,7 @@ case "${target}" in |
srv_regobj="${srv_regobj} arm-with-vfpv3.o" |
srv_regobj="${srv_regobj} arm-with-neon.o" |
srv_tgtobj="linux-low.o linux-osdata.o linux-arm-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_xmlfiles="arm-with-iwmmxt.xml" |
srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv2.xml" |
srv_xmlfiles="${srv_xmlfiles} arm-with-vfpv3.xml" |
@@ -69,16 +70,19 @@ case "${target}" in |
;; |
bfin-*-*linux*) srv_regobj=reg-bfin.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-bfin-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_thread_db=yes |
;; |
crisv32-*-linux*) srv_regobj=reg-crisv32.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-crisv32-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
;; |
cris-*-linux*) srv_regobj=reg-cris.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-cris-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_thread_db=yes |
;; |
@@ -93,6 +97,7 @@ case "${target}" in |
srv_xmlfiles="${srv_xmlfiles} $srv_amd64_linux_xmlfiles" |
fi |
srv_tgtobj="linux-low.o linux-osdata.o linux-x86-low.o i386-low.o i387-fp.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
@@ -124,10 +129,12 @@ case "${target}" in |
;; |
ia64-*-linux*) srv_regobj=reg-ia64.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-ia64-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
;; |
m32r*-*-linux*) srv_regobj=reg-m32r.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-m32r-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_thread_db=yes |
;; |
@@ -137,6 +144,7 @@ case "${target}" in |
srv_regobj=reg-m68k.o |
fi |
srv_tgtobj="linux-low.o linux-osdata.o linux-m68k-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
@@ -147,20 +155,29 @@ case "${target}" in |
srv_regobj=reg-m68k.o |
fi |
srv_tgtobj="linux-low.o linux-osdata.o linux-m68k-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
;; |
- mips*-*-linux*) srv_regobj="mips-linux.o mips64-linux.o" |
+ mips*-*-linux*) srv_regobj="mips-linux.o" |
+ srv_regobj="${srv_regobj} mips-dsp-linux.o" |
+ srv_regobj="${srv_regobj} mips64-linux.o" |
+ srv_regobj="${srv_regobj} mips64-dsp-linux.o" |
srv_tgtobj="linux-low.o linux-osdata.o linux-mips-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_xmlfiles="mips-linux.xml" |
+ srv_xmlfiles="${srv_xmlfiles} mips-dsp-linux.xml" |
srv_xmlfiles="${srv_xmlfiles} mips-cpu.xml" |
srv_xmlfiles="${srv_xmlfiles} mips-cp0.xml" |
srv_xmlfiles="${srv_xmlfiles} mips-fpu.xml" |
+ srv_xmlfiles="${srv_xmlfiles} mips-dsp.xml" |
srv_xmlfiles="${srv_xmlfiles} mips64-linux.xml" |
+ srv_xmlfiles="${srv_xmlfiles} mips64-dsp-linux.xml" |
srv_xmlfiles="${srv_xmlfiles} mips64-cpu.xml" |
srv_xmlfiles="${srv_xmlfiles} mips64-cp0.xml" |
srv_xmlfiles="${srv_xmlfiles} mips64-fpu.xml" |
+ srv_xmlfiles="${srv_xmlfiles} mips64-dsp.xml" |
srv_linux_regsets=yes |
srv_linux_usrregs=yes |
srv_linux_thread_db=yes |
@@ -181,6 +198,7 @@ case "${target}" in |
srv_regobj="${srv_regobj} powerpc-isa205-altivec64l.o" |
srv_regobj="${srv_regobj} powerpc-isa205-vsx64l.o" |
srv_tgtobj="linux-low.o linux-osdata.o linux-ppc-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_xmlfiles="rs6000/powerpc-32l.xml" |
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-altivec32l.xml" |
srv_xmlfiles="${srv_xmlfiles} rs6000/powerpc-cell32l.xml" |
@@ -223,6 +241,7 @@ case "${target}" in |
srv_regobj="${srv_regobj} s390x-linux64v1.o" |
srv_regobj="${srv_regobj} s390x-linux64v2.o" |
srv_tgtobj="linux-low.o linux-osdata.o linux-s390-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_xmlfiles="s390-linux32.xml" |
srv_xmlfiles="${srv_xmlfiles} s390-linux32v1.xml" |
srv_xmlfiles="${srv_xmlfiles} s390-linux32v2.xml" |
@@ -243,12 +262,14 @@ case "${target}" in |
;; |
sh*-*-linux*) srv_regobj=reg-sh.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-sh-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_usrregs=yes |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
;; |
sparc*-*-linux*) srv_regobj=reg-sparc64.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-sparc-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_regsets=yes |
srv_linux_thread_db=yes |
;; |
@@ -265,12 +286,14 @@ case "${target}" in |
srv_xmlfiles="${srv_xmlfiles} tic6x-gp.xml" |
srv_xmlfiles="${srv_xmlfiles} tic6x-c6xp.xml" |
srv_tgtobj="linux-low.o linux-osdata.o linux-tic6x-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_regsets=yes |
srv_linux_usrregs=yes |
srv_linux_thread_db=yes |
;; |
x86_64-*-linux*) srv_regobj="$srv_amd64_linux_regobj $srv_i386_linux_regobj" |
srv_tgtobj="linux-low.o linux-osdata.o linux-x86-low.o i386-low.o i387-fp.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_xmlfiles="$srv_i386_linux_xmlfiles $srv_amd64_linux_xmlfiles" |
srv_linux_usrregs=yes # This is for i386 progs. |
srv_linux_regsets=yes |
@@ -285,8 +308,15 @@ case "${target}" in |
xtensa*-*-linux*) srv_regobj=reg-xtensa.o |
srv_tgtobj="linux-low.o linux-osdata.o linux-xtensa-low.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
srv_linux_regsets=yes |
;; |
+ tilegx-*-linux*) srv_regobj=reg-tilegx.o |
+ srv_tgtobj="linux-low.o linux-tile-low.o linux-osdata.o linux-procfs.o" |
+ srv_tgtobj="${srv_tgtobj} linux-ptrace.o" |
+ srv_linux_regsets=yes |
+ srv_linux_thread_db=yes |
+ ;; |
*) echo "Error: target not supported by gdbserver." |
exit 1 |
;; |