aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2013-10-30 18:57:08 +0100
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2013-10-30 18:57:08 +0100
commit0e5fae36f1d78711b77418146b907060ea34470f (patch)
tree5133d6ec7b406bda6ceccd7f2f284979cd680304 /gdb
parent34201ae3ae19972196c96a3c7abcea2b0996422e (diff)
downloadgdb-0e5fae36f1d78711b77418146b907060ea34470f.zip
gdb-0e5fae36f1d78711b77418146b907060ea34470f.tar.gz
gdb-0e5fae36f1d78711b77418146b907060ea34470f.tar.bz2
S/390: Rename source files to *-linux-*
As suggested before, rename the S/390-related source files (tdep and nat) such that "-linux-" occurs in the file name, like with other GNU/Linux targets. Since no other operating system is currently supported by GDB on this architecture, this isn't strictly necessary. But the old names sometimes caused GDB contributors to miss these files when performing a change that affects all GNU/Linux targets. The latest such incident was observed here: https://sourceware.org/ml/gdb-patches/2013-09/msg00619.html gdb/ 2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com> * s390-tdep.h: Rename to... * s390-linux-tdep.h: ...here. * s390-tdep.c: Rename to... * s390-linux-tdep.c: ...here. Adjust #include. * s390-nat.c: Rename to... * s390-linux-nat.c: ...here. Adjust #include. * config/s390/s390.mh: Rename to... * config/s390/linux.mh: ...here. Reflect rename s390-nat.o -> s390-linux-nat.o. * configure.host: Reflect host rename "s390" -> "linux". * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o. * Makefile.in (ALL_TARGET_OBS): Likewise. (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h -> s390-linux-tdep.h. (ALLDEPFILES): Reflect rename of .c files.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog18
-rw-r--r--gdb/Makefile.in6
-rw-r--r--gdb/config/s390/linux.mh (renamed from gdb/config/s390/s390.mh)2
-rw-r--r--gdb/configure.host2
-rw-r--r--gdb/configure.tgt4
-rw-r--r--gdb/s390-linux-nat.c (renamed from gdb/s390-nat.c)2
-rw-r--r--gdb/s390-linux-tdep.c (renamed from gdb/s390-tdep.c)2
-rw-r--r--gdb/s390-linux-tdep.h (renamed from gdb/s390-tdep.h)0
8 files changed, 27 insertions, 9 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a0d7880..7381eb6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,23 @@
2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
+ * s390-tdep.h: Rename to...
+ * s390-linux-tdep.h: ...here.
+ * s390-tdep.c: Rename to...
+ * s390-linux-tdep.c: ...here. Adjust #include.
+ * s390-nat.c: Rename to...
+ * s390-linux-nat.c: ...here. Adjust #include.
+ * config/s390/s390.mh: Rename to...
+ * config/s390/linux.mh: ...here. Reflect rename s390-nat.o ->
+ s390-linux-nat.o.
+ * configure.host: Reflect host rename "s390" -> "linux".
+ * configure.tgt: Reflect rename s390-tdep.o -> s390-linux-tdep.o.
+ * Makefile.in (ALL_TARGET_OBS): Likewise.
+ (HFILES_NO_SRCDIR): Reflect rename s390-tdep.h ->
+ s390-linux-tdep.h.
+ (ALLDEPFILES): Reflect rename of .c files.
+
+2013-10-30 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
* s390-nat.c: Whitespace cleanup.
* s390-tdep.c: Likewise.
* s390-tdep.h: Remove empty line at end of file.
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index fc2a3af..a9b3c64 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -586,7 +586,7 @@ ALL_TARGET_OBS = \
rs6000-aix-tdep.o rs6000-tdep.o solib-aix.o ppc-ravenscar-thread.o \
rs6000-lynx178-tdep.o \
rx-tdep.o \
- s390-tdep.o \
+ s390-linux-tdep.o \
score-tdep.o \
sh64-tdep.o sh-linux-tdep.o shnbsd-tdep.o sh-tdep.o \
sparc-linux-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
@@ -802,7 +802,7 @@ cli/cli-script.h macrotab.h symtab.h common/version.h \
gnulib/import/string.in.h gnulib/import/str-two-way.h \
gnulib/import/stdint.in.h remote.h remote-notif.h gdb.h sparc-nat.h \
gdbthread.h dwarf2-frame.h dwarf2-frame-tailcall.h nbsd-nat.h dcache.h \
-amd64-nat.h s390-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
+amd64-nat.h s390-linux-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
gdbarch.h bsd-uthread.h common/gdb_stat.h memory-map.h memrange.h \
mdebugread.h m88k-tdep.h stabsread.h hppa-linux-offsets.h linux-fork.h \
ser-unix.h inf-ptrace.h terminal.h ui-out.h frame-base.h \
@@ -1551,7 +1551,7 @@ ALLDEPFILES = \
rs6000-nat.c rs6000-tdep.c solib-aix.c ppc-ravenscar-thread.c \
rs6000-lynx178-tdep.c \
rx-tdep.c \
- s390-tdep.c s390-nat.c \
+ s390-linux-tdep.c s390-linux-nat.c \
score-tdep.c \
ser-go32.c ser-pipe.c ser-tcp.c ser-mingw.c \
sh-tdep.c sh64-tdep.c shnbsd-tdep.c shnbsd-nat.c \
diff --git a/gdb/config/s390/s390.mh b/gdb/config/s390/linux.mh
index 76d82e5..59bab83 100644
--- a/gdb/config/s390/s390.mh
+++ b/gdb/config/s390/linux.mh
@@ -1,6 +1,6 @@
# Host: S390, running Linux
NAT_FILE= config/nm-linux.h
-NATDEPFILES= inf-ptrace.o fork-child.o s390-nat.o \
+NATDEPFILES= inf-ptrace.o fork-child.o s390-linux-nat.o \
linux-thread-db.o proc-service.o \
linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \
linux-waitpid.o
diff --git a/gdb/configure.host b/gdb/configure.host
index f522376..634213f 100644
--- a/gdb/configure.host
+++ b/gdb/configure.host
@@ -149,7 +149,7 @@ powerpc64*-*-linux*) gdb_host=ppc64-linux
;;
powerpc*-*-linux*) gdb_host=linux ;;
-s390*-*-*) gdb_host=s390 ;;
+s390*-*-linux*) gdb_host=linux ;;
sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
gdb_host=nbsd ;;
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index ea0faf1..47e98d9 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -464,9 +464,9 @@ powerpc*-*-*)
fi
;;
-s390*-*-*)
+s390*-*-linux*)
# Target: S390 running Linux
- gdb_target_obs="s390-tdep.o solib-svr4.o linux-tdep.o"
+ gdb_target_obs="s390-linux-tdep.o solib-svr4.o linux-tdep.o"
build_gdbserver=yes
;;
diff --git a/gdb/s390-nat.c b/gdb/s390-linux-nat.c
index 11b5345..67f97f9 100644
--- a/gdb/s390-nat.c
+++ b/gdb/s390-linux-nat.c
@@ -27,7 +27,7 @@
#include "auxv.h"
#include "gregset.h"
-#include "s390-tdep.h"
+#include "s390-linux-tdep.h"
#include "elf/common.h"
#include <asm/ptrace.h>
diff --git a/gdb/s390-tdep.c b/gdb/s390-linux-tdep.c
index 91c94a4..cd41de5 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-linux-tdep.c
@@ -43,7 +43,7 @@
#include "solib-svr4.h"
#include "prologue-value.h"
#include "linux-tdep.h"
-#include "s390-tdep.h"
+#include "s390-linux-tdep.h"
#include "auxv.h"
#include "stap-probe.h"
diff --git a/gdb/s390-tdep.h b/gdb/s390-linux-tdep.h
index 1dd5bfa..1dd5bfa 100644
--- a/gdb/s390-tdep.h
+++ b/gdb/s390-linux-tdep.h