Move arm.o arm-get-next-pcs.o arm-linux.o to arch/
authorYao Qi <yao.qi@linaro.org>
Fri, 6 Oct 2017 13:36:04 +0000 (14:36 +0100)
committerYao Qi <yao.qi@linaro.org>
Fri, 6 Oct 2017 13:36:04 +0000 (14:36 +0100)
It is tested by building GDB for some targets, arm-elf, arm-netbsd,
arm-linux, and aarch64-linux.

gdb:

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

* Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
arch/arm-linux.o respectively.
* configure.tgt: Likewise.

gdb/ChangeLog
gdb/Makefile.in
gdb/configure.tgt

index fc19c8b49c4c66e35646584f6de9424ddbfbc972..df704f8ee1c5f22824a590da145665e04a5ef910 100644 (file)
@@ -1,3 +1,10 @@
+2017-10-06  Yao Qi  <yao.qi@linaro.org>
+
+       * Makefile.in (ALL_TARGET_OBS): Replace arm.o, arm-get-next-pcs.o,
+       and arm-linux.o with arch/arm.o, arch/arm-get-next-pcs.o and
+       arch/arm-linux.o respectively.
+       * configure.tgt: Likewise.
+
 2017-10-06  Yao Qi  <yao.qi@linaro.org>
 
        * Makefile.in (ALL_TARGET_OBS): Rename i386.o to arch/i386.o.
index c40cb762a332ada43188a943d87fc1f285fd54ab..4492aca530f2f8482af28c869be7f10a2ca3f2af 100644 (file)
@@ -793,11 +793,11 @@ ALL_64_TARGET_OBS = \
 # All other target-dependent objects files (used with --enable-targets=all).
 ALL_TARGET_OBS = \
        arc-tdep.o \
+       arch/arm.o \
+       arch/arm-get-next-pcs.o \
+       arch/arm-linux.o \
        arch/i386.o \
-       arm.o \
        arm-bsd-tdep.o \
-       arm-get-next-pcs.o \
-       arm-linux.o \
        arm-linux-tdep.o \
        arm-nbsd-tdep.o \
        arm-obsd-tdep.o \
index 4b3be3fb80009389a4f6548d7ffa0834fd7d97b2..52ae467552225e33dcf0c44b5aa0297a4d58aede 100644 (file)
@@ -59,7 +59,7 @@ arc*-*-*)
        ;;
 
 arm*-*-*)
-       cpu_obs="arm.o arm-get-next-pcs.o arm-tdep.o";;
+       cpu_obs="arch/arm.o arch/arm-get-next-pcs.o arm-tdep.o";;
 
 hppa*-*-*)
        # Target: HP PA-RISC
@@ -115,8 +115,8 @@ aarch64*-*-freebsd*)
 aarch64*-*-linux*)
        # Target: AArch64 linux
        gdb_target_obs="aarch64-linux-tdep.o \
-                       arm.o arm-linux.o arm-get-next-pcs.o arm-tdep.o \
-                       arm-linux-tdep.o \
+                       arch/arm.o arch/arm-linux.o arch/arm-get-next-pcs.o \
+                       arm-tdep.o arm-linux-tdep.o \
                        glibc-tdep.o linux-tdep.o solib-svr4.o \
                        symfile-mem.o linux-record.o"
        build_gdbserver=yes
@@ -156,7 +156,7 @@ arm*-wince-pe | arm*-*-mingw32ce*)
        ;;
 arm*-*-linux*)
        # Target: ARM based machine running GNU/Linux
-       gdb_target_obs="arm-linux.o arm-linux-tdep.o glibc-tdep.o \
+       gdb_target_obs="arch/arm-linux.o arm-linux-tdep.o glibc-tdep.o \
                        solib-svr4.o symfile-mem.o linux-tdep.o linux-record.o"
        build_gdbserver=yes
        ;;