public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] More Makefile cleanups
@ 2016-11-19  4:08 Simon Marchi
  2016-11-19  4:08 ` [PATCH v2 1/3] Makefiles: Flatten and sort file lists Simon Marchi
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Simon Marchi @ 2016-11-19  4:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

This patch series is the v2 of patches 3 and 4 of my original Makefile-related series:

  https://sourceware.org/ml/gdb-patches/2016-11/msg00326.html

 - Patch 1 organizes file lists in the Makefiles.
 - Patch 2 renames many architecture files to match our defacto naming
   convention.
 - Patch 3 is new, it contains a few whitespace inconsistency fixes that didn't
   fit in the other patches.

Simon Marchi (3):
  Makefiles: Flatten and sort file lists
  Normalize names of some source files
  Minor formatting fixups in Makefiles

 gdb/Makefile.in                                 | 1636 +++++++++++++++++------
 gdb/{alphabsd-nat.c => alpha-bsd-nat.c}         |    2 +-
 gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c}       |    2 +-
 gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h}       |    8 +-
 gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c}     |    0
 gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c}     |    2 +-
 gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c}     |    2 +-
 gdb/{amd64bsd-nat.c => amd64-bsd-nat.c}         |    2 +-
 gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c}       |    4 +-
 gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c}     |    2 +-
 gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c}       |    0
 gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c}     |    0
 gdb/{amd64obsd-nat.c => amd64-obsd-nat.c}       |    0
 gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c}     |    0
 gdb/amd64-tdep.h                                |    6 +-
 gdb/{armbsd-tdep.c => arm-bsd-tdep.c}           |    0
 gdb/{armnbsd-nat.c => arm-nbsd-nat.c}           |    0
 gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c}         |    0
 gdb/{armobsd-tdep.c => arm-obsd-tdep.c}         |    0
 gdb/arm-tdep.h                                  |    2 +-
 gdb/config/alpha/fbsd.mh                        |    2 +-
 gdb/config/alpha/nbsd.mh                        |    2 +-
 gdb/config/arm/nbsdelf.mh                       |    2 +-
 gdb/config/djgpp/fnchange.lst                   |   96 +-
 gdb/config/i386/fbsd.mh                         |    4 +-
 gdb/config/i386/fbsd64.mh                       |    4 +-
 gdb/config/i386/i386gnu.mh                      |    2 +-
 gdb/config/i386/i386sol2.mh                     |    2 +-
 gdb/config/i386/nbsd64.mh                       |    2 +-
 gdb/config/i386/nbsdelf.mh                      |    2 +-
 gdb/config/i386/obsd.mh                         |    2 +-
 gdb/config/i386/obsd64.mh                       |    2 +-
 gdb/config/i386/sol2-64.mh                      |    2 +-
 gdb/config/m68k/linux.mh                        |    2 +-
 gdb/config/m68k/nbsdelf.mh                      |    2 +-
 gdb/config/m68k/obsd.mh                         |    2 +-
 gdb/config/m88k/obsd.mh                         |    2 +-
 gdb/config/mips/nbsd.mh                         |    2 +-
 gdb/config/mips/obsd64.mh                       |    2 +-
 gdb/config/pa/nbsd.mh                           |    2 +-
 gdb/config/pa/obsd.mh                           |    2 +-
 gdb/config/powerpc/fbsd.mh                      |    2 +-
 gdb/config/powerpc/nbsd.mh                      |    2 +-
 gdb/config/powerpc/obsd.mh                      |    2 +-
 gdb/config/sh/nbsd.mh                           |    2 +-
 gdb/config/sparc/fbsd.mh                        |    2 +-
 gdb/config/sparc/nbsd64.mh                      |    2 +-
 gdb/config/sparc/nbsdelf.mh                     |    2 +-
 gdb/config/sparc/obsd64.mh                      |    2 +-
 gdb/config/vax/nbsdelf.mh                       |    2 +-
 gdb/config/vax/obsd.mh                          |    2 +-
 gdb/configure.tgt                               |   80 +-
 gdb/data-directory/Makefile.in                  |   39 +-
 gdb/gdbserver/Makefile.in                       |  170 ++-
 gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c}         |    2 +-
 gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h}         |    6 +-
 gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c}         |    0
 gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c}       |    2 +-
 gdb/{hppaobsd-nat.c => hppa-obsd-nat.c}         |    0
 gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c}       |    2 +-
 gdb/{i386bsd-nat.c => i386-bsd-nat.c}           |    6 +-
 gdb/{i386bsd-nat.h => i386-bsd-nat.h}           |    6 +-
 gdb/{i386bsd-tdep.c => i386-bsd-tdep.c}         |    0
 gdb/{i386fbsd-nat.c => i386-fbsd-nat.c}         |    4 +-
 gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c}       |    2 +-
 gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h}       |    6 +-
 gdb/{i386gnu-nat.c => i386-gnu-nat.c}           |    0
 gdb/{i386gnu-tdep.c => i386-gnu-tdep.c}         |    0
 gdb/{i386nbsd-nat.c => i386-nbsd-nat.c}         |    2 +-
 gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c}       |    0
 gdb/{i386obsd-nat.c => i386-obsd-nat.c}         |    2 +-
 gdb/{i386obsd-tdep.c => i386-obsd-tdep.c}       |    0
 gdb/i386-tdep.h                                 |    2 +-
 gdb/{i386v4-nat.c => i386-v4-nat.c}             |    0
 gdb/{m68kbsd-nat.c => m68k-bsd-nat.c}           |    0
 gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c}         |    0
 gdb/{m68klinux-nat.c => m68k-linux-nat.c}       |    0
 gdb/{m68klinux-tdep.c => m68k-linux-tdep.c}     |    0
 gdb/m68k-tdep.h                                 |    2 +-
 gdb/{m88kbsd-nat.c => m88k-bsd-nat.c}           |    0
 gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c}         |    2 +-
 gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c}       |    2 +-
 gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h}       |    6 +-
 gdb/{mips64obsd-nat.c => mips64-obsd-nat.c}     |    0
 gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c}   |    0
 gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c}           |    2 +-
 gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c}         |    2 +-
 gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h}         |    8 +-
 gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c}           |    2 +-
 gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c}         |    2 +-
 gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h}         |    6 +-
 gdb/{ppcobsd-nat.c => ppc-obsd-nat.c}           |    2 +-
 gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c}         |    2 +-
 gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h}         |    6 +-
 gdb/{shnbsd-nat.c => sh-nbsd-nat.c}             |    0
 gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c}           |    0
 gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c}       |    0
 gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c}     |    0
 gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c}     |    0
 gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c}   |    0
 gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} |    0
 gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c}   |    0
 gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} |    0
 gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c}   |    0
 gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} |    0
 gdb/sparc64-tdep.h                              |    4 +-
 gdb/testsuite/gdb.base/default.exp              |    2 +-
 gdb/{vaxbsd-nat.c => vax-bsd-nat.c}             |    0
 gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c}         |    0
 gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c}         |    0
 gdb/{x86bsd-nat.c => x86-bsd-nat.c}             |    2 +-
 gdb/{x86bsd-nat.h => x86-bsd-nat.h}             |    6 +-
 112 files changed, 1556 insertions(+), 661 deletions(-)
 rename gdb/{alphabsd-nat.c => alpha-bsd-nat.c} (99%)
 rename gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c} (98%)
 rename gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h} (91%)
 rename gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c} (100%)
 rename gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c} (99%)
 rename gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c} (99%)
 rename gdb/{amd64bsd-nat.c => amd64-bsd-nat.c} (99%)
 rename gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c} (98%)
 rename gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c} (99%)
 rename gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c} (100%)
 rename gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c} (100%)
 rename gdb/{amd64obsd-nat.c => amd64-obsd-nat.c} (100%)
 rename gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c} (100%)
 rename gdb/{armbsd-tdep.c => arm-bsd-tdep.c} (100%)
 rename gdb/{armnbsd-nat.c => arm-nbsd-nat.c} (100%)
 rename gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c} (100%)
 rename gdb/{armobsd-tdep.c => arm-obsd-tdep.c} (100%)
 rename gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c} (99%)
 rename gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h} (91%)
 rename gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c} (100%)
 rename gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c} (99%)
 rename gdb/{hppaobsd-nat.c => hppa-obsd-nat.c} (100%)
 rename gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c} (99%)
 rename gdb/{i386bsd-nat.c => i386-bsd-nat.c} (98%)
 rename gdb/{i386bsd-nat.h => i386-bsd-nat.h} (92%)
 rename gdb/{i386bsd-tdep.c => i386-bsd-tdep.c} (100%)
 rename gdb/{i386fbsd-nat.c => i386-fbsd-nat.c} (99%)
 rename gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c} (99%)
 rename gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h} (93%)
 rename gdb/{i386gnu-nat.c => i386-gnu-nat.c} (100%)
 rename gdb/{i386gnu-tdep.c => i386-gnu-tdep.c} (100%)
 rename gdb/{i386nbsd-nat.c => i386-nbsd-nat.c} (99%)
 rename gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c} (100%)
 rename gdb/{i386obsd-nat.c => i386-obsd-nat.c} (99%)
 rename gdb/{i386obsd-tdep.c => i386-obsd-tdep.c} (100%)
 rename gdb/{i386v4-nat.c => i386-v4-nat.c} (100%)
 rename gdb/{m68kbsd-nat.c => m68k-bsd-nat.c} (100%)
 rename gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c} (100%)
 rename gdb/{m68klinux-nat.c => m68k-linux-nat.c} (100%)
 rename gdb/{m68klinux-tdep.c => m68k-linux-tdep.c} (100%)
 rename gdb/{m88kbsd-nat.c => m88k-bsd-nat.c} (100%)
 rename gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c} (99%)
 rename gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c} (99%)
 rename gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h} (93%)
 rename gdb/{mips64obsd-nat.c => mips64-obsd-nat.c} (100%)
 rename gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c} (100%)
 rename gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c} (99%)
 rename gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c} (99%)
 rename gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h} (89%)
 rename gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c} (99%)
 rename gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c} (99%)
 rename gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h} (93%)
 rename gdb/{ppcobsd-nat.c => ppc-obsd-nat.c} (99%)
 rename gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c} (99%)
 rename gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h} (95%)
 rename gdb/{shnbsd-nat.c => sh-nbsd-nat.c} (100%)
 rename gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c} (100%)
 rename gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c} (100%)
 rename gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c} (100%)
 rename gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c} (100%)
 rename gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c} (100%)
 rename gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} (100%)
 rename gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c} (100%)
 rename gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} (100%)
 rename gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c} (100%)
 rename gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} (100%)
 rename gdb/{vaxbsd-nat.c => vax-bsd-nat.c} (100%)
 rename gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c} (100%)
 rename gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c} (100%)
 rename gdb/{x86bsd-nat.c => x86-bsd-nat.c} (99%)
 rename gdb/{x86bsd-nat.h => x86-bsd-nat.h} (93%)

-- 
2.10.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 3/3] Minor formatting fixups in Makefiles
  2016-11-19  4:08 [PATCH v2 0/3] More Makefile cleanups Simon Marchi
  2016-11-19  4:08 ` [PATCH v2 1/3] Makefiles: Flatten and sort file lists Simon Marchi
  2016-11-19  4:08 ` [PATCH v2 2/3] Normalize names of some source files Simon Marchi
@ 2016-11-19  4:08 ` Simon Marchi
  2016-11-22 21:18 ` [PATCH v2 0/3] More Makefile cleanups Simon Marchi
  3 siblings, 0 replies; 6+ messages in thread
From: Simon Marchi @ 2016-11-19  4:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

Mostly some whitespace changes to make things a bit more consistent.

gdb/ChangeLog:

	* Makefile.in: Fix whitespace formatting.

gdb/gdbserver/ChangeLog:

	* Makefile.in: Fix whitespace formatting.
---
 gdb/Makefile.in           | 71 +++++++++++++++++++++++------------------------
 gdb/gdbserver/Makefile.in | 24 ++++++++--------
 2 files changed, 47 insertions(+), 48 deletions(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 45dfb38..ad21446 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -103,9 +103,9 @@ CATALOGS = @CATALOGS@
 # -traditional flag.  Otherwise the ioctl calls in inflow.c
 # will be incorrectly compiled.  The "fixincludes" script in the gcc
 # distribution will fix your include files up.
-CC=@CC@
-CXX=@CXX@
-CXX_DIALECT= @CXX_DIALECT@
+CC = @CC@
+CXX = @CXX@
+CXX_DIALECT = @CXX_DIALECT@
 
 # Dependency tracking information.
 DEPMODE = @CCDEPMODE@
@@ -124,7 +124,7 @@ srcdir = @srcdir@
 VPATH = @srcdir@
 top_srcdir = @top_srcdir@
 
-YACC=@YACC@
+YACC = @YACC@
 
 # This is used to rebuild ada-lex.c from ada-lex.l.  If the program is
 # not defined, but ada-lex.c is present, compilation will continue,
@@ -144,13 +144,13 @@ MAKEHTMLFLAGS =
 
 # Set this up with gcc if you have gnu ld and the loader will print out
 # line numbers for undefined references.
-#CC_LD=g++ -static
-CC_LD=$(CXX) $(CXX_DIALECT)
+#CC_LD = g++ -static
+CC_LD = $(CXX) $(CXX_DIALECT)
 
 # Where is our "include" directory?  Typically $(srcdir)/../include.
 # This is essentially the header file directory for the library
 # routines in libiberty.
-INCLUDE_DIR =  $(srcdir)/../include
+INCLUDE_DIR = $(srcdir)/../include
 INCLUDE_CFLAGS = -I$(INCLUDE_DIR)
 
 # Where is the "-liberty" library?  Typically in ../libiberty.
@@ -253,8 +253,8 @@ SUBDIR_CLI_SRCS = \
 	cli/cli-utils.c
 
 SUBDIR_CLI_DEPS =
-SUBDIR_CLI_LDFLAGS=
-SUBDIR_CLI_CFLAGS=
+SUBDIR_CLI_LDFLAGS =
+SUBDIR_CLI_CFLAGS =
 
 #
 # MI sub directory definitons
@@ -298,13 +298,12 @@ SUBDIR_MI_SRCS = \
 	mi/mi-symbol-cmds.c
 
 SUBDIR_MI_DEPS =
-SUBDIR_MI_LDFLAGS=
-SUBDIR_MI_CFLAGS=
+SUBDIR_MI_LDFLAGS =
+SUBDIR_MI_CFLAGS =
 
 #
 # TUI sub directory definitions
 #
-
 SUBDIR_TUI_OBS = \
 	tui.o \
 	tui-command.o \
@@ -344,9 +343,8 @@ SUBDIR_TUI_SRCS = \
 	tui/tui-winsource.c
 
 SUBDIR_TUI_DEPS =
-SUBDIR_TUI_LDFLAGS=
-SUBDIR_TUI_CFLAGS= \
-	-DTUI=1
+SUBDIR_TUI_LDFLAGS =
+SUBDIR_TUI_CFLAGS = -DTUI=1
 
 #
 # GCC Compile support sub-directory definitions
@@ -371,8 +369,9 @@ SUBDIR_GCC_COMPILE_SRCS = \
 	compile/compile-object-run.c \
 	compile/compile-object-run.h
 
+#
 # Guile sub directory definitons for guile support.
-
+#
 SUBDIR_GUILE_OBS = \
 	guile.o \
 	scm-arch.o \
@@ -428,8 +427,8 @@ SUBDIR_GUILE_SRCS = \
 	guile/scm-value.c
 
 SUBDIR_GUILE_DEPS =
-SUBDIR_GUILE_LDFLAGS=
-SUBDIR_GUILE_CFLAGS=
+SUBDIR_GUILE_LDFLAGS =
+SUBDIR_GUILE_CFLAGS =
 
 #
 # python sub directory definitons
@@ -515,8 +514,8 @@ SUBDIR_PYTHON_SRCS = \
 	python/python.c
 
 SUBDIR_PYTHON_DEPS =
-SUBDIR_PYTHON_LDFLAGS=
-SUBDIR_PYTHON_CFLAGS=
+SUBDIR_PYTHON_LDFLAGS =
+SUBDIR_PYTHON_CFLAGS =
 
 # Opcodes currently live in one of two places.  Either they are in the
 # opcode library, typically ../opcodes, or they are in a header file
@@ -556,7 +555,7 @@ WIN32LDAPP = @WIN32LDAPP@
 
 LIBGUI = @LIBGUI@
 GUI_CFLAGS_X = @GUI_CFLAGS_X@
-IDE_CFLAGS=$(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
+IDE_CFLAGSv = $(GUI_CFLAGS_X) $(IDE_CFLAGS_X)
 
 ALL_TCL_CFLAGS = $(TCL_CFLAGS) $(TK_CFLAGS)
 
@@ -593,16 +592,16 @@ SUBDIR_GDBTK_SRCS = \
 	gdbtk/generic/gdbtk-wrapper.c
 
 SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS)
-SUBDIR_GDBTK_LDFLAGS=
-SUBDIR_GDBTK_CFLAGS= -DGDBTK
+SUBDIR_GDBTK_LDFLAGS =
+SUBDIR_GDBTK_CFLAGS = -DGDBTK
 
-CONFIG_OBS= @CONFIG_OBS@
-CONFIG_SRCS= @CONFIG_SRCS@
-CONFIG_DEPS= @CONFIG_DEPS@
+CONFIG_OBS = @CONFIG_OBS@
+CONFIG_SRCS = @CONFIG_SRCS@
+CONFIG_DEPS = @CONFIG_DEPS@
 CONFIG_LDFLAGS = @CONFIG_LDFLAGS@
-ENABLE_CFLAGS= @ENABLE_CFLAGS@
-CONFIG_ALL= @CONFIG_ALL@
-CONFIG_CLEAN= @CONFIG_CLEAN@
+ENABLE_CFLAGS = @ENABLE_CFLAGS@
+CONFIG_ALL = @CONFIG_ALL@
+CONFIG_CLEAN = @CONFIG_CLEAN@
 CONFIG_INSTALL = @CONFIG_INSTALL@
 CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
 HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
@@ -674,15 +673,15 @@ CDEPS = $(XM_CDEPS) $(NAT_CDEPS) $(SIM) $(BFD) $(READLINE_DEPS) \
 ADD_FILES = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
 ADD_DEPS = $(XM_ADD_FILES) $(TM_ADD_FILES) $(NAT_ADD_FILES)
 
-DIST=gdb
+DIST = gdb
 
-LINT=/usr/5bin/lint
-LINTFLAGS= $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
+LINT = /usr/5bin/lint
+LINTFLAGS = $(GDB_CFLAGS) $(OPCODES_CFLAGS) $(READLINE_CFLAGS) \
 	$(BFD_CFLAGS) $(INCLUDE_CFLAGS) \
 	$(INTL_CFLAGS)
 
 RUNTEST = runtest
-RUNTESTFLAGS=
+RUNTESTFLAGS =
 
 # XML files to build in to GDB.
 XMLFILES = \
@@ -1841,7 +1840,7 @@ generated_files = \
 	$(NAT_GENERATED_FILES)
 
 # Flags needed to compile Python code
-PYTHON_CFLAGS=@PYTHON_CFLAGS@
+PYTHON_CFLAGS = @PYTHON_CFLAGS@
 
 all: gdb$(EXEEXT) $(CONFIG_ALL)
 	@$(MAKE) $(FLAGS_TO_PASS) DO=all "DODIRS=`echo $(SUBDIRS) | sed 's/testsuite//'`" subdir_do
@@ -2164,7 +2163,7 @@ init.c: $(INIT_FILES)
 # against that.
 #
 # init.o is very important.  It pulls in the rest of GDB.
-LIBGDB_OBS= $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
+LIBGDB_OBS = $(COMMON_OBS) $(TSOBS) $(ADD_FILES) init.o
 libgdb.a: $(LIBGDB_OBS)
 	-rm -f libgdb.a
 	$(AR) q libgdb.a $(LIBGDB_OBS)
@@ -2424,7 +2423,7 @@ force_update:
 # GNU Make 3.63 has a different problem: it keeps tacking command line
 # overrides onto the definition of $(MAKE).  This variable setting
 # will remove them.
-MAKEOVERRIDES=
+MAKEOVERRIDES =
 
 ALLDEPFILES = \
 	aarch64-linux-nat.c \
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index 70e2dce..31649be 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -54,7 +54,7 @@ RANLIB = @RANLIB@
 
 CC = @CC@
 CXX = @CXX@
-CXX_DIALECT= @CXX_DIALECT@
+CXX_DIALECT = @CXX_DIALECT@
 AR = @AR@
 AR_FLAGS = rc
 
@@ -73,8 +73,8 @@ POSTCOMPILE = @true
 # Directory containing source files.  Don't clean up the spacing,
 # this exact string is matched for by the "configure" script.
 srcdir = @srcdir@
-abs_top_srcdir=@abs_top_srcdir@
-abs_srcdir=@abs_srcdir@
+abs_top_srcdir = @abs_top_srcdir@
+abs_srcdir = @abs_srcdir@
 VPATH = @srcdir@
 
 # It is also possible that you will need to add -I/usr/include/sys to the
@@ -83,11 +83,11 @@ VPATH = @srcdir@
 
 # Set this up with gcc if you have gnu ld and the loader will print out
 # line numbers for undefinded refs.
-#CC_LD=g++ -static
-CC_LD=$(CXX) $(CXX_DIALECT)
+#CC_LD = g++ -static
+CC_LD = $(CXX) $(CXX_DIALECT)
 
 # Where is the "include" directory?  Traditionally ../include or ./include
-INCLUDE_DIR =  ${srcdir}/../../include
+INCLUDE_DIR = ${srcdir}/../../include
 INCLUDE_DEP = $$(INCLUDE_DIR)
 
 LIBIBERTY_BUILDDIR = build-libiberty-gdbserver
@@ -137,10 +137,10 @@ CXXFLAGS = @CXXFLAGS@
 CPPFLAGS = @CPPFLAGS@
 
 # INTERNAL_CFLAGS is the aggregate of all other *CFLAGS macros.
-INTERNAL_CFLAGS_BASE =  ${CXXFLAGS} ${GLOBAL_CFLAGS} \
+INTERNAL_CFLAGS_BASE = ${CXXFLAGS} ${GLOBAL_CFLAGS} \
 	${PROFILE_CFLAGS} ${INCLUDE_CFLAGS} ${CPPFLAGS}
-INTERNAL_WARN_CFLAGS =  ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
-INTERNAL_CFLAGS =  ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
+INTERNAL_WARN_CFLAGS = ${INTERNAL_CFLAGS_BASE} $(WARN_CFLAGS)
+INTERNAL_CFLAGS = ${INTERNAL_WARN_CFLAGS} $(WERROR_CFLAGS) -DGDBSERVER
 
 # LDFLAGS is specifically reserved for setting from the command line
 # when running make.
@@ -386,12 +386,12 @@ gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
 	$(CC_LD) $(INTERNAL_CFLAGS) $(INTERNAL_LDFLAGS) -o gdbreplay$(EXEEXT) $(GDBREPLAY_OBS) \
 	  $(XM_CLIBS) $(LIBGNU) $(LIBIBERTY)
 
-IPA_OBJS=ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
+IPA_OBJS = ax-ipa.o tracepoint-ipa.o format-ipa.o utils-ipa.o \
 	regcache-ipa.o remote-utils-ipa.o common-utils-ipa.o \
 	tdesc-ipa.o print-utils-ipa.o rsp-low-ipa.o errors-ipa.o \
 	${IPA_DEPFILES}
 
-IPA_LIB=libinproctrace.so
+IPA_LIB = libinproctrace.so
 
 $(IPA_LIB): $(IPA_OBJS) ${ADD_DEPS} ${CDEPS}
 	rm -f $(IPA_LIB)
@@ -526,7 +526,7 @@ stamp-xml: $(XML_DIR)/feature_to_c.sh Makefile $(XML_FILES)
 # GNU Make 3.63 has a different problem: it keeps tacking command line
 # overrides onto the definition of $(MAKE).  This variable setting
 # will remove them.
-MAKEOVERRIDES=
+MAKEOVERRIDES =
 
 regdat_sh = $(srcdir)/../regformats/regdat.sh
 
-- 
2.10.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 2/3] Normalize names of some source files
  2016-11-19  4:08 [PATCH v2 0/3] More Makefile cleanups Simon Marchi
  2016-11-19  4:08 ` [PATCH v2 1/3] Makefiles: Flatten and sort file lists Simon Marchi
@ 2016-11-19  4:08 ` Simon Marchi
  2016-11-19  4:08 ` [PATCH v2 3/3] Minor formatting fixups in Makefiles Simon Marchi
  2016-11-22 21:18 ` [PATCH v2 0/3] More Makefile cleanups Simon Marchi
  3 siblings, 0 replies; 6+ messages in thread
From: Simon Marchi @ 2016-11-19  4:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

Most tdep/nat files are named:

  <cpu>-<os>-tdep.c
  <cpu>-<os>-nat.c

A few files do not respect this scheme.  This patch renames them so that
they are consistent with the rest of the files.  It builds fine with
--enable-targets=all, but that doesn't test the nat files.  I can only
hope that my grep skill is good enough.

New in v2:

 - Fix some typos.

gdb/ChangeLog:

	* Makefile.in (ALL_64_TARGET_OBS, ALL_TARGET_OBS,
	HFILES_NO_SRCDIR, ALLDEPFILES): Rename files.
	* alphabsd-nat.c: Rename to ...
	* alpha-bsd-nat.c: ... this, adjust include.
	* alphabsd-tdep.c: Rename to ...
	* alpha-bsd-tdep.c: ... this, adjust include.
	* alphabsd-tdep.h: Rename to ...
	* alpha-bsd-tdep.h: ... this, adjust include barrier and comment.
	* alphafbsd-tdep.c: Rename to ...
	* alpha-fbsd-tdep.c: ... this.
	* alphanbsd-tdep.c: Rename to ...
	* alpha-nbsd-tdep.c: ... this, adjust include.
	* alphaobsd-tdep.c: Rename to ...
	* alpha-obsd-tdep.c: ... this, adjust include.
	* amd64bsd-nat.c: Rename to ...
	* amd64-bsd-nat.c: ... this, adjust include.
	* amd64fbsd-nat.c: Rename to ...
	* amd64-fbsd-nat.c: ... this, adjust include.
	* amd64fbsd-tdep.c: Rename to ...
	* amd64-fbsd-tdep.c: ... this, adjust include.
	* amd64nbsd-nat.c: Rename to ...
	* amd64-nbsd-nat.c: ... this.
	* amd64nbsd-tdep.c: Rename to ...
	* amd64-nbsd-tdep.c: ... this.
	* amd64obsd-nat.c: Rename to ...
	* amd64-obsd-nat.c: ... this.
	* amd64obsd-tdep.c: Rename to ...
	* amd64-obsd-tdep.c: ... this.
	* amd64-tdep.h: Update comments.
	* armbsd-tdep.c: Rename to ...
	* arm-bsd-tdep.c: ... this.
	* armnbsd-nat.c: Rename to ...
	* arm-nbsd-nat.c: ... this.
	* armnbsd-tdep.c: Rename to ...
	* arm-nbsd-tdep.c: ... this.
	* armobsd-tdep.c: Rename to ...
	* arm-obsd-tdep.c: ... this.
	* arm-tdep.h: Update comments.
	* hppabsd-tdep.c: Rename to ...
	* hppa-bsd-tdep.c: ... this, adjust include.
	* hppabsd-tdep.h: Rename to ...
	* hppa-bsd-tdep.h: ... this, adjust include barrier and comment.
	* hppanbsd-nat.c: Rename to ...
	* hppa-nbsd-nat.c: ... this.
	* hppanbsd-tdep.c: Rename to ...
	* hppa-nbsd-tdep.c: ... this, adjust include.
	* hppaobsd-nat.c: Rename to ...
	* hppa-obsd-nat.c: ... this.
	* hppaobsd-tdep.c: Rename to ...
	* hppa-obsd-tdep.c: ... this, adjust include.
	* i386bsd-nat.c: Rename to ...
	* i386-bsd-nat.c: ... this, adjust include.
	* i386bsd-nat.h: Rename to ...
	* i386-bsd-nat.h: ... this, adjust include barrier and comment.
	* i386bsd-tdep.c: Rename to ...
	* i386-bsd-tdep.c: ... this.
	* i386fbsd-nat.c: Rename to ...
	* i386-fbsd-nat.c: ... this, adjust include.
	* i386fbsd-tdep.c: Rename to ...
	* i386-fbsd-tdep.c: ... this, adjust include.
	* i386fbsd-tdep.h: Rename to ...
	* i386-fbsd-tdep.h: ... this, adjust include barrier and comment.
	* i386gnu-nat.c: Rename to ...
	* i386-gnu-nat.c: ... this.
	* i386gnu-tdep.c: Rename to ...
	* i386-gnu-tdep.c: ... this.
	* i386nbsd-nat.c: Rename to ...
	* i386-nbsd-nat.c: ... this, adjust include.
	* i386nbsd-tdep.c: Rename to ...
	* i386-nbsd-tdep.c: ... this.
	* i386obsd-nat.c: Rename to ...
	* i386-obsd-nat.c: ... this, adjust include.
	* i386obsd-tdep.c: Rename to ...
	* i386-obsd-tdep.c: ... this.
	* i386v4-nat.c: Rename to ...
	* i386-v4-nat.c: ... this.
	* i386-tdep.h: Update comments.
	* m68k-tdep.h: Update comments.
	* m68kbsd-nat.c: Rename to ...
	* m68k-bsd-nat.c: ... this.
	* m68kbsd-tdep.c: Rename to ...
	* m68k-bsd-tdep.c: ... this.
	* m68klinux-nat.c: Rename to ...
	* m68k-linux-nat.c: ... this.
	* m68klinux-tdep.c: Rename to ...
	* m68k-linux-tdep.c: ... this.
	* m88kbsd-nat.c: Rename to ...
	* m88k-bsd-nat.c: ... this.
	* mipsnbsd-nat.c: Rename to ...
	* mips-nbsd-nat.c: ... this, adjust include.
	* mipsnbsd-tdep.c: Rename to ...
	* mips-nbsd-tdep.c: ... this, adjust include.
	* mipsnbsd-tdep.h: Rename to ...
	* mips-nbsd-tdep.h: ... this, adjust include barrier and comment.
	* mips64obsd-nat.c: Rename to ...
	* mips64-obsd-nat.c: ... this.
	* mips64obsd-tdep.c: Rename to ...
	* mips64-obsd-tdep.c: ... this.
	* ppcfbsd-nat.c: Rename to ...
	* ppc-fbsd-nat.c: ... this, adjust include.
	* ppcfbsd-tdep.c: Rename to ...
	* ppc-fbsd-tdep.c: ... this, adjust include.
	* ppcfbsd-tdep.h: Rename to ...
	* ppc-fbsd-tdep.h: ... this, adjust include barrier and comment.
	* ppcnbsd-nat.c: Rename to ...
	* ppc-nbsd-nat.c: ... this, adjust include.
	* ppcnbsd-tdep.c: Rename to ...
	* ppc-nbsd-tdep.c: ... this, adjust include.
	* ppcnbsd-tdep.h: Rename to ...
	* ppc-nbsd-tdep.h: ... this, adjust include barrier and comment.
	* ppcobsd-nat.c: Rename to ...
	* ppc-obsd-nat.c: ... this, adjust include.
	* ppcobsd-tdep.c: Rename to ...
	* ppc-obsd-tdep.c: ... this, adjust include.
	* ppcobsd-tdep.h: Rename to ...
	* ppc-obsd-tdep.h: ... this, adjust include barrier and comment.
	* shnbsd-nat.c: Rename to ...
	* sh-nbsd-nat.c: ... this.
	* shnbsd-tdep.c: Rename to ...
	* sh-nbsd-tdep.c: ... this.
	* sparcnbsd-nat.c: Rename to ...
	* sparc-nbsd-nat.c: ... this.
	* sparcnbsd-tdep.c: Rename to ...
	* sparc-nbsd-tdep.c: ... this.
	* sparcobsd-tdep.c: Rename to ...
	* sparc-obsd-tdep.c: ... this.
	* sparc64fbsd-nat.c: Rename to ...
	* sparc64-fbsd-nat.c: ... this.
	* sparc64fbsd-tdep.c: Rename to ...
	* sparc64-fbsd-tdep.c: ... this.
	* sparc64nbsd-nat.c: Rename to ...
	* sparc64-nbsd-nat.c: ... this.
	* sparc64nbsd-tdep.c: Rename to ...
	* sparc64-nbsd-tdep.c: ... this.
	* sparc64obsd-nat.c: Rename to ...
	* sparc64-obsd-nat.c: ... this.
	* sparc64obsd-tdep.c: Rename to ...
	* sparc64-obsd-tdep.c: ... this.
	* sparc64-tdep.h: Update comments.
	* vaxbsd-nat.c: Rename to ...
	* vax-bsd-nat.c: ... this.
	* vaxnbsd-tdep.c: Rename to ...
	* vax-nbsd-tdep.c: ... this.
	* vaxobsd-tdep.c: Rename to ...
	* vax-obsd-tdep.c: ... this.
	* x86bsd-nat.h: Rename to ...
	* x86-bsd-nat.h: ... this, adjust include barrier and comment.
	* x86bsd-nat.c: Rename to ...
	* x86-bsd-nat.c: ... this, adjust include.
	* configure.tgt: Update renamed files.
	* config/alpha/fbsd.mh: Update renamed files.
	* config/alpha/nbsd.mh: Update renamed files.
	* config/arm/nbsdelf.mh: Update renamed files.
	* config/djgpp/fnchange.lst: Update renamed files.
	* config/i386/fbsd.mh: Update renamed files.
	* config/i386/fbsd64.mh: Update renamed files.
	* config/i386/i386gnu.mh: Update renamed files.
	* config/i386/i386sol2.mh: Update renamed files.
	* config/i386/nbsd64.mh: Update renamed files.
	* config/i386/nbsdelf.mh: Update renamed files.
	* config/i386/obsd.mh: Update renamed files.
	* config/i386/obsd64.mh: Update renamed files.
	* config/i386/sol2-64.mh: Update renamed files.
	* config/m68k/linux.mh: Update renamed files.
	* config/m68k/nbsdelf.mh: Update renamed files.
	* config/m68k/obsd.mh: Update renamed files.
	* config/m88k/obsd.mh: Update renamed files.
	* config/mips/nbsd.mh: Update renamed files.
	* config/mips/obsd64.mh: Update renamed files.
	* config/pa/nbsd.mh: Update renamed files.
	* config/pa/obsd.mh: Update renamed files.
	* config/powerpc/fbsd.mh: Update renamed files.
	* config/powerpc/nbsd.mh: Update renamed files.
	* config/powerpc/obsd.mh: Update renamed files.
	* config/sh/nbsd.mh: Update renamed files.
	* config/sparc/fbsd.mh: Update renamed files.
	* config/sparc/nbsd64.mh: Update renamed files.
	* config/sparc/nbsdelf.mh: Update renamed files.
	* config/sparc/obsd64.mh: Update renamed files.
	* config/vax/nbsdelf.mh: Update renamed files.
	* config/vax/obsd.mh: Update renamed files.
---
 gdb/Makefile.in                                 | 204 ++++++++++++------------
 gdb/{alphabsd-nat.c => alpha-bsd-nat.c}         |   2 +-
 gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c}       |   2 +-
 gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h}       |   8 +-
 gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c}     |   0
 gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c}     |   2 +-
 gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c}     |   2 +-
 gdb/{amd64bsd-nat.c => amd64-bsd-nat.c}         |   2 +-
 gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c}       |   4 +-
 gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c}     |   2 +-
 gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c}       |   0
 gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c}     |   0
 gdb/{amd64obsd-nat.c => amd64-obsd-nat.c}       |   0
 gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c}     |   0
 gdb/amd64-tdep.h                                |   6 +-
 gdb/{armbsd-tdep.c => arm-bsd-tdep.c}           |   0
 gdb/{armnbsd-nat.c => arm-nbsd-nat.c}           |   0
 gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c}         |   0
 gdb/{armobsd-tdep.c => arm-obsd-tdep.c}         |   0
 gdb/arm-tdep.h                                  |   2 +-
 gdb/config/alpha/fbsd.mh                        |   2 +-
 gdb/config/alpha/nbsd.mh                        |   2 +-
 gdb/config/arm/nbsdelf.mh                       |   2 +-
 gdb/config/djgpp/fnchange.lst                   |  96 +++++------
 gdb/config/i386/fbsd.mh                         |   4 +-
 gdb/config/i386/fbsd64.mh                       |   4 +-
 gdb/config/i386/i386gnu.mh                      |   2 +-
 gdb/config/i386/i386sol2.mh                     |   2 +-
 gdb/config/i386/nbsd64.mh                       |   2 +-
 gdb/config/i386/nbsdelf.mh                      |   2 +-
 gdb/config/i386/obsd.mh                         |   2 +-
 gdb/config/i386/obsd64.mh                       |   2 +-
 gdb/config/i386/sol2-64.mh                      |   2 +-
 gdb/config/m68k/linux.mh                        |   2 +-
 gdb/config/m68k/nbsdelf.mh                      |   2 +-
 gdb/config/m68k/obsd.mh                         |   2 +-
 gdb/config/m88k/obsd.mh                         |   2 +-
 gdb/config/mips/nbsd.mh                         |   2 +-
 gdb/config/mips/obsd64.mh                       |   2 +-
 gdb/config/pa/nbsd.mh                           |   2 +-
 gdb/config/pa/obsd.mh                           |   2 +-
 gdb/config/powerpc/fbsd.mh                      |   2 +-
 gdb/config/powerpc/nbsd.mh                      |   2 +-
 gdb/config/powerpc/obsd.mh                      |   2 +-
 gdb/config/sh/nbsd.mh                           |   2 +-
 gdb/config/sparc/fbsd.mh                        |   2 +-
 gdb/config/sparc/nbsd64.mh                      |   2 +-
 gdb/config/sparc/nbsdelf.mh                     |   2 +-
 gdb/config/sparc/obsd64.mh                      |   2 +-
 gdb/config/vax/nbsdelf.mh                       |   2 +-
 gdb/config/vax/obsd.mh                          |   2 +-
 gdb/configure.tgt                               |  80 +++++-----
 gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c}         |   2 +-
 gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h}         |   6 +-
 gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c}         |   0
 gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c}       |   2 +-
 gdb/{hppaobsd-nat.c => hppa-obsd-nat.c}         |   0
 gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c}       |   2 +-
 gdb/{i386bsd-nat.c => i386-bsd-nat.c}           |   6 +-
 gdb/{i386bsd-nat.h => i386-bsd-nat.h}           |   6 +-
 gdb/{i386bsd-tdep.c => i386-bsd-tdep.c}         |   0
 gdb/{i386fbsd-nat.c => i386-fbsd-nat.c}         |   4 +-
 gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c}       |   2 +-
 gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h}       |   6 +-
 gdb/{i386gnu-nat.c => i386-gnu-nat.c}           |   0
 gdb/{i386gnu-tdep.c => i386-gnu-tdep.c}         |   0
 gdb/{i386nbsd-nat.c => i386-nbsd-nat.c}         |   2 +-
 gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c}       |   0
 gdb/{i386obsd-nat.c => i386-obsd-nat.c}         |   2 +-
 gdb/{i386obsd-tdep.c => i386-obsd-tdep.c}       |   0
 gdb/i386-tdep.h                                 |   2 +-
 gdb/{i386v4-nat.c => i386-v4-nat.c}             |   0
 gdb/{m68kbsd-nat.c => m68k-bsd-nat.c}           |   0
 gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c}         |   0
 gdb/{m68klinux-nat.c => m68k-linux-nat.c}       |   0
 gdb/{m68klinux-tdep.c => m68k-linux-tdep.c}     |   0
 gdb/m68k-tdep.h                                 |   2 +-
 gdb/{m88kbsd-nat.c => m88k-bsd-nat.c}           |   0
 gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c}         |   2 +-
 gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c}       |   2 +-
 gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h}       |   6 +-
 gdb/{mips64obsd-nat.c => mips64-obsd-nat.c}     |   0
 gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c}   |   0
 gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c}           |   2 +-
 gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c}         |   2 +-
 gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h}         |   8 +-
 gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c}           |   2 +-
 gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c}         |   2 +-
 gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h}         |   6 +-
 gdb/{ppcobsd-nat.c => ppc-obsd-nat.c}           |   2 +-
 gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c}         |   2 +-
 gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h}         |   6 +-
 gdb/{shnbsd-nat.c => sh-nbsd-nat.c}             |   0
 gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c}           |   0
 gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c}       |   0
 gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c}     |   0
 gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c}     |   0
 gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c}   |   0
 gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} |   0
 gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c}   |   0
 gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} |   0
 gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c}   |   0
 gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} |   0
 gdb/sparc64-tdep.h                              |   4 +-
 gdb/{vaxbsd-nat.c => vax-bsd-nat.c}             |   0
 gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c}         |   0
 gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c}         |   0
 gdb/{x86bsd-nat.c => x86-bsd-nat.c}             |   2 +-
 gdb/{x86bsd-nat.h => x86-bsd-nat.h}             |   6 +-
 109 files changed, 287 insertions(+), 287 deletions(-)
 rename gdb/{alphabsd-nat.c => alpha-bsd-nat.c} (99%)
 rename gdb/{alphabsd-tdep.c => alpha-bsd-tdep.c} (98%)
 rename gdb/{alphabsd-tdep.h => alpha-bsd-tdep.h} (91%)
 rename gdb/{alphafbsd-tdep.c => alpha-fbsd-tdep.c} (100%)
 rename gdb/{alphanbsd-tdep.c => alpha-nbsd-tdep.c} (99%)
 rename gdb/{alphaobsd-tdep.c => alpha-obsd-tdep.c} (99%)
 rename gdb/{amd64bsd-nat.c => amd64-bsd-nat.c} (99%)
 rename gdb/{amd64fbsd-nat.c => amd64-fbsd-nat.c} (98%)
 rename gdb/{amd64fbsd-tdep.c => amd64-fbsd-tdep.c} (99%)
 rename gdb/{amd64nbsd-nat.c => amd64-nbsd-nat.c} (100%)
 rename gdb/{amd64nbsd-tdep.c => amd64-nbsd-tdep.c} (100%)
 rename gdb/{amd64obsd-nat.c => amd64-obsd-nat.c} (100%)
 rename gdb/{amd64obsd-tdep.c => amd64-obsd-tdep.c} (100%)
 rename gdb/{armbsd-tdep.c => arm-bsd-tdep.c} (100%)
 rename gdb/{armnbsd-nat.c => arm-nbsd-nat.c} (100%)
 rename gdb/{armnbsd-tdep.c => arm-nbsd-tdep.c} (100%)
 rename gdb/{armobsd-tdep.c => arm-obsd-tdep.c} (100%)
 rename gdb/{hppabsd-tdep.c => hppa-bsd-tdep.c} (99%)
 rename gdb/{hppabsd-tdep.h => hppa-bsd-tdep.h} (91%)
 rename gdb/{hppanbsd-nat.c => hppa-nbsd-nat.c} (100%)
 rename gdb/{hppanbsd-tdep.c => hppa-nbsd-tdep.c} (99%)
 rename gdb/{hppaobsd-nat.c => hppa-obsd-nat.c} (100%)
 rename gdb/{hppaobsd-tdep.c => hppa-obsd-tdep.c} (99%)
 rename gdb/{i386bsd-nat.c => i386-bsd-nat.c} (98%)
 rename gdb/{i386bsd-nat.h => i386-bsd-nat.h} (92%)
 rename gdb/{i386bsd-tdep.c => i386-bsd-tdep.c} (100%)
 rename gdb/{i386fbsd-nat.c => i386-fbsd-nat.c} (99%)
 rename gdb/{i386fbsd-tdep.c => i386-fbsd-tdep.c} (99%)
 rename gdb/{i386fbsd-tdep.h => i386-fbsd-tdep.h} (93%)
 rename gdb/{i386gnu-nat.c => i386-gnu-nat.c} (100%)
 rename gdb/{i386gnu-tdep.c => i386-gnu-tdep.c} (100%)
 rename gdb/{i386nbsd-nat.c => i386-nbsd-nat.c} (99%)
 rename gdb/{i386nbsd-tdep.c => i386-nbsd-tdep.c} (100%)
 rename gdb/{i386obsd-nat.c => i386-obsd-nat.c} (99%)
 rename gdb/{i386obsd-tdep.c => i386-obsd-tdep.c} (100%)
 rename gdb/{i386v4-nat.c => i386-v4-nat.c} (100%)
 rename gdb/{m68kbsd-nat.c => m68k-bsd-nat.c} (100%)
 rename gdb/{m68kbsd-tdep.c => m68k-bsd-tdep.c} (100%)
 rename gdb/{m68klinux-nat.c => m68k-linux-nat.c} (100%)
 rename gdb/{m68klinux-tdep.c => m68k-linux-tdep.c} (100%)
 rename gdb/{m88kbsd-nat.c => m88k-bsd-nat.c} (100%)
 rename gdb/{mipsnbsd-nat.c => mips-nbsd-nat.c} (99%)
 rename gdb/{mipsnbsd-tdep.c => mips-nbsd-tdep.c} (99%)
 rename gdb/{mipsnbsd-tdep.h => mips-nbsd-tdep.h} (93%)
 rename gdb/{mips64obsd-nat.c => mips64-obsd-nat.c} (100%)
 rename gdb/{mips64obsd-tdep.c => mips64-obsd-tdep.c} (100%)
 rename gdb/{ppcfbsd-nat.c => ppc-fbsd-nat.c} (99%)
 rename gdb/{ppcfbsd-tdep.c => ppc-fbsd-tdep.c} (99%)
 rename gdb/{ppcfbsd-tdep.h => ppc-fbsd-tdep.h} (89%)
 rename gdb/{ppcnbsd-nat.c => ppc-nbsd-nat.c} (99%)
 rename gdb/{ppcnbsd-tdep.c => ppc-nbsd-tdep.c} (99%)
 rename gdb/{ppcnbsd-tdep.h => ppc-nbsd-tdep.h} (93%)
 rename gdb/{ppcobsd-nat.c => ppc-obsd-nat.c} (99%)
 rename gdb/{ppcobsd-tdep.c => ppc-obsd-tdep.c} (99%)
 rename gdb/{ppcobsd-tdep.h => ppc-obsd-tdep.h} (95%)
 rename gdb/{shnbsd-nat.c => sh-nbsd-nat.c} (100%)
 rename gdb/{shnbsd-tdep.c => sh-nbsd-tdep.c} (100%)
 rename gdb/{sparcnbsd-nat.c => sparc-nbsd-nat.c} (100%)
 rename gdb/{sparcnbsd-tdep.c => sparc-nbsd-tdep.c} (100%)
 rename gdb/{sparcobsd-tdep.c => sparc-obsd-tdep.c} (100%)
 rename gdb/{sparc64fbsd-nat.c => sparc64-fbsd-nat.c} (100%)
 rename gdb/{sparc64fbsd-tdep.c => sparc64-fbsd-tdep.c} (100%)
 rename gdb/{sparc64nbsd-nat.c => sparc64-nbsd-nat.c} (100%)
 rename gdb/{sparc64nbsd-tdep.c => sparc64-nbsd-tdep.c} (100%)
 rename gdb/{sparc64obsd-nat.c => sparc64-obsd-nat.c} (100%)
 rename gdb/{sparc64obsd-tdep.c => sparc64-obsd-tdep.c} (100%)
 rename gdb/{vaxbsd-nat.c => vax-bsd-nat.c} (100%)
 rename gdb/{vaxnbsd-tdep.c => vax-nbsd-tdep.c} (100%)
 rename gdb/{vaxobsd-tdep.c => vax-obsd-tdep.c} (100%)
 rename gdb/{x86bsd-nat.c => x86-bsd-nat.c} (99%)
 rename gdb/{x86bsd-nat.h => x86-bsd-nat.h} (93%)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index ac6d3ec..45dfb38 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -732,46 +732,46 @@ ALL_64_TARGET_OBS = \
 	aarch64-linux-tdep.o \
 	aarch64-newlib-tdep.o \
 	aarch64-tdep.o \
+	alpha-bsd-tdep.o \
+	alpha-fbsd-tdep.o \
 	alpha-linux-tdep.o \
 	alpha-mdebug-tdep.o \
+	alpha-nbsd-tdep.o \
+	alpha-obsd-tdep.o \
 	alpha-tdep.o \
-	alphabsd-tdep.o \
-	alphafbsd-tdep.o \
-	alphanbsd-tdep.o \
-	alphaobsd-tdep.o \
 	amd64-darwin-tdep.o \
 	amd64-dicos-tdep.o \
+	amd64-fbsd-tdep.o \
 	amd64-linux-tdep.o \
+	amd64-nbsd-tdep.o \
+	amd64-obsd-tdep.o \
 	amd64-sol2-tdep.o \
 	amd64-tdep.o \
 	amd64-windows-tdep.o \
-	amd64fbsd-tdep.o \
-	amd64nbsd-tdep.o \
-	amd64obsd-tdep.o \
 	ia64-linux-tdep.o \
 	ia64-tdep.o \
 	ia64-vms-tdep.o \
-	mips64obsd-tdep.o \
+	mips64-obsd-tdep.o \
+	sparc64-fbsd-tdep.o \
 	sparc64-linux-tdep.o \
+	sparc64-nbsd-tdep.o \
+	sparc64-obsd-tdep.o \
 	sparc64-sol2-tdep.o \
-	sparc64-tdep.o \
-	sparc64fbsd-tdep.o \
-	sparc64nbsd-tdep.o \
-	sparc64obsd-tdep.o
+	sparc64-tdep.o
 
 # All other target-dependent objects files (used with --enable-targets=all).
 ALL_TARGET_OBS = \
 	arc-tdep.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 \
 	arm-symbian-tdep.o \
 	arm-tdep.o \
 	arm-wince-tdep.o \
-	armbsd-tdep.o \
-	armnbsd-tdep.o \
-	armobsd-tdep.o \
 	avr-tdep.o \
 	bfin-linux-tdep.o \
 	bfin-tdep.o \
@@ -785,23 +785,23 @@ ALL_TARGET_OBS = \
 	ft32-tdep.o \
 	glibc-tdep.o \
 	h8300-tdep.o \
+	hppa-bsd-tdep.o \
 	hppa-linux-tdep.o \
+	hppa-nbsd-tdep.o \
+	hppa-obsd-tdep.o \
 	hppa-tdep.o \
-	hppabsd-tdep.o \
-	hppanbsd-tdep.o \
-	hppaobsd-tdep.o \
+	i386-bsd-tdep.o \
 	i386-cygwin-tdep.o \
 	i386-darwin-tdep.o \
 	i386-dicos-tdep.o \
+	i386-fbsd-tdep.o \
+	i386-gnu-tdep.o \
 	i386-linux-tdep.o \
+	i386-nbsd-tdep.o \
 	i386-nto-tdep.o \
+	i386-obsd-tdep.o \
 	i386-sol2-tdep.o \
 	i386-tdep.o \
-	i386bsd-tdep.o \
-	i386fbsd-tdep.o \
-	i386gnu-tdep.o \
-	i386nbsd-tdep.o \
-	i386obsd-tdep.o \
 	i387-tdep.o \
 	iq2000-tdep.o \
 	linux-record.o \
@@ -811,17 +811,17 @@ ALL_TARGET_OBS = \
 	m32r-linux-tdep.o \
 	m32r-tdep.o \
 	m68hc11-tdep.o \
+	m68k-bsd-tdep.o \
+	m68k-linux-tdep.o \
 	m68k-tdep.o \
-	m68kbsd-tdep.o \
-	m68klinux-tdep.o \
 	m88k-tdep.o \
 	mep-tdep.o \
 	microblaze-linux-tdep.o \
 	microblaze-tdep.o \
 	mips-linux-tdep.o \
+	mips-nbsd-tdep.o \
 	mips-sde-tdep.o \
 	mips-tdep.o \
-	mipsnbsd-tdep.o \
 	mn10300-linux-tdep.o \
 	mn10300-tdep.o \
 	moxie-tdep.o \
@@ -833,13 +833,13 @@ ALL_TARGET_OBS = \
 	nios2-tdep.o \
 	nto-tdep.o \
 	obsd-tdep.o \
+	ppc-fbsd-tdep.o \
 	ppc-linux-tdep.o \
+	ppc-nbsd-tdep.o \
+	ppc-obsd-tdep.o \
 	ppc-ravenscar-thread.o \
 	ppc-sysv-tdep.o \
 	ppc64-tdep.o \
-	ppcfbsd-tdep.o \
-	ppcnbsd-tdep.o \
-	ppcobsd-tdep.o \
 	ravenscar-thread.o \
 	rl78-tdep.o \
 	rs6000-aix-tdep.o \
@@ -849,9 +849,9 @@ ALL_TARGET_OBS = \
 	s390-linux-tdep.o \
 	score-tdep.o \
 	sh-linux-tdep.o \
+	sh-nbsd-tdep.o \
 	sh-tdep.o \
 	sh64-tdep.o \
-	shnbsd-tdep.o \
 	sol2-tdep.o \
 	solib-aix.o \
 	solib-darwin.o \
@@ -860,11 +860,11 @@ ALL_TARGET_OBS = \
 	solib-spu.o \
 	solib-svr4.o \
 	sparc-linux-tdep.o \
+	sparc-nbsd-tdep.o \
+	sparc-obsd-tdep.o \
 	sparc-ravenscar-thread.o \
 	sparc-sol2-tdep.o \
 	sparc-tdep.o \
-	sparcnbsd-tdep.o \
-	sparcobsd-tdep.o \
 	spu-multiarch.o \
 	spu-tdep.o \
 	symfile-mem.o \
@@ -873,9 +873,9 @@ ALL_TARGET_OBS = \
 	tilegx-linux-tdep.o \
 	tilegx-tdep.o \
 	v850-tdep.o \
+	vax-nbsd-tdep.o \
+	vax-obsd-tdep.o \
 	vax-tdep.o \
-	vaxnbsd-tdep.o \
-	vaxobsd-tdep.o \
 	windows-tdep.o \
 	xcoffread.o \
 	xstormy16-tdep.o \
@@ -1222,8 +1222,8 @@ HFILES_NO_SRCDIR = \
 	aarch64-tdep.h \
 	ada-lang.h \
 	addrmap.h \
+	alpha-bsd-tdep.h \
 	alpha-tdep.h \
-	alphabsd-tdep.h \
 	amd64-darwin-tdep.h \
 	amd64-linux-tdep.h \
 	amd64-nat.h \
@@ -1312,14 +1312,14 @@ HFILES_NO_SRCDIR = \
 	gnu-nat.h \
 	go-lang.h \
 	gregset.h \
+	hppa-bsd-tdep.h \
 	hppa-linux-offsets.h \
 	hppa-tdep.h \
-	hppabsd-tdep.h \
+	i386-bsd-nat.h \
 	i386-darwin-tdep.h \
 	i386-linux-nat.h \
 	i386-linux-tdep.h \
 	i386-tdep.h \
-	i386bsd-nat.h \
 	i387-tdep.h \
 	ia64-libunwind-tdep.h \
 	ia64-tdep.h \
@@ -1353,8 +1353,8 @@ HFILES_NO_SRCDIR = \
 	memrange.h \
 	microblaze-tdep.h \
 	mips-linux-tdep.h \
+	mips-nbsd-tdep.h \
 	mips-tdep.h \
-	mipsnbsd-tdep.h \
 	mn10300-tdep.h \
 	moxie-tdep.h \
 	nbsd-nat.h \
@@ -1370,13 +1370,13 @@ HFILES_NO_SRCDIR = \
 	osdata.h \
 	p-lang.h \
 	parser-defs.h \
+	ppc-fbsd-tdep.h \
 	ppc-linux-tdep.h \
+	ppc-nbsd-tdep.h \
+	ppc-obsd-tdep.h \
 	ppc-ravenscar-thread.h \
 	ppc-tdep.h \
 	ppc64-tdep.h \
-	ppcfbsd-tdep.h \
-	ppcnbsd-tdep.h \
-	ppcobsd-tdep.h \
 	probe.h \
 	proc-utils.h \
 	procfs.h \
@@ -1448,9 +1448,9 @@ HFILES_NO_SRCDIR = \
 	vax-tdep.h \
 	windows-nat.h \
 	windows-tdep.h \
+	x86-bsd-nat.h \
 	x86-linux-nat.h \
 	x86-nat.h \
-	x86bsd-nat.h \
 	xcoffread.h \
 	xml-support.h \
 	xml-syscall.h \
@@ -2432,41 +2432,41 @@ ALLDEPFILES = \
 	aarch64-newlib-tdep.c \
 	aarch64-tdep.c \
 	aix-thread.c \
+	alpha-bsd-nat.c \
+	alpha-bsd-tdep.c \
+	alpha-fbsd-tdep.c \
 	alpha-linux-nat.c \
 	alpha-linux-tdep.c \
 	alpha-mdebug-tdep.c \
+	alpha-nbsd-tdep.c \
+	alpha-obsd-tdep.c \
 	alpha-tdep.c \
-	alphabsd-nat.c \
-	alphabsd-tdep.c \
-	alphafbsd-tdep.c \
-	alphanbsd-tdep.c \
-	alphaobsd-tdep.c \
+	amd64-bsd-nat.c \
 	amd64-darwin-tdep.c \
 	amd64-dicos-tdep.c \
+	amd64-fbsd-nat.c \
+	amd64-fbsd-tdep.c \
 	amd64-linux-nat.c \
 	amd64-linux-tdep.c \
 	amd64-nat.c \
+	amd64-nbsd-nat.c \
+	amd64-nbsd-tdep.c \
+	amd64-obsd-nat.c \
+	amd64-obsd-tdep.c \
 	amd64-sol2-tdep.c \
 	amd64-tdep.c \
-	amd64bsd-nat.c \
-	amd64fbsd-nat.c \
-	amd64fbsd-tdep.c \
-	amd64nbsd-nat.c \
-	amd64nbsd-tdep.c \
-	amd64obsd-nat.c \
-	amd64obsd-tdep.c \
 	arc-tdep.c \
 	arm.c \
+	arm-bsd-tdep.c \
 	arm-get-next-pcs.c \
 	arm-linux.c \
 	arm-linux-nat.c \
 	arm-linux-tdep.c \
+	arm-nbsd-nat.c \
+	arm-nbsd-tdep.c \
+	arm-obsd-tdep.c \
 	arm-symbian-tdep.c \
 	arm-tdep.c \
-	armbsd-tdep.c \
-	armnbsd-nat.c \
-	armnbsd-tdep.c \
-	armobsd-tdep.c \
 	avr-tdep.c \
 	bfin-linux-tdep.c \
 	bfin-tdep.c \
@@ -2485,34 +2485,34 @@ ALLDEPFILES = \
 	glibc-tdep.c \
 	go32-nat.c \
 	h8300-tdep.c \
+	hppa-bsd-tdep.c \
 	hppa-linux-nat.c \
 	hppa-linux-tdep.c \
+	hppa-nbsd-nat.c \
+	hppa-nbsd-tdep.c \
+	hppa-obsd-nat.c \
+	hppa-obsd-tdep.c \
 	hppa-tdep.c \
-	hppabsd-tdep.c \
-	hppanbsd-nat.c \
-	hppanbsd-tdep.c \
-	hppaobsd-nat.c \
-	hppaobsd-tdep.c \
+	i386-bsd-nat.c \
+	i386-bsd-tdep.c \
 	i386-cygwin-tdep.c \
 	i386-darwin-nat.c \
 	i386-darwin-tdep.c \
 	i386-dicos-tdep.c \
+	i386-fbsd-nat.c \
+	i386-fbsd-tdep.c \
+	i386-gnu-nat.c \
+	i386-gnu-tdep.c \
 	i386-linux-nat.c \
 	i386-linux-tdep.c \
+	i386-nbsd-nat.c \
+	i386-nbsd-tdep.c \
+	i386-obsd-nat.c \
+	i386-obsd-tdep.c \
 	i386-sol2-nat.c \
 	i386-sol2-tdep.c \
 	i386-tdep.c \
-	i386bsd-nat.c \
-	i386bsd-tdep.c \
-	i386fbsd-nat.c \
-	i386fbsd-tdep.c \
-	i386gnu-nat.c \
-	i386gnu-tdep.c \
-	i386nbsd-nat.c \
-	i386nbsd-tdep.c \
-	i386obsd-nat.c \
-	i386obsd-tdep.c \
-	i386v4-nat.c \
+	i386-v4-nat.c \
 	i387-tdep.c \
 	ia64-libunwind-tdep.c \
 	ia64-linux-nat.c \
@@ -2528,24 +2528,24 @@ ALLDEPFILES = \
 	m32r-linux-tdep.c \
 	m32r-tdep.c \
 	m68hc11-tdep.c \
+	m68k-bsd-nat.c \
+	m68k-bsd-tdep.c \
+	m68k-linux-nat.c \
+	m68k-linux-tdep.c \
 	m68k-tdep.c \
-	m68kbsd-nat.c \
-	m68kbsd-tdep.c \
-	m68klinux-nat.c \
-	m68klinux-tdep.c \
+	m88k-bsd-nat.c \
 	m88k-tdep.c \
-	m88kbsd-nat.c \
 	microblaze-linux-tdep.c \
 	microblaze-tdep.c \
 	mingw-hdep.c \
 	mips-linux-nat.c \
 	mips-linux-tdep.c \
+	mips-nbsd-nat.c \
+	mips-nbsd-tdep.c \
 	mips-sde-tdep.c \
 	mips-tdep.c \
-	mips64obsd-nat.c \
-	mips64obsd-tdep.c \
-	mipsnbsd-nat.c \
-	mipsnbsd-tdep.c \
+	mips64-obsd-nat.c \
+	mips64-obsd-tdep.c \
 	msp430-tdep.c \
 	nbsd-nat.c \
 	nbsd-tdep.c \
@@ -2555,17 +2555,17 @@ ALLDEPFILES = \
 	obsd-nat.c \
 	obsd-tdep.c \
 	posix-hdep.c \
+	ppc-fbsd-nat.c \
+	ppc-fbsd-tdep.c \
 	ppc-linux-nat.c \
 	ppc-linux-tdep.c \
+	ppc-nbsd-nat.c \
+	ppc-nbsd-tdep.c \
+	ppc-obsd-nat.c \
+	ppc-obsd-tdep.c \
 	ppc-ravenscar-thread.c \
 	ppc-sysv-tdep.c \
 	ppc64-tdep.c \
-	ppcfbsd-nat.c \
-	ppcfbsd-tdep.c \
-	ppcnbsd-nat.c \
-	ppcnbsd-tdep.c \
-	ppcobsd-nat.c \
-	ppcobsd-tdep.c \
 	procfs.c \
 	ravenscar-thread.c \
 	remote-sim.c \
@@ -2581,10 +2581,10 @@ ALLDEPFILES = \
 	ser-mingw.c \
 	ser-pipe.c \
 	ser-tcp.c \
+	sh-nbsd-nat.c \
+	sh-nbsd-tdep.c \
 	sh-tdep.c \
 	sh64-tdep.c \
-	shnbsd-nat.c \
-	shnbsd-tdep.c \
 	sol2-tdep.c \
 	solib-aix.c \
 	solib-spu.c \
@@ -2592,24 +2592,24 @@ ALLDEPFILES = \
 	sparc-linux-nat.c \
 	sparc-linux-tdep.c \
 	sparc-nat.c \
+	sparc-nbsd-nat.c \
+	sparc-nbsd-tdep.c \
+	sparc-obsd-tdep.c \
 	sparc-ravenscar-thread.c \
 	sparc-sol2-nat.c \
 	sparc-sol2-tdep.c \
 	sparc-tdep.c \
+	sparc64-fbsd-nat.c \
+	sparc64-fbsd-tdep.c \
 	sparc64-linux-nat.c \
 	sparc64-linux-tdep.c \
 	sparc64-nat.c \
+	sparc64-nbsd-nat.c \
+	sparc64-nbsd-tdep.c \
+	sparc64-obsd-nat.c \
+	sparc64-obsd-tdep.c \
 	sparc64-sol2-tdep.c \
 	sparc64-tdep.c \
-	sparc64fbsd-nat.c \
-	sparc64fbsd-tdep.c \
-	sparc64nbsd-nat.c \
-	sparc64nbsd-tdep.c \
-	sparc64obsd-nat.c \
-	sparc64obsd-tdep.c \
-	sparcnbsd-nat.c \
-	sparcnbsd-tdep.c \
-	sparcobsd-tdep.c \
 	spu-linux-nat.c \
 	spu-multiarch.c \
 	spu-tdep.c \
@@ -2617,9 +2617,9 @@ ALLDEPFILES = \
 	tilegx-linux-tdep.c \
 	tilegx-tdep.c \
 	v850-tdep.c \
+	vax-bsd-nat.c \
+	vax-nbsd-tdep.c \
 	vax-tdep.c \
-	vaxbsd-nat.c \
-	vaxnbsd-tdep.c \
 	windows-nat.c \
 	windows-tdep.c \
 	x86-nat.c \
diff --git a/gdb/alphabsd-nat.c b/gdb/alpha-bsd-nat.c
similarity index 99%
rename from gdb/alphabsd-nat.c
rename to gdb/alpha-bsd-nat.c
index a7113df..1e58be3 100644
--- a/gdb/alphabsd-nat.c
+++ b/gdb/alpha-bsd-nat.c
@@ -22,7 +22,7 @@
 #include "regcache.h"
 
 #include "alpha-tdep.h"
-#include "alphabsd-tdep.h"
+#include "alpha-bsd-tdep.h"
 #include "inf-ptrace.h"
 
 #include <sys/types.h>
diff --git a/gdb/alphabsd-tdep.c b/gdb/alpha-bsd-tdep.c
similarity index 98%
rename from gdb/alphabsd-tdep.c
rename to gdb/alpha-bsd-tdep.c
index 5f531d9..ee868c7 100644
--- a/gdb/alphabsd-tdep.c
+++ b/gdb/alpha-bsd-tdep.c
@@ -21,7 +21,7 @@
 #include "regcache.h"
 
 #include "alpha-tdep.h"
-#include "alphabsd-tdep.h"
+#include "alpha-bsd-tdep.h"
 
 /* Conviently, GDB uses the same register numbering as the
    ptrace register structure used by BSD on Alpha.  */
diff --git a/gdb/alphabsd-tdep.h b/gdb/alpha-bsd-tdep.h
similarity index 91%
rename from gdb/alphabsd-tdep.h
rename to gdb/alpha-bsd-tdep.h
index 1925735..4e042fd 100644
--- a/gdb/alphabsd-tdep.h
+++ b/gdb/alpha-bsd-tdep.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef ALPHABSD_TDEP_H
-#define ALPHABSD_TDEP_H
+#ifndef ALPHA_BSD_TDEP_H
+#define ALPHA_BSD_TDEP_H
 
 struct regcache;
 
@@ -29,7 +29,7 @@ void alphabsd_supply_fpreg (struct regcache *, const char *, int);
 void alphabsd_fill_fpreg (const struct regcache *, char *, int);
 \f
 
-/* Functions exported from alphanbsd-tdep.c.  */
+/* Functions exported from alpha-nbsd-tdep.c.  */
 
 /* Iterate over supported core file register note sections. */
 void alphanbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
@@ -37,4 +37,4 @@ void alphanbsd_iterate_over_regset_sections (struct gdbarch *gdbarch,
 					     void *cb_data,
 					     const struct regcache *regcache);
 
-#endif /* alphabsd-tdep.h */
+#endif /* alpha-bsd-tdep.h */
diff --git a/gdb/alphafbsd-tdep.c b/gdb/alpha-fbsd-tdep.c
similarity index 100%
rename from gdb/alphafbsd-tdep.c
rename to gdb/alpha-fbsd-tdep.c
diff --git a/gdb/alphanbsd-tdep.c b/gdb/alpha-nbsd-tdep.c
similarity index 99%
rename from gdb/alphanbsd-tdep.c
rename to gdb/alpha-nbsd-tdep.c
index abe3926..00ff481 100644
--- a/gdb/alphanbsd-tdep.c
+++ b/gdb/alpha-nbsd-tdep.c
@@ -28,7 +28,7 @@
 #include "value.h"
 
 #include "alpha-tdep.h"
-#include "alphabsd-tdep.h"
+#include "alpha-bsd-tdep.h"
 #include "nbsd-tdep.h"
 #include "solib-svr4.h"
 #include "target.h"
diff --git a/gdb/alphaobsd-tdep.c b/gdb/alpha-obsd-tdep.c
similarity index 99%
rename from gdb/alphaobsd-tdep.c
rename to gdb/alpha-obsd-tdep.c
index 9c04da0..98436f3 100644
--- a/gdb/alphaobsd-tdep.c
+++ b/gdb/alpha-obsd-tdep.c
@@ -24,7 +24,7 @@
 
 #include "obsd-tdep.h"
 #include "alpha-tdep.h"
-#include "alphabsd-tdep.h"
+#include "alpha-bsd-tdep.h"
 #include "solib-svr4.h"
 
 /* Signal trampolines.  */
diff --git a/gdb/amd64bsd-nat.c b/gdb/amd64-bsd-nat.c
similarity index 99%
rename from gdb/amd64bsd-nat.c
rename to gdb/amd64-bsd-nat.c
index b87672a..4e6995c 100644
--- a/gdb/amd64bsd-nat.c
+++ b/gdb/amd64-bsd-nat.c
@@ -31,7 +31,7 @@
 
 #include "amd64-tdep.h"
 #include "amd64-nat.h"
-#include "x86bsd-nat.h"
+#include "x86-bsd-nat.h"
 #include "inf-ptrace.h"
 \f
 
diff --git a/gdb/amd64fbsd-nat.c b/gdb/amd64-fbsd-nat.c
similarity index 98%
rename from gdb/amd64fbsd-nat.c
rename to gdb/amd64-fbsd-nat.c
index 66c374c..fce2699 100644
--- a/gdb/amd64fbsd-nat.c
+++ b/gdb/amd64-fbsd-nat.c
@@ -32,7 +32,7 @@
 #include "fbsd-nat.h"
 #include "amd64-tdep.h"
 #include "amd64-nat.h"
-#include "x86bsd-nat.h"
+#include "x86-bsd-nat.h"
 #include "x86-nat.h"
 \f
 
@@ -205,7 +205,7 @@ _initialize_amd64fbsd_nat (void)
   /* Support debugging kernel virtual memory images.  */
   bsd_kvm_add_target (amd64fbsd_supply_pcb);
 
-  /* To support the recognition of signal handlers, i386bsd-tdep.c
+  /* To support the recognition of signal handlers, i386-bsd-tdep.c
      hardcodes some constants.  Inclusion of this file means that we
      are compiling a native debugger, which means that we can use the
      system header files and sysctl(3) to get at the relevant
diff --git a/gdb/amd64fbsd-tdep.c b/gdb/amd64-fbsd-tdep.c
similarity index 99%
rename from gdb/amd64fbsd-tdep.c
rename to gdb/amd64-fbsd-tdep.c
index dd71066..d3c4270 100644
--- a/gdb/amd64fbsd-tdep.c
+++ b/gdb/amd64-fbsd-tdep.c
@@ -24,7 +24,7 @@
 #include "regcache.h"
 #include "osabi.h"
 #include "regset.h"
-#include "i386fbsd-tdep.h"
+#include "i386-fbsd-tdep.h"
 #include "x86-xstate.h"
 
 #include "amd64-tdep.h"
diff --git a/gdb/amd64nbsd-nat.c b/gdb/amd64-nbsd-nat.c
similarity index 100%
rename from gdb/amd64nbsd-nat.c
rename to gdb/amd64-nbsd-nat.c
diff --git a/gdb/amd64nbsd-tdep.c b/gdb/amd64-nbsd-tdep.c
similarity index 100%
rename from gdb/amd64nbsd-tdep.c
rename to gdb/amd64-nbsd-tdep.c
diff --git a/gdb/amd64obsd-nat.c b/gdb/amd64-obsd-nat.c
similarity index 100%
rename from gdb/amd64obsd-nat.c
rename to gdb/amd64-obsd-nat.c
diff --git a/gdb/amd64obsd-tdep.c b/gdb/amd64-obsd-tdep.c
similarity index 100%
rename from gdb/amd64obsd-tdep.c
rename to gdb/amd64-obsd-tdep.c
diff --git a/gdb/amd64-tdep.h b/gdb/amd64-tdep.h
index 2691e99..fa30648 100644
--- a/gdb/amd64-tdep.h
+++ b/gdb/amd64-tdep.h
@@ -128,13 +128,13 @@ extern const struct regset amd64_fpregset;
 /* Variables exported from amd64-linux-tdep.c.  */
 extern int amd64_linux_gregset_reg_offset[];
 
-/* Variables exported from amd64nbsd-tdep.c.  */
+/* Variables exported from amd64-nbsd-tdep.c.  */
 extern int amd64nbsd_r_reg_offset[];
 
-/* Variables exported from amd64obsd-tdep.c.  */
+/* Variables exported from amd64-obsd-tdep.c.  */
 extern int amd64obsd_r_reg_offset[];
 
-/* Variables exported from amd64fbsd-tdep.c.  */
+/* Variables exported from amd64-fbsd-tdep.c.  */
 extern CORE_ADDR amd64fbsd_sigtramp_start_addr;
 extern CORE_ADDR amd64fbsd_sigtramp_end_addr;
 extern int amd64fbsd_sc_reg_offset[];
diff --git a/gdb/armbsd-tdep.c b/gdb/arm-bsd-tdep.c
similarity index 100%
rename from gdb/armbsd-tdep.c
rename to gdb/arm-bsd-tdep.c
diff --git a/gdb/armnbsd-nat.c b/gdb/arm-nbsd-nat.c
similarity index 100%
rename from gdb/armnbsd-nat.c
rename to gdb/arm-nbsd-nat.c
diff --git a/gdb/armnbsd-tdep.c b/gdb/arm-nbsd-tdep.c
similarity index 100%
rename from gdb/armnbsd-tdep.c
rename to gdb/arm-nbsd-tdep.c
diff --git a/gdb/armobsd-tdep.c b/gdb/arm-obsd-tdep.c
similarity index 100%
rename from gdb/armobsd-tdep.c
rename to gdb/arm-obsd-tdep.c
diff --git a/gdb/arm-tdep.h b/gdb/arm-tdep.h
index 10ab742..92e19dc 100644
--- a/gdb/arm-tdep.h
+++ b/gdb/arm-tdep.h
@@ -276,7 +276,7 @@ extern int arm_pc_is_thumb (struct gdbarch *, CORE_ADDR);
 
 extern int arm_process_record (struct gdbarch *gdbarch, 
                                struct regcache *regcache, CORE_ADDR addr);
-/* Functions exported from armbsd-tdep.h.  */
+/* Functions exported from arm-bsd-tdep.h.  */
 
 /* Return the appropriate register set for the core section identified
    by SECT_NAME and SECT_SIZE.  */
diff --git a/gdb/config/alpha/fbsd.mh b/gdb/config/alpha/fbsd.mh
index 6d1fe29..9cd6912 100644
--- a/gdb/config/alpha/fbsd.mh
+++ b/gdb/config/alpha/fbsd.mh
@@ -1,6 +1,6 @@
 # Host: FreeBSD/alpha
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	fbsd-nat.o alphabsd-nat.o bsd-kvm.o \
+	fbsd-nat.o alpha-bsd-nat.o bsd-kvm.o \
 	core-regset.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/alpha/nbsd.mh b/gdb/config/alpha/nbsd.mh
index b4185a7..a46739e 100644
--- a/gdb/config/alpha/nbsd.mh
+++ b/gdb/config/alpha/nbsd.mh
@@ -1,4 +1,4 @@
 # Host: NetBSD/alpha
-NATDEPFILES= fork-child.o inf-ptrace.o alphabsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o alpha-bsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/arm/nbsdelf.mh b/gdb/config/arm/nbsdelf.mh
index 4efb8a3..042b583 100644
--- a/gdb/config/arm/nbsdelf.mh
+++ b/gdb/config/arm/nbsdelf.mh
@@ -1,2 +1,2 @@
 # Host: NetBSD/arm
-NATDEPFILES= fork-child.o inf-ptrace.o armnbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o arm-nbsd-nat.o
diff --git a/gdb/config/djgpp/fnchange.lst b/gdb/config/djgpp/fnchange.lst
index 21a8071..3addd67 100644
--- a/gdb/config/djgpp/fnchange.lst
+++ b/gdb/config/djgpp/fnchange.lst
@@ -118,21 +118,21 @@
 @V@/gdb/ada-exp.tab.c @V@/gdb/ada-exp_tab.c
 @V@/gdb/amd64-windows-nat.c @V@/gdb/a64w-nat.c
 @V@/gdb/amd64-windows-tdep.c @V@/gdb/a64w-tdep.c
-@V@/gdb/amd64fbsd-nat.c @V@/gdb/a64fb-nat.c
-@V@/gdb/amd64fbsd-tdep.c @V@/gdb/a64fb-tdep.c
-@V@/gdb/amd64nbsd-nat.c @V@/gdb/a64nb-nat.c
-@V@/gdb/amd64nbsd-tdep.c @V@/gdb/a64nb-tdep.c
-@V@/gdb/amd64obsd-nat.c @V@/gdb/a64ob-nat.c
-@V@/gdb/amd64obsd-tdep.c @V@/gdb/a64ob-tdep.c
-@V@/gdb/alphabsd-nat.c @V@/gdb/alphb-nat.c
-@V@/gdb/alphabsd-tdep.c @V@/gdb/alphb-tdep.c
-@V@/gdb/alphanbsd-tdep.c @V@/gdb/alphnb-tdep.c
+@V@/gdb/amd64-fbsd-nat.c @V@/gdb/a64fb-nat.c
+@V@/gdb/amd64-fbsd-tdep.c @V@/gdb/a64fb-tdep.c
+@V@/gdb/amd64-nbsd-nat.c @V@/gdb/a64nb-nat.c
+@V@/gdb/amd64-nbsd-tdep.c @V@/gdb/a64nb-tdep.c
+@V@/gdb/amd64-obsd-nat.c @V@/gdb/a64ob-nat.c
+@V@/gdb/amd64-obsd-tdep.c @V@/gdb/a64ob-tdep.c
+@V@/gdb/alpha-bsd-nat.c @V@/gdb/alphb-nat.c
+@V@/gdb/alpha-bsd-tdep.c @V@/gdb/alphb-tdep.c
+@V@/gdb/alpha-nbsd-tdep.c @V@/gdb/alphnb-tdep.c
 @V@/gdb/alpha-linux-nat.c @V@/gdb/alphl-nat.c
 @V@/gdb/alpha-linux-tdep.c @V@/gdb/alphl-tdep.c
 @V@/gdb/arm-linux-nat.c @V@/gdb/armlin-nat.c
 @V@/gdb/arm-linux-tdep.c @V@/gdb/armlin-tdep.c
-@V@/gdb/armnbsd-nat.c @V@/gdb/armnbd-nat.c
-@V@/gdb/armnbsd-tdep.c @V@/gdb/armnbd-tdep.c
+@V@/gdb/arm-nbsd-nat.c @V@/gdb/armnbd-nat.c
+@V@/gdb/arm-nbsd-tdep.c @V@/gdb/armnbd-tdep.c
 @V@/gdb/c-exp.tab.c @V@/gdb/c-exp_tab.c
 @V@/gdb/config/alpha/tm-alphalinux.h @V@/gdb/config/alpha/tm-alplinux.h
 @V@/gdb/config/i386/nm-cygwin64.h @V@/gdb/config/i386/nm-cyg64.h
@@ -276,23 +276,23 @@
 @V@/gdb/gdbtk/library/ChangeLog-2000 @V@/gdb/gdbtk/library/ChangeLog.000
 @V@/gdb/gdbtk/plugins/intel-pentium/intel-pentium.tcl.in @V@/gdb/gdbtk/plugins/intel-pentium/intel-pentium.t-in
 @V@/gdb/gdbtk/plugins/rhabout/rhabout.tcl.in @V@/gdb/gdbtk/plugins/rhabout/rhabout.t-in
-@V@/gdb/hppabsd-nat.c @V@/gdb/hppab-nat.c
-@V@/gdb/hppabsd-tdep.c @V@/gdb/hppab-tdep.c
-@V@/gdb/hppnbsd-nat.c @V@/gdb/hppnb-nat.c
-@V@/gdb/hppnbsd-tdep.c @V@/gdb/hppnb-tdep.c
+@V@/gdb/hppa-bsd-nat.c @V@/gdb/hppab-nat.c
+@V@/gdb/hppa-bsd-tdep.c @V@/gdb/hppab-tdep.c
+@V@/gdb/hpp-nbsd-nat.c @V@/gdb/hppnb-nat.c
+@V@/gdb/hpp-nbsd-tdep.c @V@/gdb/hppnb-tdep.c
 @V@/gdb/i386-darwin-nat.c @V@/gdb/i386dw-nat.c
 @V@/gdb/i386-darwin-tdep.c @V@/gdb/i386dw-tdep.c
 @V@/gdb/i386-linux-tdep.c @V@/gdb/i386lx-tdep.c
 @V@/gdb/i386-linux-nat.c @V@/gdb/i386lx-nat.c
-@V@/gdb/i386bsd-nat.c @V@/gdb/i3bsd-nat.c
-@V@/gdb/i386bsd-tdep.c @V@/gdb/i3bsd-tdep.c
-@V@/gdb/i386fbsd-nat.c @V@/gdb/i3fbsd-nat.c
-@V@/gdb/i386fbsd-tdep.c @V@/gdb/i3fbsd-tdep.c
-@V@/gdb/i386gnu-nat.c @V@/gdb/i3gnu-nat.c
-@V@/gdb/i386gnu-tdep.c @V@/gdb/i3gnu-tdep.c
-@V@/gdb/i386nbsd-tdep.c @V@/gdb/i3nbsd-tdep.c
-@V@/gdb/i386obsd-nat.c @V@/gdb/i3obsd-nat.c
-@V@/gdb/i386obsd-tdep.c @V@/gdb/i3obsd-tdep.c
+@V@/gdb/i386-bsd-nat.c @V@/gdb/i3bsd-nat.c
+@V@/gdb/i386-bsd-tdep.c @V@/gdb/i3bsd-tdep.c
+@V@/gdb/i386-fbsd-nat.c @V@/gdb/i3fbsd-nat.c
+@V@/gdb/i386-fbsd-tdep.c @V@/gdb/i3fbsd-tdep.c
+@V@/gdb/i386-gnu-nat.c @V@/gdb/i3gnu-nat.c
+@V@/gdb/i386-gnu-tdep.c @V@/gdb/i3gnu-tdep.c
+@V@/gdb/i386-nbsd-tdep.c @V@/gdb/i3nbsd-tdep.c
+@V@/gdb/i386-obsd-nat.c @V@/gdb/i3obsd-nat.c
+@V@/gdb/i386-obsd-tdep.c @V@/gdb/i3obsd-tdep.c
 @V@/gdb/i386-sol2-nat.c @V@/gdb/i3sol2-nat.c
 @V@/gdb/i386-sol2-tdep.c @V@/gdb/i3sol2-tdep.c
 @V@/gdb/ia64-aix-nat.c @V@/gdb/ia64ax-nat.c
@@ -303,33 +303,33 @@
 @V@/gdb/m2-exp.tab.c @V@/gdb/m2-exp_tab.c
 @V@/gdb/m32r-linux-nat.c @V@/gdb/m32rlnxnat.c
 @V@/gdb/m32r-linux-tdep.c @V@/gdb/m32rlnxtdep.c
-@V@/gdb/m68klinux-nat.c @V@/gdb/m68kl-nat.c
-@V@/gdb/m68klinux-tdep.c @V@/gdb/m68kl-tdep.c
-@V@/gdb/m68kbsd-nat.c @V@/gdb/m68bsd-nat.c
-@V@/gdb/m68kbsd-tdep.c @V@/gdb/m68bsd-tdep.c
-@V@/gdb/m68knbsd-nat.c @V@/gdb/m6nbsd-nat.c
-@V@/gdb/m68knbsd-tdep.c @V@/gdb/m6nbsd-tdep.c
+@V@/gdb/m68k-linux-nat.c @V@/gdb/m68kl-nat.c
+@V@/gdb/m68k-linux-tdep.c @V@/gdb/m68kl-tdep.c
+@V@/gdb/m68k-bsd-nat.c @V@/gdb/m68bsd-nat.c
+@V@/gdb/m68k-bsd-tdep.c @V@/gdb/m68bsd-tdep.c
+@V@/gdb/m68k-nbsd-nat.c @V@/gdb/m6nbsd-nat.c
+@V@/gdb/m68k-nbsd-tdep.c @V@/gdb/m6nbsd-tdep.c
 @V@/gdb/microblaze-rom.c @V@/gdb/mb-rom.c
 @V@/gdb/microblaze-linux-tdep.c @V@/gdb/mbl-tdep.c
 @V@/gdb/microblaze-tdep.h @V@/gdb/mb-tdep.h
 @V@/gdb/microblaze-tdep.c @V@/gdb/mb-tdep.c
 @V@/gdb/mips-linux-nat.c @V@/gdb/mipslnxnat.c
 @V@/gdb/mips-linux-tdep.c @V@/gdb/mipslnxtdep.c
-@V@/gdb/mipsnbsd-nat.c @V@/gdb/mipsnbnat.c
-@V@/gdb/mipsnbsd-tdep.c @V@/gdb/mipsnbtdep.c
-@V@/gdb/mips64obsd-nat.c @V@/gdb/mipsobnat.c
-@V@/gdb/mips64obsd-tdep.c @V@/gdb/mipsobtdep.c
+@V@/gdb/mips-nbsd-nat.c @V@/gdb/mipsnbnat.c
+@V@/gdb/mips-nbsd-tdep.c @V@/gdb/mipsnbtdep.c
+@V@/gdb/mips64-obsd-nat.c @V@/gdb/mipsobnat.c
+@V@/gdb/mips64-obsd-tdep.c @V@/gdb/mipsobtdep.c
 @V@/gdb/mn10300-linux-tdep.c @V@/gdb/mn10300linux-tdep.c
-@V@/gdb/ns32knbsd-nat.c @V@/gdb/ns32nb-nat.c
-@V@/gdb/ns32knbsd-tdep.c @V@/gdb/ns32nb-tdep.c
+@V@/gdb/ns32k-nbsd-nat.c @V@/gdb/ns32nb-nat.c
+@V@/gdb/ns32k-nbsd-tdep.c @V@/gdb/ns32nb-tdep.c
 @V@/gdb/objc-exp.tab.c @V@/gdb/objc-exp_tab.c
 @V@/gdb/p-exp.tab.c @V@/gdb/p-exp_tab.c
 @V@/gdb/ppc-linux-tdep.c @V@/gdb/ppc-lx-tdep.c
 @V@/gdb/ppc-linux-nat.c @V@/gdb/ppc-lx-nat.c
-@V@/gdb/ppcnbsd-nat.c @V@/gdb/ppcnb-nat.c
-@V@/gdb/ppcnbsd-tdep.c @V@/gdb/ppcnb-tdep.c
-@V@/gdb/ppcobsd-nat.c @V@/gdb/ppcob-nat.c
-@V@/gdb/ppcobsd-tdep.c @V@/gdb/ppcob-tdep.c
+@V@/gdb/ppc-nbsd-nat.c @V@/gdb/ppcnb-nat.c
+@V@/gdb/ppc-nbsd-tdep.c @V@/gdb/ppcnb-tdep.c
+@V@/gdb/ppc-obsd-nat.c @V@/gdb/ppcob-nat.c
+@V@/gdb/ppc-obsd-tdep.c @V@/gdb/ppcob-tdep.c
 @V@/gdb/regformats/arm-with-vfpv2.dat @V@/gdb/regformats/arm-wv2.dat
 @V@/gdb/regformats/arm-with-vfpv3.dat @V@/gdb/regformats/arm-wv3.dat
 @V@/gdb/regformats/arm-with-iwmmxt.dat @V@/gdb/regformats/arm-iwmmxt.dat
@@ -373,17 +373,17 @@
 @V@/gdb/remote-vx68.c @V@/gdb/rmt-vx68.c
 @V@/gdb/remote-vxmips.c @V@/gdb/rmt-vxmips.c
 @V@/gdb/remote-vxsparc.c @V@/gdb/rmt-vxsparc.c
-@V@/gdb/sparc64fbsd-nat.c @V@/gdb/sp64fb-nat.c
-@V@/gdb/sparc64fbsd-tdep.c @V@/gdb/sp64fb-tdep.c
-@V@/gdb/sparc64nbsd-nat.c @V@/gdb/sp64nb-nat.c
-@V@/gdb/sparc64nbsd-tdep.c @V@/gdb/sp64nb-tdep.c
+@V@/gdb/sparc64-fbsd-nat.c @V@/gdb/sp64fb-nat.c
+@V@/gdb/sparc64-fbsd-tdep.c @V@/gdb/sp64fb-tdep.c
+@V@/gdb/sparc64-nbsd-nat.c @V@/gdb/sp64nb-nat.c
+@V@/gdb/sparc64-nbsd-tdep.c @V@/gdb/sp64nb-tdep.c
 @V@/gdb/sparc64-linux-nat.c @V@/gdb/sp64lx-nat.c
 @V@/gdb/sparc64-linux-tdep.c @V@/gdb/sp64lx-tdep.c
 @V@/gdb/sparc64-nat.c @V@/gdb/sp64-nat.c
 @V@/gdb/sparc64-tdep.c @V@/gdb/sp64-tdep.c
 @V@/gdb/sparc64-sol2-tdep.c @V@/gdb/sp64s2-tdep.c
-@V@/gdb/sparcnbsd-nat.c @V@/gdb/spnb-nat.c
-@V@/gdb/sparcnbsd-tdep.c @V@/gdb/spnb-tdep.c
+@V@/gdb/sparc-nbsd-nat.c @V@/gdb/spnb-nat.c
+@V@/gdb/sparc-nbsd-tdep.c @V@/gdb/spnb-tdep.c
 @V@/gdb/sparc-linux-nat.c @V@/gdb/splx-nat.c
 @V@/gdb/sparc-linux-tdep.c @V@/gdb/splx-tdep.c
 @V@/gdb/sparc-sol2-nat.c @V@/gdb/spsol2-nat.c
@@ -513,8 +513,8 @@
 @V@/gdb/amd64-linux-nat.c @V@/gdb/amd64-lnat.c
 @V@/gdb/hppa-linux-tdep.c @V@/gdb/palnxtdep.c
 @V@/gdb/hppa-linux-nat.c @V@/gdb/palnxnat.c
-@V@/gdb/hppanbsd-nat.c @V@/gdb/panbsd-nat.c
-@V@/gdb/hppanbsd-tdep.c @V@/gdb/panbsd-tdep.c
+@V@/gdb/hppa-nbsd-nat.c @V@/gdb/panbsd-nat.c
+@V@/gdb/hppa-nbsd-tdep.c @V@/gdb/panbsd-tdep.c
 @V@/gdb/amd64-windows-nat.c @V@/gdb/amd64-wnat.c
 @V@/gdb/amd64-windows-tdep.c @V@/gdb/amd64-wtdep.c
 @V@/gdb/i386-windows-nat.c @V@/gdb/i386-wnat.c
diff --git a/gdb/config/i386/fbsd.mh b/gdb/config/i386/fbsd.mh
index 1db6660..69e0a8b 100644
--- a/gdb/config/i386/fbsd.mh
+++ b/gdb/config/i386/fbsd.mh
@@ -1,7 +1,7 @@
 # Host: FreeBSD/i386
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	fbsd-nat.o x86-nat.o x86-dregs.o x86bsd-nat.o i386bsd-nat.o \
-	i386fbsd-nat.o bsd-kvm.o
+	fbsd-nat.o x86-nat.o x86-dregs.o x86-bsd-nat.o i386-bsd-nat.o \
+	i386-fbsd-nat.o bsd-kvm.o
 NAT_FILE= nm-fbsd.h
 HAVE_NATIVE_GCORE_HOST = 1
 
diff --git a/gdb/config/i386/fbsd64.mh b/gdb/config/i386/fbsd64.mh
index e196c00..461ff9a 100644
--- a/gdb/config/i386/fbsd64.mh
+++ b/gdb/config/i386/fbsd64.mh
@@ -1,7 +1,7 @@
 # Host: FreeBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	fbsd-nat.o amd64-nat.o amd64bsd-nat.o amd64fbsd-nat.o \
-	bsd-kvm.o x86-nat.o x86-dregs.o x86bsd-nat.o
+	fbsd-nat.o amd64-nat.o amd64-bsd-nat.o amd64-fbsd-nat.o \
+	bsd-kvm.o x86-nat.o x86-dregs.o x86-bsd-nat.o
 HAVE_NATIVE_GCORE_HOST = 1
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/i386/i386gnu.mh b/gdb/config/i386/i386gnu.mh
index f1c0c5f..24e817e 100644
--- a/gdb/config/i386/i386gnu.mh
+++ b/gdb/config/i386/i386gnu.mh
@@ -1,5 +1,5 @@
 # Host: Intel 386 running the GNU Hurd
-NATDEPFILES= i386gnu-nat.o gnu-nat.o \
+NATDEPFILES= i386-gnu-nat.o gnu-nat.o \
 	     x86-nat.o x86-dregs.o fork-child.o \
 	     notify_S.o process_reply_S.o msg_reply_S.o \
 	     msg_U.o exc_request_U.o exc_request_S.o
diff --git a/gdb/config/i386/i386sol2.mh b/gdb/config/i386/i386sol2.mh
index 2f7c3c5..787a3c1 100644
--- a/gdb/config/i386/i386sol2.mh
+++ b/gdb/config/i386/i386sol2.mh
@@ -1,4 +1,4 @@
 # Host: Solaris x86
-NATDEPFILES= fork-child.o i386v4-nat.o i386-sol2-nat.o \
+NATDEPFILES= fork-child.o i386-v4-nat.o i386-sol2-nat.o \
 	procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o
 HAVE_NATIVE_GCORE_HOST = 1
diff --git a/gdb/config/i386/nbsd64.mh b/gdb/config/i386/nbsd64.mh
index 5fa369f..91d21f3 100644
--- a/gdb/config/i386/nbsd64.mh
+++ b/gdb/config/i386/nbsd64.mh
@@ -1,3 +1,3 @@
 # Host: NetBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o amd64-nat.o x86bsd-nat.o amd64bsd-nat.o amd64nbsd-nat.o
+	nbsd-nat.o amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-nbsd-nat.o
diff --git a/gdb/config/i386/nbsdelf.mh b/gdb/config/i386/nbsdelf.mh
index f8b9d6c..5954b3f 100644
--- a/gdb/config/i386/nbsdelf.mh
+++ b/gdb/config/i386/nbsdelf.mh
@@ -1,5 +1,5 @@
 # Host: NetBSD/i386 ELF
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	nbsd-nat.o x86bsd-nat.o i386bsd-nat.o i386nbsd-nat.o bsd-kvm.o
+	nbsd-nat.o x86-bsd-nat.o i386-bsd-nat.o i386-nbsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/i386/obsd.mh b/gdb/config/i386/obsd.mh
index 3845d26..fac7282 100644
--- a/gdb/config/i386/obsd.mh
+++ b/gdb/config/i386/obsd.mh
@@ -1,5 +1,5 @@
 # Host: OpenBSD/i386 ELF
 NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o \
-	x86bsd-nat.o i386bsd-nat.o i386obsd-nat.o bsd-kvm.o
+	x86-bsd-nat.o i386-bsd-nat.o i386-obsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/i386/obsd64.mh b/gdb/config/i386/obsd64.mh
index 2a8c42c..51deea7 100644
--- a/gdb/config/i386/obsd64.mh
+++ b/gdb/config/i386/obsd64.mh
@@ -1,5 +1,5 @@
 # Host: OpenBSD/amd64
 NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o \
-	amd64-nat.o x86bsd-nat.o amd64bsd-nat.o amd64obsd-nat.o bsd-kvm.o
+	amd64-nat.o x86-bsd-nat.o amd64-bsd-nat.o amd64-obsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/i386/sol2-64.mh b/gdb/config/i386/sol2-64.mh
index 7a8304d..7a3ab73 100644
--- a/gdb/config/i386/sol2-64.mh
+++ b/gdb/config/i386/sol2-64.mh
@@ -1,4 +1,4 @@
 # Host: Solaris x86_64
-NATDEPFILES= fork-child.o amd64-nat.o i386v4-nat.o i386-sol2-nat.o \
+NATDEPFILES= fork-child.o amd64-nat.o i386-v4-nat.o i386-sol2-nat.o \
 	procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o
 HAVE_NATIVE_GCORE_HOST = 1
diff --git a/gdb/config/m68k/linux.mh b/gdb/config/m68k/linux.mh
index 60d5ce4..7c1f4ac 100644
--- a/gdb/config/m68k/linux.mh
+++ b/gdb/config/m68k/linux.mh
@@ -2,7 +2,7 @@
 
 NAT_FILE= config/nm-linux.h
 NATDEPFILES= inf-ptrace.o fork-child.o \
-	m68klinux-nat.o \
+	m68k-linux-nat.o \
 	proc-service.o linux-thread-db.o \
 	linux-nat.o linux-osdata.o linux-fork.o linux-procfs.o linux-ptrace.o \
 	linux-personality.o \
diff --git a/gdb/config/m68k/nbsdelf.mh b/gdb/config/m68k/nbsdelf.mh
index f2d97a1..1d00cbc 100644
--- a/gdb/config/m68k/nbsdelf.mh
+++ b/gdb/config/m68k/nbsdelf.mh
@@ -1,4 +1,4 @@
 # Host: NetBSD/m68k ELF
-NATDEPFILES= m68kbsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o
+NATDEPFILES= m68k-bsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/m68k/obsd.mh b/gdb/config/m68k/obsd.mh
index 7930e3b..902a24b 100644
--- a/gdb/config/m68k/obsd.mh
+++ b/gdb/config/m68k/obsd.mh
@@ -1,4 +1,4 @@
 # Host: OpenBSD/m68k
-NATDEPFILES= m68kbsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o
+NATDEPFILES= m68k-bsd-nat.o bsd-kvm.o fork-child.o inf-ptrace.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/m88k/obsd.mh b/gdb/config/m88k/obsd.mh
index 2978edf..3c4d8d5 100644
--- a/gdb/config/m88k/obsd.mh
+++ b/gdb/config/m88k/obsd.mh
@@ -1,2 +1,2 @@
 # Host: OpenBSD/m88k
-NATDEPFILES= fork-child.o inf-ptrace.o m88kbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o m88k-bsd-nat.o
diff --git a/gdb/config/mips/nbsd.mh b/gdb/config/mips/nbsd.mh
index b76df13..a80da95 100644
--- a/gdb/config/mips/nbsd.mh
+++ b/gdb/config/mips/nbsd.mh
@@ -1,2 +1,2 @@
 # Host: NetBSD/mips
-NATDEPFILES= fork-child.o inf-ptrace.o mipsnbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o mips-nbsd-nat.o
diff --git a/gdb/config/mips/obsd64.mh b/gdb/config/mips/obsd64.mh
index ed04f9e..6aeac34 100644
--- a/gdb/config/mips/obsd64.mh
+++ b/gdb/config/mips/obsd64.mh
@@ -1,2 +1,2 @@
 # Host: OpenBSD/mips64
-NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o mips64obsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o mips64-obsd-nat.o
diff --git a/gdb/config/pa/nbsd.mh b/gdb/config/pa/nbsd.mh
index 5cff698..791cd9f 100644
--- a/gdb/config/pa/nbsd.mh
+++ b/gdb/config/pa/nbsd.mh
@@ -1,2 +1,2 @@
 # Host: NetBSD/hppa
-NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o hppanbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o nbsd-nat.o hppa-nbsd-nat.o
diff --git a/gdb/config/pa/obsd.mh b/gdb/config/pa/obsd.mh
index 50a1192..95dd416 100644
--- a/gdb/config/pa/obsd.mh
+++ b/gdb/config/pa/obsd.mh
@@ -1,2 +1,2 @@
 # Host: OpenBSD/hppa
-NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o hppaobsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o hppa-obsd-nat.o
diff --git a/gdb/config/powerpc/fbsd.mh b/gdb/config/powerpc/fbsd.mh
index 32ba4ae..3553acc 100644
--- a/gdb/config/powerpc/fbsd.mh
+++ b/gdb/config/powerpc/fbsd.mh
@@ -17,7 +17,7 @@
 #  You should have received a copy of the GNU General Public License
 #  along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-NATDEPFILES= fbsd-nat.o fork-child.o inf-ptrace.o ppcfbsd-nat.o bsd-kvm.o
+NATDEPFILES= fbsd-nat.o fork-child.o inf-ptrace.o ppc-fbsd-nat.o bsd-kvm.o
 HAVE_NATIVE_GCORE_HOST = 1
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/powerpc/nbsd.mh b/gdb/config/powerpc/nbsd.mh
index db0390c..f02a0f9 100644
--- a/gdb/config/powerpc/nbsd.mh
+++ b/gdb/config/powerpc/nbsd.mh
@@ -1,4 +1,4 @@
 # Host: NetBSD/powerpc
-NATDEPFILES= fork-child.o inf-ptrace.o ppcnbsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o ppc-nbsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/powerpc/obsd.mh b/gdb/config/powerpc/obsd.mh
index 2af667a..3743254 100644
--- a/gdb/config/powerpc/obsd.mh
+++ b/gdb/config/powerpc/obsd.mh
@@ -1,4 +1,4 @@
 # Host: OpenBSD/powerpc
-NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o ppcobsd-nat.o bsd-kvm.o
+NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o ppc-obsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/sh/nbsd.mh b/gdb/config/sh/nbsd.mh
index d5e67cb..14d7e8c 100644
--- a/gdb/config/sh/nbsd.mh
+++ b/gdb/config/sh/nbsd.mh
@@ -1,2 +1,2 @@
 # Host: NetBSD/sh
-NATDEPFILES= fork-child.o inf-ptrace.o shnbsd-nat.o
+NATDEPFILES= fork-child.o inf-ptrace.o sh-nbsd-nat.o
diff --git a/gdb/config/sparc/fbsd.mh b/gdb/config/sparc/fbsd.mh
index 2774efb..bdc272c 100644
--- a/gdb/config/sparc/fbsd.mh
+++ b/gdb/config/sparc/fbsd.mh
@@ -1,6 +1,6 @@
 # Host: FreeBSD/sparc64
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	fbsd-nat.o sparc-nat.o sparc64-nat.o sparc64fbsd-nat.o \
+	fbsd-nat.o sparc-nat.o sparc64-nat.o sparc64-fbsd-nat.o \
 	bsd-kvm.o
 HAVE_NATIVE_GCORE_HOST = 1
 
diff --git a/gdb/config/sparc/nbsd64.mh b/gdb/config/sparc/nbsd64.mh
index 056b74d..aa15b1d 100644
--- a/gdb/config/sparc/nbsd64.mh
+++ b/gdb/config/sparc/nbsd64.mh
@@ -1,5 +1,5 @@
 # Host: NetBSD/sparc64
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc64nbsd-nat.o sparc-nat.o bsd-kvm.o
+	sparc64-nbsd-nat.o sparc-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/sparc/nbsdelf.mh b/gdb/config/sparc/nbsdelf.mh
index 6bf898f..97d07b3 100644
--- a/gdb/config/sparc/nbsdelf.mh
+++ b/gdb/config/sparc/nbsdelf.mh
@@ -1,5 +1,5 @@
 # Host: NetBSD/sparc ELF
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	sparc-nat.o sparcnbsd-nat.o bsd-kvm.o
+	sparc-nat.o sparc-nbsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/sparc/obsd64.mh b/gdb/config/sparc/obsd64.mh
index d15e34d..e9f2fb9 100644
--- a/gdb/config/sparc/obsd64.mh
+++ b/gdb/config/sparc/obsd64.mh
@@ -1,5 +1,5 @@
 # Host: OpenBSD/sparc64
 NATDEPFILES= fork-child.o inf-ptrace.o obsd-nat.o \
-	sparc64obsd-nat.o sparc-nat.o bsd-kvm.o
+	sparc64-obsd-nat.o sparc-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/vax/nbsdelf.mh b/gdb/config/vax/nbsdelf.mh
index dd9441b..bf0f0b9 100644
--- a/gdb/config/vax/nbsdelf.mh
+++ b/gdb/config/vax/nbsdelf.mh
@@ -1,5 +1,5 @@
 # Host: NetBSD/vax ELF
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o
+	vax-bsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/config/vax/obsd.mh b/gdb/config/vax/obsd.mh
index d4d444f..cef99d3 100644
--- a/gdb/config/vax/obsd.mh
+++ b/gdb/config/vax/obsd.mh
@@ -1,5 +1,5 @@
 # Host: OpenBSD/vax
 NATDEPFILES= fork-child.o inf-ptrace.o \
-	vaxbsd-nat.o bsd-kvm.o
+	vax-bsd-nat.o bsd-kvm.o
 
 LOADLIBES= -lkvm
diff --git a/gdb/configure.tgt b/gdb/configure.tgt
index 79473c9..3a1ea6f 100644
--- a/gdb/configure.tgt
+++ b/gdb/configure.tgt
@@ -59,18 +59,18 @@ alpha*-*-linux*)
 	;;
 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
 	# Target: FreeBSD/alpha
-	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
-			alphafbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
+			alpha-fbsd-tdep.o solib-svr4.o"
 	;;
 alpha*-*-netbsd* | alpha*-*-knetbsd*-gnu)
 	# Target: NetBSD/alpha
-	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
-			alphanbsd-tdep.o nbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
+			alpha-nbsd-tdep.o nbsd-tdep.o solib-svr4.o"
 	;;
 alpha*-*-openbsd*)
 	# Target: OpenBSD/alpha
-	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alphabsd-tdep.o \
-			alphanbsd-tdep.o alphaobsd-tdep.o nbsd-tdep.o \
+	gdb_target_obs="alpha-tdep.o alpha-mdebug-tdep.o alpha-bsd-tdep.o \
+			alpha-nbsd-tdep.o alpha-obsd-tdep.o nbsd-tdep.o \
 			obsd-tdep.o solib-svr4.o"
 	;;
 alpha*-*-*)
@@ -109,13 +109,13 @@ arm*-*-linux*)
 	;;
 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
 	# Target: NetBSD/arm
-	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o armnbsd-tdep.o \
+	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-nbsd-tdep.o \
 			solib-svr4.o"
 	;;
 arm*-*-openbsd*)
 	# Target: OpenBSD/arm
-	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o armbsd-tdep.o \
-			armobsd-tdep.o obsd-tdep.o solib-svr4.o"
+	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o arm-bsd-tdep.o \
+			arm-obsd-tdep.o obsd-tdep.o solib-svr4.o"
 	;;
 arm*-*-symbianelf*)
 	# Target: SymbianOS/arm
@@ -174,11 +174,11 @@ hppa*-*-linux*)
 	;;
 hppa*-*-netbsd*)
 	# Target: NetBSD/hppa
-	gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppanbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="hppa-tdep.o hppa-bsd-tdep.o hppa-nbsd-tdep.o solib-svr4.o"
 	;;
 hppa*-*-openbsd*)
 	# Target: OpenBSD/hppa
-	gdb_target_obs="hppa-tdep.o hppabsd-tdep.o hppaobsd-tdep.o solib-svr4.o"
+	gdb_target_obs="hppa-tdep.o hppa-bsd-tdep.o hppa-obsd-tdep.o solib-svr4.o"
 	;;
 hppa*-*-*)
 	# Target: HP PA-RISC
@@ -200,17 +200,17 @@ i[34567]86-*-dicos*)
 	;;
 i[34567]86-*-freebsd* | i[34567]86-*-kfreebsd*-gnu)
 	# Target: FreeBSD/i386
-	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
+	gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-fbsd-tdep.o \
 			bsd-uthread.o fbsd-tdep.o solib-svr4.o"
 	;;
 i[34567]86-*-netbsd* | i[34567]86-*-knetbsd*-gnu)
 	# Target: NetBSD/i386
-	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386nbsd-tdep.o \
+	gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-nbsd-tdep.o \
 			nbsd-tdep.o solib-svr4.o"
 	;;
 i[34567]86-*-openbsd*)
 	# Target: OpenBSD/i386
-	gdb_target_obs="i386-tdep.o i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
+	gdb_target_obs="i386-tdep.o i387-tdep.o i386-bsd-tdep.o i386-obsd-tdep.o \
 			obsd-tdep.o bsd-uthread.o solib-svr4.o"
 	;;
 i[34567]86-*-nto*)
@@ -242,7 +242,7 @@ i[34567]86-*-linux*)
 	;;
 i[34567]86-*-gnu*)
 	# Target: Intel 386 running the GNU Hurd
-	gdb_target_obs="i386-tdep.o i387-tdep.o i386gnu-tdep.o solib-svr4.o"
+	gdb_target_obs="i386-tdep.o i387-tdep.o i386-gnu-tdep.o solib-svr4.o"
 	;;
 i[34567]86-*-cygwin*)
 	# Target: Intel 386 running win32
@@ -321,17 +321,17 @@ fido-*-elf*)
 	;;
 m68*-*-linux*)
 	# Target: Motorola m68k with a.out and ELF
-	gdb_target_obs="m68k-tdep.o m68klinux-tdep.o solib-svr4.o \
+	gdb_target_obs="m68k-tdep.o m68k-linux-tdep.o solib-svr4.o \
 			linux-tdep.o glibc-tdep.o symfile-mem.o"
 	build_gdbserver=yes
 	;;
 m68*-*-netbsd* | m68*-*-knetbsd*-gnu)
 	# Target: NetBSD/m68k
-	gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
 	;;
 m68*-*-openbsd*)
 	# Target: OpenBSD/m68k
-	gdb_target_obs="m68k-tdep.o m68kbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="m68k-tdep.o m68k-bsd-tdep.o solib-svr4.o"
 	;;
 
 m88*-*-openbsd*)
@@ -366,12 +366,12 @@ mips*-*-linux*)
 	;;
 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
 	# Target: MIPS running NetBSD
-	gdb_target_obs="mips-tdep.o mipsnbsd-tdep.o solib-svr4.o nbsd-tdep.o"
+	gdb_target_obs="mips-tdep.o mips-nbsd-tdep.o solib-svr4.o nbsd-tdep.o"
 	gdb_sim=../sim/mips/libsim.a
 	;;
 mips64*-*-openbsd*)
 	# Target: OpenBSD/mips64
-	gdb_target_obs="mips-tdep.o mips64obsd-tdep.o obsd-tdep.o solib-svr4.o"
+	gdb_target_obs="mips-tdep.o mips64-obsd-tdep.o obsd-tdep.o solib-svr4.o"
 	;;
 mips*-sde*-elf*)
 	# Target: MIPS SDE
@@ -424,20 +424,20 @@ nios2*-*-*)
 powerpc*-*-freebsd*)
 	# Target: FreeBSD/powerpc
 	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc64-tdep.o \
-		        ppcfbsd-tdep.o fbsd-tdep.o solib-svr4.o \
+		        ppc-fbsd-tdep.o fbsd-tdep.o solib-svr4.o \
 			ravenscar-thread.o ppc-ravenscar-thread.o"
 	;;
 
 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
 	# Target: NetBSD/powerpc
-	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
+	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-nbsd-tdep.o \
 			solib-svr4.o \
 			ravenscar-thread.o ppc-ravenscar-thread.o"
 	gdb_sim=../sim/ppc/libsim.a
 	;;
 powerpc-*-openbsd*)
 	# Target: OpenBSD/powerpc
-	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppcobsd-tdep.o \
+	gdb_target_obs="rs6000-tdep.o ppc-sysv-tdep.o ppc-obsd-tdep.o \
 			solib-svr4.o \
 			ravenscar-thread.o ppc-ravenscar-thread.o"
 	;;
@@ -506,12 +506,12 @@ sh*-*-linux*)
 	;;
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
 	# Target: NetBSD/sh
-	gdb_target_obs="sh-tdep.o shnbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="sh-tdep.o sh-nbsd-tdep.o solib-svr4.o"
 	gdb_sim=../sim/sh/libsim.a
 	;;
 sh*-*-openbsd*)
 	# Target: OpenBSD/sh
-	gdb_target_obs="sh-tdep.o sh64-tdep.o shnbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="sh-tdep.o sh64-tdep.o sh-nbsd-tdep.o solib-svr4.o"
 	;;
 sh64-*-elf*)
 	# Target: Renesas/Super-H 64 bit with simulator
@@ -547,32 +547,32 @@ sparc64-*-linux*)
 	;;
 sparc*-*-freebsd* | sparc*-*-kfreebsd*-gnu)
 	# Target: FreeBSD/sparc64
-	gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64fbsd-tdep.o \
+	gdb_target_obs="sparc-tdep.o sparc64-tdep.o sparc64-fbsd-tdep.o \
 			fbsd-tdep.o solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
 sparc-*-netbsd* | sparc-*-knetbsd*-gnu)
 	# Target: NetBSD/sparc
-	gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o nbsd-tdep.o \
+	gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o nbsd-tdep.o \
 			solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
 sparc64-*-netbsd* | sparc64-*-knetbsd*-gnu)
 	# Target: NetBSD/sparc64
-	gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc-tdep.o \
-			sparcnbsd-tdep.o nbsd-tdep.o solib-svr4.o \
+	gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc-tdep.o \
+			sparc-nbsd-tdep.o nbsd-tdep.o solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
 sparc-*-openbsd*)
 	# Target: OpenBSD/sparc
-	gdb_target_obs="sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
+	gdb_target_obs="sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
 			nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
 sparc64-*-openbsd*)
 	# Target: OpenBSD/sparc64
-	gdb_target_obs="sparc64-tdep.o sparc64nbsd-tdep.o sparc64obsd-tdep.o \
-			sparc-tdep.o sparcnbsd-tdep.o sparcobsd-tdep.o \
+	gdb_target_obs="sparc64-tdep.o sparc64-nbsd-tdep.o sparc64-obsd-tdep.o \
+			sparc-tdep.o sparc-nbsd-tdep.o sparc-obsd-tdep.o \
 			nbsd-tdep.o obsd-tdep.o bsd-uthread.o solib-svr4.o \
 			ravenscar-thread.o sparc-ravenscar-thread.o"
 	;;
@@ -643,11 +643,11 @@ v850*-*-elf | v850*-*-rtems*)
 
 vax-*-netbsd* | vax-*-knetbsd*-gnu)
 	# Target: NetBSD/vax
-	gdb_target_obs="vax-tdep.o vaxnbsd-tdep.o solib-svr4.o"
+	gdb_target_obs="vax-tdep.o vax-nbsd-tdep.o solib-svr4.o"
 	;;
 vax-*-openbsd*)
 	# Target: OpenBSD/vax
-	gdb_target_obs="vax-tdep.o vaxobsd-tdep.o"
+	gdb_target_obs="vax-tdep.o vax-obsd-tdep.o"
 	;;
 vax-*-*)
 	# Target: VAX
@@ -678,8 +678,8 @@ x86_64-*-linux*)
 	;;
 x86_64-*-freebsd* | x86_64-*-kfreebsd*-gnu)
 	# Target: FreeBSD/amd64
-	gdb_target_obs="amd64-tdep.o amd64fbsd-tdep.o i386-tdep.o \
-			i387-tdep.o i386bsd-tdep.o i386fbsd-tdep.o \
+	gdb_target_obs="amd64-tdep.o amd64-fbsd-tdep.o i386-tdep.o \
+			i387-tdep.o i386-bsd-tdep.o i386-fbsd-tdep.o \
 			bsd-uthread.o fbsd-tdep.o solib-svr4.o"
 	;;
 x86_64-*-mingw* | x86_64-*-cygwin*)
@@ -691,17 +691,17 @@ x86_64-*-mingw* | x86_64-*-cygwin*)
         ;;
 x86_64-*-netbsd* | x86_64-*-knetbsd*-gnu)
 	# Target: NetBSD/amd64
-	gdb_target_obs="amd64-tdep.o amd64nbsd-tdep.o i386-tdep.o i387-tdep.o \
+	gdb_target_obs="amd64-tdep.o amd64-nbsd-tdep.o i386-tdep.o i387-tdep.o \
 			nbsd-tdep.o solib-svr4.o"
 	;;
 x86_64-*-openbsd*)
 	# Target: OpenBSD/amd64
-	gdb_target_obs="amd64-tdep.o amd64obsd-tdep.o i386-tdep.o \
-			i387-tdep.o i386bsd-tdep.o i386obsd-tdep.o \
+	gdb_target_obs="amd64-tdep.o amd64-obsd-tdep.o i386-tdep.o \
+			i387-tdep.o i386-bsd-tdep.o i386-obsd-tdep.o \
 			obsd-tdep.o bsd-uthread.o solib-svr4.o"
 	;;
 x86_64-*-rtems*)
-	gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386bsd-tdep.o"
+	gdb_target_obs="amd64-tdep.o i386-tdep.o i387-tdep.o i386-bsd-tdep.o"
 	;;
 xtensa*-*-linux*)	gdb_target=linux
 	# Target: GNU/Linux Xtensa
diff --git a/gdb/hppabsd-tdep.c b/gdb/hppa-bsd-tdep.c
similarity index 99%
rename from gdb/hppabsd-tdep.c
rename to gdb/hppa-bsd-tdep.c
index a6feefb..2c581c4 100644
--- a/gdb/hppabsd-tdep.c
+++ b/gdb/hppa-bsd-tdep.c
@@ -25,7 +25,7 @@
 #include "elf/common.h"
 
 #include "hppa-tdep.h"
-#include "hppabsd-tdep.h"
+#include "hppa-bsd-tdep.h"
 #include "dwarf2-frame.h"
 #include "solib-svr4.h"
 
diff --git a/gdb/hppabsd-tdep.h b/gdb/hppa-bsd-tdep.h
similarity index 91%
rename from gdb/hppabsd-tdep.h
rename to gdb/hppa-bsd-tdep.h
index f9e8492..7d630a8 100644
--- a/gdb/hppabsd-tdep.h
+++ b/gdb/hppa-bsd-tdep.h
@@ -17,9 +17,9 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef HPPABSD_TDEP_H
-#define HPPABSD_TDEP_H
+#ifndef HPPA_BSD_TDEP_H
+#define HPPA_BSD_TDEP_H
 
 extern void hppabsd_init_abi (struct gdbarch_info, struct gdbarch *);
 
-#endif /* hppabsd-tdep.h */
+#endif /* hppa-bsd-tdep.h */
diff --git a/gdb/hppanbsd-nat.c b/gdb/hppa-nbsd-nat.c
similarity index 100%
rename from gdb/hppanbsd-nat.c
rename to gdb/hppa-nbsd-nat.c
diff --git a/gdb/hppanbsd-tdep.c b/gdb/hppa-nbsd-tdep.c
similarity index 99%
rename from gdb/hppanbsd-tdep.c
rename to gdb/hppa-nbsd-tdep.c
index 33d9ca8..6165bb5 100644
--- a/gdb/hppanbsd-tdep.c
+++ b/gdb/hppa-nbsd-tdep.c
@@ -26,7 +26,7 @@
 #include "tramp-frame.h"
 
 #include "hppa-tdep.h"
-#include "hppabsd-tdep.h"
+#include "hppa-bsd-tdep.h"
 
 /* From <machine/mcontext.h>.  */
 static int hppanbsd_mc_reg_offset[] =
diff --git a/gdb/hppaobsd-nat.c b/gdb/hppa-obsd-nat.c
similarity index 100%
rename from gdb/hppaobsd-nat.c
rename to gdb/hppa-obsd-nat.c
diff --git a/gdb/hppaobsd-tdep.c b/gdb/hppa-obsd-tdep.c
similarity index 99%
rename from gdb/hppaobsd-tdep.c
rename to gdb/hppa-obsd-tdep.c
index ad914e1..65364fe 100644
--- a/gdb/hppaobsd-tdep.c
+++ b/gdb/hppa-obsd-tdep.c
@@ -23,7 +23,7 @@
 #include "regset.h"
 
 #include "hppa-tdep.h"
-#include "hppabsd-tdep.h"
+#include "hppa-bsd-tdep.h"
 
 /* Core file support.  */
 
diff --git a/gdb/i386bsd-nat.c b/gdb/i386-bsd-nat.c
similarity index 98%
rename from gdb/i386bsd-nat.c
rename to gdb/i386-bsd-nat.c
index b6b143b..492bd77 100644
--- a/gdb/i386bsd-nat.c
+++ b/gdb/i386-bsd-nat.c
@@ -29,8 +29,8 @@
 
 #include "i386-tdep.h"
 #include "i387-tdep.h"
-#include "x86bsd-nat.h"
-#include "i386bsd-nat.h"
+#include "x86-bsd-nat.h"
+#include "i386-bsd-nat.h"
 #include "inf-ptrace.h"
 \f
 
@@ -295,7 +295,7 @@ _initialize_i386bsd_nat (void)
 {
   int offset;
 
-  /* To support the recognition of signal handlers, i386bsd-tdep.c
+  /* To support the recognition of signal handlers, i386-bsd-tdep.c
      hardcodes some constants.  Inclusion of this file means that we
      are compiling a native debugger, which means that we can use the
      system header files and sysctl(3) to get at the relevant
diff --git a/gdb/i386bsd-nat.h b/gdb/i386-bsd-nat.h
similarity index 92%
rename from gdb/i386bsd-nat.h
rename to gdb/i386-bsd-nat.h
index 1b51d19..a0291a0 100644
--- a/gdb/i386bsd-nat.h
+++ b/gdb/i386-bsd-nat.h
@@ -17,12 +17,12 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef I386BSD_NAT_H
-#define I386BSD_NAT_H
+#ifndef I386_BSD_NAT_H
+#define I386_BSD_NAT_H
 
 /* Create a prototype *BSD/i386 target.  The client can override it
    with local methods.  */
 
 extern struct target_ops *i386bsd_target (void);
 
-#endif /* i386bsd-nat.h */
+#endif /* i386-bsd-nat.h */
diff --git a/gdb/i386bsd-tdep.c b/gdb/i386-bsd-tdep.c
similarity index 100%
rename from gdb/i386bsd-tdep.c
rename to gdb/i386-bsd-tdep.c
diff --git a/gdb/i386fbsd-nat.c b/gdb/i386-fbsd-nat.c
similarity index 99%
rename from gdb/i386fbsd-nat.c
rename to gdb/i386-fbsd-nat.c
index 716b513..a9bf2b1 100644
--- a/gdb/i386fbsd-nat.c
+++ b/gdb/i386-fbsd-nat.c
@@ -30,8 +30,8 @@
 #include "fbsd-nat.h"
 #include "i386-tdep.h"
 #include "x86-nat.h"
-#include "x86bsd-nat.h"
-#include "i386bsd-nat.h"
+#include "x86-bsd-nat.h"
+#include "i386-bsd-nat.h"
 
 /* Resume execution of the inferior process.  If STEP is nonzero,
    single-step it.  If SIGNAL is nonzero, give it that signal.  */
diff --git a/gdb/i386fbsd-tdep.c b/gdb/i386-fbsd-tdep.c
similarity index 99%
rename from gdb/i386fbsd-tdep.c
rename to gdb/i386-fbsd-tdep.c
index fbff37c..a08523a 100644
--- a/gdb/i386fbsd-tdep.c
+++ b/gdb/i386-fbsd-tdep.c
@@ -23,7 +23,7 @@
 #include "osabi.h"
 #include "regcache.h"
 #include "regset.h"
-#include "i386fbsd-tdep.h"
+#include "i386-fbsd-tdep.h"
 #include "x86-xstate.h"
 
 #include "i386-tdep.h"
diff --git a/gdb/i386fbsd-tdep.h b/gdb/i386-fbsd-tdep.h
similarity index 93%
rename from gdb/i386fbsd-tdep.h
rename to gdb/i386-fbsd-tdep.h
index c8ed1c1..70224e6 100644
--- a/gdb/i386fbsd-tdep.h
+++ b/gdb/i386-fbsd-tdep.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef I386FBSD_TDEP_H
-#define I386FBSD_TDEP_H
+#ifndef I386_FBSD_TDEP_H
+#define I386_FBSD_TDEP_H
 
 /* Get XSAVE extended state xcr0 from core dump.  */
 extern uint64_t i386fbsd_core_read_xcr0 (bfd *abfd);
@@ -28,4 +28,4 @@ extern uint64_t i386fbsd_core_read_xcr0 (bfd *abfd);
    matches the layout on Linux.  */
 #define I386_FBSD_XSAVE_XCR0_OFFSET 464
 
-#endif /* i386fbsd-tdep.h */
+#endif /* i386-fbsd-tdep.h */
diff --git a/gdb/i386gnu-nat.c b/gdb/i386-gnu-nat.c
similarity index 100%
rename from gdb/i386gnu-nat.c
rename to gdb/i386-gnu-nat.c
diff --git a/gdb/i386gnu-tdep.c b/gdb/i386-gnu-tdep.c
similarity index 100%
rename from gdb/i386gnu-tdep.c
rename to gdb/i386-gnu-tdep.c
diff --git a/gdb/i386nbsd-nat.c b/gdb/i386-nbsd-nat.c
similarity index 99%
rename from gdb/i386nbsd-nat.c
rename to gdb/i386-nbsd-nat.c
index 6ace1d4..ee5a13c 100644
--- a/gdb/i386nbsd-nat.c
+++ b/gdb/i386-nbsd-nat.c
@@ -23,7 +23,7 @@
 #include "target.h"
 
 #include "i386-tdep.h"
-#include "i386bsd-nat.h"
+#include "i386-bsd-nat.h"
 
 /* Support for debugging kernel virtual memory images.  */
 
diff --git a/gdb/i386nbsd-tdep.c b/gdb/i386-nbsd-tdep.c
similarity index 100%
rename from gdb/i386nbsd-tdep.c
rename to gdb/i386-nbsd-tdep.c
diff --git a/gdb/i386obsd-nat.c b/gdb/i386-obsd-nat.c
similarity index 99%
rename from gdb/i386obsd-nat.c
rename to gdb/i386-obsd-nat.c
index eeeee9a..42fedee 100644
--- a/gdb/i386obsd-nat.c
+++ b/gdb/i386-obsd-nat.c
@@ -27,7 +27,7 @@
 #include <machine/pcb.h>
 
 #include "i386-tdep.h"
-#include "i386bsd-nat.h"
+#include "i386-bsd-nat.h"
 #include "obsd-nat.h"
 #include "bsd-kvm.h"
 
diff --git a/gdb/i386obsd-tdep.c b/gdb/i386-obsd-tdep.c
similarity index 100%
rename from gdb/i386obsd-tdep.c
rename to gdb/i386-obsd-tdep.c
diff --git a/gdb/i386-tdep.h b/gdb/i386-tdep.h
index 49dcce0..672a6cf 100644
--- a/gdb/i386-tdep.h
+++ b/gdb/i386-tdep.h
@@ -428,7 +428,7 @@ extern const struct target_desc *i386_target_description (uint64_t xcr0);
 extern int i386_mpx_enabled (void);
 \f
 
-/* Functions and variables exported from i386bsd-tdep.c.  */
+/* Functions and variables exported from i386-bsd-tdep.c.  */
 
 extern void i386bsd_init_abi (struct gdbarch_info, struct gdbarch *);
 extern CORE_ADDR i386fbsd_sigtramp_start_addr;
diff --git a/gdb/i386v4-nat.c b/gdb/i386-v4-nat.c
similarity index 100%
rename from gdb/i386v4-nat.c
rename to gdb/i386-v4-nat.c
diff --git a/gdb/m68kbsd-nat.c b/gdb/m68k-bsd-nat.c
similarity index 100%
rename from gdb/m68kbsd-nat.c
rename to gdb/m68k-bsd-nat.c
diff --git a/gdb/m68kbsd-tdep.c b/gdb/m68k-bsd-tdep.c
similarity index 100%
rename from gdb/m68kbsd-tdep.c
rename to gdb/m68k-bsd-tdep.c
diff --git a/gdb/m68klinux-nat.c b/gdb/m68k-linux-nat.c
similarity index 100%
rename from gdb/m68klinux-nat.c
rename to gdb/m68k-linux-nat.c
diff --git a/gdb/m68klinux-tdep.c b/gdb/m68k-linux-tdep.c
similarity index 100%
rename from gdb/m68klinux-tdep.c
rename to gdb/m68k-linux-tdep.c
diff --git a/gdb/m68k-tdep.h b/gdb/m68k-tdep.h
index db03192..a3433e1 100644
--- a/gdb/m68k-tdep.h
+++ b/gdb/m68k-tdep.h
@@ -101,7 +101,7 @@ struct gdbarch_tdep
 extern void m68k_svr4_init_abi (struct gdbarch_info, struct gdbarch *);
 \f
 
-/* Functions exported from m68kbsd-tdep.c.  */
+/* Functions exported from m68k-bsd-tdep.c.  */
 
 extern int m68kbsd_fpreg_offset (struct gdbarch *gdbarch, int regnum);
 
diff --git a/gdb/m88kbsd-nat.c b/gdb/m88k-bsd-nat.c
similarity index 100%
rename from gdb/m88kbsd-nat.c
rename to gdb/m88k-bsd-nat.c
diff --git a/gdb/mipsnbsd-nat.c b/gdb/mips-nbsd-nat.c
similarity index 99%
rename from gdb/mipsnbsd-nat.c
rename to gdb/mips-nbsd-nat.c
index fc71592..ebbe84e 100644
--- a/gdb/mipsnbsd-nat.c
+++ b/gdb/mips-nbsd-nat.c
@@ -27,7 +27,7 @@
 #include <machine/reg.h>
 
 #include "mips-tdep.h"
-#include "mipsnbsd-tdep.h"
+#include "mips-nbsd-tdep.h"
 #include "inf-ptrace.h"
 
 /* Determine if PT_GETREGS fetches this register.  */
diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mips-nbsd-tdep.c
similarity index 99%
rename from gdb/mipsnbsd-tdep.c
rename to gdb/mips-nbsd-tdep.c
index 4834995..2d7cd82 100644
--- a/gdb/mipsnbsd-tdep.c
+++ b/gdb/mips-nbsd-tdep.c
@@ -28,7 +28,7 @@
 #include "osabi.h"
 
 #include "nbsd-tdep.h"
-#include "mipsnbsd-tdep.h"
+#include "mips-nbsd-tdep.h"
 #include "mips-tdep.h"
 
 #include "solib-svr4.h"
diff --git a/gdb/mipsnbsd-tdep.h b/gdb/mips-nbsd-tdep.h
similarity index 93%
rename from gdb/mipsnbsd-tdep.h
rename to gdb/mips-nbsd-tdep.h
index 26f801c..caec0e1 100644
--- a/gdb/mipsnbsd-tdep.h
+++ b/gdb/mips-nbsd-tdep.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef MIPSNBSD_TDEP_H
-#define MIPSNBSD_TDEP_H
+#ifndef MIPS_NBSD_TDEP_H
+#define MIPS_NBSD_TDEP_H
 
 void mipsnbsd_supply_reg (struct regcache *, const char *, int);
 void mipsnbsd_fill_reg (const struct regcache *, char *, int);
@@ -26,4 +26,4 @@ void mipsnbsd_fill_reg (const struct regcache *, char *, int);
 void mipsnbsd_supply_fpreg (struct regcache *, const char *, int);
 void mipsnbsd_fill_fpreg (const struct regcache *, char *, int);
 
-#endif /* MIPSNBSD_TDEP_H */
+#endif /* MIPS_NBSD_TDEP_H */
diff --git a/gdb/mips64obsd-nat.c b/gdb/mips64-obsd-nat.c
similarity index 100%
rename from gdb/mips64obsd-nat.c
rename to gdb/mips64-obsd-nat.c
diff --git a/gdb/mips64obsd-tdep.c b/gdb/mips64-obsd-tdep.c
similarity index 100%
rename from gdb/mips64obsd-tdep.c
rename to gdb/mips64-obsd-tdep.c
diff --git a/gdb/ppcfbsd-nat.c b/gdb/ppc-fbsd-nat.c
similarity index 99%
rename from gdb/ppcfbsd-nat.c
rename to gdb/ppc-fbsd-nat.c
index 999e383..6eed998 100644
--- a/gdb/ppcfbsd-nat.c
+++ b/gdb/ppc-fbsd-nat.c
@@ -33,7 +33,7 @@
 #include "fbsd-nat.h"
 #include "gregset.h"
 #include "ppc-tdep.h"
-#include "ppcfbsd-tdep.h"
+#include "ppc-fbsd-tdep.h"
 #include "inf-ptrace.h"
 #include "bsd-kvm.h"
 
diff --git a/gdb/ppcfbsd-tdep.c b/gdb/ppc-fbsd-tdep.c
similarity index 99%
rename from gdb/ppcfbsd-tdep.c
rename to gdb/ppc-fbsd-tdep.c
index 10b41b0..0e5ead6 100644
--- a/gdb/ppcfbsd-tdep.c
+++ b/gdb/ppc-fbsd-tdep.c
@@ -32,7 +32,7 @@
 
 #include "ppc-tdep.h"
 #include "ppc64-tdep.h"
-#include "ppcfbsd-tdep.h"
+#include "ppc-fbsd-tdep.h"
 #include "fbsd-tdep.h"
 #include "solib-svr4.h"
 
diff --git a/gdb/ppcfbsd-tdep.h b/gdb/ppc-fbsd-tdep.h
similarity index 89%
rename from gdb/ppcfbsd-tdep.h
rename to gdb/ppc-fbsd-tdep.h
index a51e5b7..9e1468b 100644
--- a/gdb/ppcfbsd-tdep.h
+++ b/gdb/ppc-fbsd-tdep.h
@@ -17,13 +17,13 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PPCFBSD_TDEP_H
-#define PPCFBSD_TDEP_H
+#ifndef PPC_FBSD_TDEP_H
+#define PPC_FBSD_TDEP_H
 
 struct regset;
 
-/* From ppcfbsd-tdep.c ...  */
+/* From ppc-fbsd-tdep.c ...  */
 const struct regset *ppc_fbsd_gregset (int);
 const struct regset *ppc_fbsd_fpregset (void);
 
-#endif /* PPCFBSD_TDEP_H  */
+#endif /* PPC_FBSD_TDEP_H  */
diff --git a/gdb/ppcnbsd-nat.c b/gdb/ppc-nbsd-nat.c
similarity index 99%
rename from gdb/ppcnbsd-nat.c
rename to gdb/ppc-nbsd-nat.c
index cd0416f..5b1d141 100644
--- a/gdb/ppcnbsd-nat.c
+++ b/gdb/ppc-nbsd-nat.c
@@ -32,7 +32,7 @@
 #include "regcache.h"
 
 #include "ppc-tdep.h"
-#include "ppcnbsd-tdep.h"
+#include "ppc-nbsd-tdep.h"
 #include "bsd-kvm.h"
 #include "inf-ptrace.h"
 
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppc-nbsd-tdep.c
similarity index 99%
rename from gdb/ppcnbsd-tdep.c
rename to gdb/ppc-nbsd-tdep.c
index be152e1..a730ebd 100644
--- a/gdb/ppcnbsd-tdep.c
+++ b/gdb/ppc-nbsd-tdep.c
@@ -28,7 +28,7 @@
 #include "tramp-frame.h"
 
 #include "ppc-tdep.h"
-#include "ppcnbsd-tdep.h"
+#include "ppc-nbsd-tdep.h"
 #include "solib-svr4.h"
 
 /* Register offsets from <machine/reg.h>.  */
diff --git a/gdb/ppcnbsd-tdep.h b/gdb/ppc-nbsd-tdep.h
similarity index 93%
rename from gdb/ppcnbsd-tdep.h
rename to gdb/ppc-nbsd-tdep.h
index 25258ef..1e1f291 100644
--- a/gdb/ppcnbsd-tdep.h
+++ b/gdb/ppc-nbsd-tdep.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PPCNBSD_TDEP_H
-#define PPCNBSD_TDEP_H
+#ifndef PPC_NBSD_TDEP_H
+#define PPC_NBSD_TDEP_H
 
 struct regset;
 
@@ -29,4 +29,4 @@ extern struct ppc_reg_offsets ppcnbsd_reg_offsets;
 extern const struct regset ppcnbsd_gregset;
 extern const struct regset ppcnbsd_fpregset;
 
-#endif /* ppcnbsd-tdep.h */
+#endif /* ppc-nbsd-tdep.h */
diff --git a/gdb/ppcobsd-nat.c b/gdb/ppc-obsd-nat.c
similarity index 99%
rename from gdb/ppcobsd-nat.c
rename to gdb/ppc-obsd-nat.c
index c8e82c3..eb39e7c 100644
--- a/gdb/ppcobsd-nat.c
+++ b/gdb/ppc-obsd-nat.c
@@ -30,7 +30,7 @@
 #include <machine/reg.h>
 
 #include "ppc-tdep.h"
-#include "ppcobsd-tdep.h"
+#include "ppc-obsd-tdep.h"
 #include "inf-ptrace.h"
 #include "obsd-nat.h"
 #include "bsd-kvm.h"
diff --git a/gdb/ppcobsd-tdep.c b/gdb/ppc-obsd-tdep.c
similarity index 99%
rename from gdb/ppcobsd-tdep.c
rename to gdb/ppc-obsd-tdep.c
index bc5a5a8..f61dd24 100644
--- a/gdb/ppcobsd-tdep.c
+++ b/gdb/ppc-obsd-tdep.c
@@ -29,7 +29,7 @@
 #include "trad-frame.h"
 
 #include "ppc-tdep.h"
-#include "ppcobsd-tdep.h"
+#include "ppc-obsd-tdep.h"
 #include "solib-svr4.h"
 
 /* Register offsets from <machine/reg.h>.  */
diff --git a/gdb/ppcobsd-tdep.h b/gdb/ppc-obsd-tdep.h
similarity index 95%
rename from gdb/ppcobsd-tdep.h
rename to gdb/ppc-obsd-tdep.h
index 568e948..cca5a79 100644
--- a/gdb/ppcobsd-tdep.h
+++ b/gdb/ppc-obsd-tdep.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef PPCOBSD_TDEP_H
-#define PPCOBSD_TDEP_H
+#ifndef PPC_OBSD_TDEP_H
+#define PPC_OBSD_TDEP_H
 
 struct regset;
 struct regcache;
@@ -49,4 +49,4 @@ extern void ppcobsd_collect_gregset (const struct regset *regset,
 				     const struct regcache *regcache,
 				     int regnum, void *gregs, size_t len);
 
-#endif /* ppcobsd-tdep.h */
+#endif /* ppc-obsd-tdep.h */
diff --git a/gdb/shnbsd-nat.c b/gdb/sh-nbsd-nat.c
similarity index 100%
rename from gdb/shnbsd-nat.c
rename to gdb/sh-nbsd-nat.c
diff --git a/gdb/shnbsd-tdep.c b/gdb/sh-nbsd-tdep.c
similarity index 100%
rename from gdb/shnbsd-tdep.c
rename to gdb/sh-nbsd-tdep.c
diff --git a/gdb/sparcnbsd-nat.c b/gdb/sparc-nbsd-nat.c
similarity index 100%
rename from gdb/sparcnbsd-nat.c
rename to gdb/sparc-nbsd-nat.c
diff --git a/gdb/sparcnbsd-tdep.c b/gdb/sparc-nbsd-tdep.c
similarity index 100%
rename from gdb/sparcnbsd-tdep.c
rename to gdb/sparc-nbsd-tdep.c
diff --git a/gdb/sparcobsd-tdep.c b/gdb/sparc-obsd-tdep.c
similarity index 100%
rename from gdb/sparcobsd-tdep.c
rename to gdb/sparc-obsd-tdep.c
diff --git a/gdb/sparc64fbsd-nat.c b/gdb/sparc64-fbsd-nat.c
similarity index 100%
rename from gdb/sparc64fbsd-nat.c
rename to gdb/sparc64-fbsd-nat.c
diff --git a/gdb/sparc64fbsd-tdep.c b/gdb/sparc64-fbsd-tdep.c
similarity index 100%
rename from gdb/sparc64fbsd-tdep.c
rename to gdb/sparc64-fbsd-tdep.c
diff --git a/gdb/sparc64nbsd-nat.c b/gdb/sparc64-nbsd-nat.c
similarity index 100%
rename from gdb/sparc64nbsd-nat.c
rename to gdb/sparc64-nbsd-nat.c
diff --git a/gdb/sparc64nbsd-tdep.c b/gdb/sparc64-nbsd-tdep.c
similarity index 100%
rename from gdb/sparc64nbsd-tdep.c
rename to gdb/sparc64-nbsd-tdep.c
diff --git a/gdb/sparc64obsd-nat.c b/gdb/sparc64-obsd-nat.c
similarity index 100%
rename from gdb/sparc64obsd-nat.c
rename to gdb/sparc64-obsd-nat.c
diff --git a/gdb/sparc64obsd-tdep.c b/gdb/sparc64-obsd-tdep.c
similarity index 100%
rename from gdb/sparc64obsd-tdep.c
rename to gdb/sparc64-obsd-tdep.c
diff --git a/gdb/sparc64-tdep.h b/gdb/sparc64-tdep.h
index 9140264..eb925df 100644
--- a/gdb/sparc64-tdep.h
+++ b/gdb/sparc64-tdep.h
@@ -119,12 +119,12 @@ extern const struct sparc_fpregmap sparc64_sol2_fpregmap;
 extern void sparc64_sol2_init_abi (struct gdbarch_info info,
 				   struct gdbarch *gdbarch);
 
-/* Variables exported from sparc64fbsd-tdep.c.  */
+/* Variables exported from sparc64-fbsd-tdep.c.  */
 
 /* Register offsets for FreeBSD/sparc64.  */
 extern const struct sparc_gregmap sparc64fbsd_gregmap;
 
-/* Functions and variables exported from sparc64nbsd-tdep.c.  */
+/* Functions and variables exported from sparc64-nbsd-tdep.c.  */
 
 /* Register offsets for NetBSD/sparc64.  */
 extern const struct sparc_gregmap sparc64nbsd_gregmap;
diff --git a/gdb/vaxbsd-nat.c b/gdb/vax-bsd-nat.c
similarity index 100%
rename from gdb/vaxbsd-nat.c
rename to gdb/vax-bsd-nat.c
diff --git a/gdb/vaxnbsd-tdep.c b/gdb/vax-nbsd-tdep.c
similarity index 100%
rename from gdb/vaxnbsd-tdep.c
rename to gdb/vax-nbsd-tdep.c
diff --git a/gdb/vaxobsd-tdep.c b/gdb/vax-obsd-tdep.c
similarity index 100%
rename from gdb/vaxobsd-tdep.c
rename to gdb/vax-obsd-tdep.c
diff --git a/gdb/x86bsd-nat.c b/gdb/x86-bsd-nat.c
similarity index 99%
rename from gdb/x86bsd-nat.c
rename to gdb/x86-bsd-nat.c
index bde25ab..1998476 100644
--- a/gdb/x86bsd-nat.c
+++ b/gdb/x86-bsd-nat.c
@@ -29,7 +29,7 @@
 #include <machine/reg.h>
 
 #include "x86-nat.h"
-#include "x86bsd-nat.h"
+#include "x86-bsd-nat.h"
 #include "inf-ptrace.h"
 \f
 
diff --git a/gdb/x86bsd-nat.h b/gdb/x86-bsd-nat.h
similarity index 93%
rename from gdb/x86bsd-nat.h
rename to gdb/x86-bsd-nat.h
index 6d39697..a13ff48 100644
--- a/gdb/x86bsd-nat.h
+++ b/gdb/x86-bsd-nat.h
@@ -17,8 +17,8 @@
    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
 
-#ifndef X86BSD_NAT_H
-#define X86BSD_NAT_H
+#ifndef X86_BSD_NAT_H
+#define X86_BSD_NAT_H
 
 /* Low level x86 XSAVE info.  */
 extern size_t x86bsd_xsave_len;
@@ -28,4 +28,4 @@ extern size_t x86bsd_xsave_len;
 
 extern struct target_ops *x86bsd_target (void);
 
-#endif /* x86bsd-nat.h */
+#endif /* x86-bsd-nat.h */
-- 
2.10.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2 1/3] Makefiles: Flatten and sort file lists
  2016-11-19  4:08 [PATCH v2 0/3] More Makefile cleanups Simon Marchi
@ 2016-11-19  4:08 ` Simon Marchi
       [not found]   ` <bef8fae4-4c94-493e-b5f0-93521f1083f3@redhat.com>
  2016-11-19  4:08 ` [PATCH v2 2/3] Normalize names of some source files Simon Marchi
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 6+ messages in thread
From: Simon Marchi @ 2016-11-19  4:08 UTC (permalink / raw)
  To: gdb-patches; +Cc: Simon Marchi

I find the big file lists in the Makefiles a bit ugly and not very
practical.  Since there are multiple filenames on each line (as much as
fits in 80 columns), it's not easy to add, remove or change a name in
the middle.  As a result, we have a mix of long and short lines in no
particular order (ALL_TARGET_OBS is a good example).

I therefore suggest flattening the lists (one name per line) and keeping
them in alphabetical order.  The diffs will be much clearer and merge
conflicts will be easier to resolve.

A nice (IMO) side-effect I observed is that the files are compiled
alphabetically by make, so it gives a rough idea of the progress of the
build.

I added a comment in gdb/Makefile.in to mention to keep the file lists
ordered, and gave the general guidelines on what order to respect.  I
added a comment in other Makefiles which refers to gdb/Makefile.in, to
avoid duplication.

Running the patch through the buildbot found that gdb.base/default.exp
started to fail.  The languages in the error message shown when typing
"set language" have changed order.  We could probably improve gdb so
that it prints them in a stable order, regardless of the order of the
object list passed to the linked, but just fixing the test is easier for
now.

New in v2:

 - Change ordering style, directories go at the end.
 - Cleanup gdbserver's and data-directory's Makefile as well.
 - Add comments at top of Makefiles about the ordering.
 - Remove wrong trailing backslahes.
 - Fix test gdb.base/default.exp.

gdb/ChangeLog:

	* Makefile.in: Add comment about file lists ordering.
	(SUBDIR_CLI_OBS, SUBDIR_CLI_SRCS, SUBDIR_MI_OBS, SUBDIR_MI_SRCS,
	SUBDIR_TUI_OBS, SUBDIR_TUI_SRCS, SUBDIR_GCC_COMPILE_OBS,
	SUBDIR_GCC_COMPILE_SRCS, SUBDIR_GUILE_OBS, SUBDIR_GUILE_SRCS,
	SUBDIR_PYTHON_OBS, SUBDIR_PYTHON_SRCS, SUBDIR_GDBTK_OBS,
	SUBDIR_GDBTK_SRCS, XMLFILES, REMOTE_OBS, ALL_64_TARGET_OBS,
	ALL_TARGET_OBS, SFILES, HFILES_NO_SRCDIR, HFILES_WITH_SRCDIR,
	COMMON_OBS, YYFILES, YYOBJ, generated_files, ALLDEPFILES):
	Flatten list and order alphabetically.
	* data-directory/Makefile.in: Add comment about file lists
	ordering.
	(GEN_SYSCALLS_FILES, PYTHON_FILE_LIST): Flatten list and order
	alphabetically.

gdb/gdbserver/ChangeLog:

	* Makefile.in (SFILES, OBS): Flatten list and order
	alphabetically.

gdb/testsuite/ChangeLog:

	* gdb.base/default.exp: Fix output of "set language".
---
 gdb/Makefile.in                    | 1561 +++++++++++++++++++++++++++---------
 gdb/data-directory/Makefile.in     |   39 +-
 gdb/gdbserver/Makefile.in          |  146 +++-
 gdb/testsuite/gdb.base/default.exp |    2 +-
 4 files changed, 1322 insertions(+), 426 deletions(-)

diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index b68cf58..ac6d3ec 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -15,6 +15,25 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Please keep lists in this file sorted alphabetically, with one item per line.
+# Here are the general guidelines for ordering files and directories:
+#
+#   - Files come before directories.
+#   - The extensions are not taken into account when comparing filenames, except
+#     if the filenames are otherwise equal.
+#   - A filename that is a prefix of another one comes before.
+#   - Underscores and dashes are treated equally, and come before alphanumeric
+#     characters.
+#
+# For example:
+#
+# SOME_FILES = \
+# 	foo.c \
+# 	foo.h \
+# 	foo-bar.c \
+# 	foobar.c \
+# 	foo/bar.c
+
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 
@@ -214,15 +233,25 @@ GNULIB_H = $(GNULIB_BUILDDIR)/import/string.h @GNULIB_STDINT_H@
 # CLI sub directory definitons
 #
 SUBDIR_CLI_OBS = \
+	cli-cmds.o \
+	cli-decode.o \
 	cli-dump.o \
-	cli-decode.o cli-script.o cli-cmds.o cli-setshow.o \
+	cli-interp.o \
 	cli-logging.o \
-	cli-interp.o cli-utils.o
+	cli-script.o \
+	cli-setshow.o \
+	cli-utils.o
+
 SUBDIR_CLI_SRCS = \
+	cli/cli-cmds.c \
+	cli/cli-decode.c \
 	cli/cli-dump.c \
-	cli/cli-decode.c cli/cli-script.c cli/cli-cmds.c cli/cli-setshow.c \
+	cli/cli-interp.c \
 	cli/cli-logging.c \
-	cli/cli-interp.c cli/cli-utils.c
+	cli/cli-script.c \
+	cli/cli-setshow.c \
+	cli/cli-utils.c
+
 SUBDIR_CLI_DEPS =
 SUBDIR_CLI_LDFLAGS=
 SUBDIR_CLI_CFLAGS=
@@ -231,19 +260,43 @@ SUBDIR_CLI_CFLAGS=
 # MI sub directory definitons
 #
 SUBDIR_MI_OBS = \
-	mi-out.o mi-console.o \
-	mi-cmds.o mi-cmd-catch.o mi-cmd-env.o \
-	mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o \
-	mi-cmd-file.o mi-cmd-disas.o mi-symbol-cmds.o mi-cmd-target.o \
-	mi-cmd-info.o mi-interp.o \
-	mi-main.o mi-parse.o mi-getopt.o
+	mi-cmd-break.o \
+	mi-cmd-catch.o \
+	mi-cmd-disas.o \
+	mi-cmd-env.o \
+	mi-cmd-file.o \
+	mi-cmd-info.o \
+	mi-cmd-stack.o \
+	mi-cmd-target.o \
+	mi-cmd-var.o \
+	mi-cmds.o \
+	mi-console.o \
+	mi-getopt.o \
+	mi-interp.o \
+	mi-main.o \
+	mi-out.o \
+	mi-parse.o \
+	mi-symbol-cmds.o
+
 SUBDIR_MI_SRCS = \
-	mi/mi-out.c mi/mi-console.c \
-	mi/mi-cmds.c mi/mi-cmd-catch.c mi/mi-cmd-env.c \
-	mi/mi-cmd-var.c mi/mi-cmd-break.c mi/mi-cmd-stack.c \
-	mi/mi-cmd-file.c mi/mi-cmd-disas.c mi/mi-symbol-cmds.c \
-	mi/mi-cmd-target.c mi/mi-cmd-info.c mi/mi-interp.c \
-	mi/mi-main.c mi/mi-parse.c mi/mi-getopt.c
+	mi/mi-cmd-break.c \
+	mi/mi-cmd-catch.c \
+	mi/mi-cmd-disas.c \
+	mi/mi-cmd-env.c \
+	mi/mi-cmd-file.c \
+	mi/mi-cmd-info.c \
+	mi/mi-cmd-stack.c \
+	mi/mi-cmd-target.c \
+	mi/mi-cmd-var.c \
+	mi/mi-cmds.c \
+	mi/mi-console.c \
+	mi/mi-getopt.c \
+	mi/mi-interp.c \
+	mi/mi-main.c \
+	mi/mi-out.c \
+	mi/mi-parse.c \
+	mi/mi-symbol-cmds.c
+
 SUBDIR_MI_DEPS =
 SUBDIR_MI_LDFLAGS=
 SUBDIR_MI_CFLAGS=
@@ -253,6 +306,7 @@ SUBDIR_MI_CFLAGS=
 #
 
 SUBDIR_TUI_OBS = \
+	tui.o \
 	tui-command.o \
 	tui-data.o \
 	tui-disasm.o \
@@ -268,10 +322,10 @@ SUBDIR_TUI_OBS = \
 	tui-win.o \
 	tui-windata.o \
 	tui-wingeneral.o \
-	tui-winsource.o \
-	tui.o
+	tui-winsource.o
 
 SUBDIR_TUI_SRCS = \
+	tui/tui.c \
 	tui/tui-command.c \
 	tui/tui-data.c \
 	tui/tui-disasm.c \
@@ -287,8 +341,7 @@ SUBDIR_TUI_SRCS = \
 	tui/tui-win.c \
 	tui/tui-windata.c \
 	tui/tui-wingeneral.c \
-	tui/tui-winsource.c \
-	tui/tui.c
+	tui/tui-winsource.c
 
 SUBDIR_TUI_DEPS =
 SUBDIR_TUI_LDFLAGS=
@@ -299,19 +352,24 @@ SUBDIR_TUI_CFLAGS= \
 # GCC Compile support sub-directory definitions
 #
 SUBDIR_GCC_COMPILE_OBS = \
-	compile.o compile-c-symbols.o compile-c-types.o \
-	compile-object-load.o compile-object-run.o \
-	compile-loc2c.o compile-c-support.o
+	compile.o \
+	compile-c-support.o \
+	compile-c-symbols.o \
+	compile-c-types.o \
+	compile-loc2c.o \
+	compile-object-load.o \
+	compile-object-run.o
+
 SUBDIR_GCC_COMPILE_SRCS = \
 	compile/compile.c \
+	compile/compile-c-support.c \
 	compile/compile-c-symbols.c \
 	compile/compile-c-types.c \
+	compile/compile-loc2c.c \
 	compile/compile-object-load.c \
 	compile/compile-object-load.h \
 	compile/compile-object-run.c \
-	compile/compile-object-run.h \
-	compile/compile-loc2c.c \
-	compile/compile-c-support.c
+	compile/compile-object-run.h
 
 # Guile sub directory definitons for guile support.
 
@@ -328,8 +386,8 @@ SUBDIR_GUILE_OBS = \
 	scm-gsmob.o \
 	scm-iterator.o \
 	scm-lazy-string.o \
-	scm-objfile.o \
 	scm-math.o \
+	scm-objfile.o \
 	scm-param.o \
 	scm-ports.o \
 	scm-pretty-print.o \
@@ -341,6 +399,7 @@ SUBDIR_GUILE_OBS = \
 	scm-type.o \
 	scm-utils.o \
 	scm-value.o
+
 SUBDIR_GUILE_SRCS = \
 	guile/guile.c \
 	guile/scm-arch.c \
@@ -354,8 +413,8 @@ SUBDIR_GUILE_SRCS = \
 	guile/scm-gsmob.c \
 	guile/scm-iterator.c \
 	guile/scm-lazy-string.c \
-	guile/scm-objfile.c \
 	guile/scm-math.c \
+	guile/scm-objfile.c \
 	guile/scm-param.c \
 	guile/scm-ports.c \
 	guile/scm-pretty-print.c \
@@ -367,6 +426,7 @@ SUBDIR_GUILE_SRCS = \
 	guile/scm-type.c \
 	guile/scm-utils.c \
 	guile/scm-value.c
+
 SUBDIR_GUILE_DEPS =
 SUBDIR_GUILE_LDFLAGS=
 SUBDIR_GUILE_CFLAGS=
@@ -375,7 +435,6 @@ SUBDIR_GUILE_CFLAGS=
 # python sub directory definitons
 #
 SUBDIR_PYTHON_OBS = \
-	python.o \
 	py-arch.o \
 	py-auto-load.o \
 	py-block.o \
@@ -383,7 +442,6 @@ SUBDIR_PYTHON_OBS = \
 	py-breakpoint.o \
 	py-cmd.o \
 	py-continueevent.o \
-	py-xmethods.o \
 	py-event.o \
 	py-evtregistry.o \
 	py-evts.o \
@@ -412,10 +470,11 @@ SUBDIR_PYTHON_OBS = \
 	py-unwind.o \
 	py-utils.o \
 	py-value.o \
-	py-varobj.o
+	py-varobj.o \
+	py-xmethods.o \
+	python.o
 
 SUBDIR_PYTHON_SRCS = \
-	python/python.c \
 	python/py-arch.c \
 	python/py-auto-load.c \
 	python/py-block.c \
@@ -423,7 +482,6 @@ SUBDIR_PYTHON_SRCS = \
 	python/py-breakpoint.c \
 	python/py-cmd.c \
 	python/py-continueevent.c \
-	python/py-xmethods.c \
 	python/py-event.c \
 	python/py-evtregistry.c \
 	python/py-evts.c \
@@ -452,7 +510,10 @@ SUBDIR_PYTHON_SRCS = \
 	python/py-unwind.c \
 	python/py-utils.c \
 	python/py-value.c \
-	python/py-varobj.c
+	python/py-varobj.c \
+	python/py-xmethods.c \
+	python/python.c
+
 SUBDIR_PYTHON_DEPS =
 SUBDIR_PYTHON_LDFLAGS=
 SUBDIR_PYTHON_CFLAGS=
@@ -509,15 +570,28 @@ GDBTK_LIBRARY = $(datadir)/insight$(GDBTK_VERSION)
 GDBTK_SRC_DIR = @GDBTK_SRC_DIR@
 
 SUBDIR_GDBTK_OBS = \
-	gdbtk.o gdbtk-bp.o gdbtk-cmds.o gdbtk-hooks.o gdbtk-interp.o \
-	gdbtk-register.o gdbtk-stack.o gdbtk-varobj.o gdbtk-wrapper.o
+	gdbtk.o \
+	gdbtk-bp.o \
+	gdbtk-cmds.o \
+	gdbtk-hooks.o \
+	gdbtk-interp.o \
+	gdbtk-register.o \
+	gdbtk-stack.o \
+	gdbtk-varobj.o \
+	gdbtk-wrapper.o
+
 SUBDIR_GDBTK_SRCS = \
-	gdbtk/generic/gdbtk.c gdbtk/generic/gdbtk-bp.c \
-	gdbtk/generic/gdbtk-cmds.c gdbtk/generic/gdbtk-hooks.c \
+	gdbtk/generic/gdbtk.c \
+	gdbtk/generic/gdbtk-bp.c \
+	gdbtk/generic/gdbtk-cmds.c \
+	gdbtk/generic/gdbtk-hooks.c \
 	gdbtk/generic/gdbtk-interp.c \
-	gdbtk/generic/gdbtk-register.c gdbtk/generic/gdbtk-stack.c \
-	gdbtk/generic/gdbtk-varobj.c gdbtk/generic/gdbtk-wrapper.c \
-	gdbtk/generic/gdbtk-main.c
+	gdbtk/generic/gdbtk-main.c \
+	gdbtk/generic/gdbtk-register.c \
+	gdbtk/generic/gdbtk-stack.c \
+	gdbtk/generic/gdbtk-varobj.c \
+	gdbtk/generic/gdbtk-wrapper.c
+
 SUBDIR_GDBTK_DEPS = $(LIBGUI) $(TCL_DEPS) $(TK_DEPS)
 SUBDIR_GDBTK_LDFLAGS=
 SUBDIR_GDBTK_CFLAGS= -DGDBTK
@@ -611,12 +685,17 @@ RUNTEST = runtest
 RUNTESTFLAGS=
 
 # XML files to build in to GDB.
-XMLFILES = $(srcdir)/features/gdb-target.dtd $(srcdir)/features/xinclude.dtd \
+XMLFILES = \
+	$(srcdir)/features/btrace.dtd \
+	$(srcdir)/features/btrace-conf.dtd \
+	$(srcdir)/features/gdb-target.dtd \
 	$(srcdir)/features/library-list.dtd \
 	$(srcdir)/features/library-list-aix.dtd \
-	$(srcdir)/features/library-list-svr4.dtd $(srcdir)/features/osdata.dtd \
-	$(srcdir)/features/threads.dtd $(srcdir)/features/traceframe-info.dtd \
-	$(srcdir)/features/btrace.dtd $(srcdir)/features/btrace-conf.dtd
+	$(srcdir)/features/library-list-svr4.dtd \
+	$(srcdir)/features/osdata.dtd \
+	$(srcdir)/features/threads.dtd \
+	$(srcdir)/features/traceframe-info.dtd \
+	$(srcdir)/features/xinclude.dtd
 
 # This is ser-unix.o for any system which supports a v7/BSD/SYSV/POSIX
 # interface to the serial port.  Hopefully if get ported to OS/2, VMS,
@@ -628,8 +707,17 @@ SER_HARDWIRE = @SER_HARDWIRE@
 
 # The `remote' debugging target is supported for most architectures,
 # but not all (e.g. 960)
-REMOTE_OBS = remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o \
-	remote-notif.o ctf.o tracefile.o tracefile-tfile.o
+REMOTE_OBS = \
+	ax-gdb.o \
+	ax-general.o \
+	ctf.o \
+	dcache.o \
+	remote.o \
+	remote-fileio.o \
+	remote-notif.o \
+	tracefile.o \
+	tracefile-tfile.o \
+	tracepoint.o
 
 # This is remote-sim.o if a simulator is to be linked in.
 SIM_OBS = @SIM_OBS@
@@ -640,85 +728,160 @@ TARGET_OBS = @TARGET_OBS@
 # All target-dependent objects files that require 64-bit CORE_ADDR
 # (used with --enable-targets=all --enable-64-bit-bfd).
 ALL_64_TARGET_OBS = \
-	aarch64-tdep.o aarch64-linux-tdep.o aarch64-newlib-tdep.o aarch64-insn.o \
-	alphabsd-tdep.o alphafbsd-tdep.o alpha-linux-tdep.o alpha-mdebug-tdep.o \
-	alphanbsd-tdep.o alphaobsd-tdep.o alpha-tdep.o \
-	amd64fbsd-tdep.o amd64-darwin-tdep.o amd64-dicos-tdep.o \
-	amd64-linux-tdep.o amd64nbsd-tdep.o \
-	amd64obsd-tdep.o amd64-sol2-tdep.o amd64-tdep.o amd64-windows-tdep.o \
-	ia64-linux-tdep.o ia64-vms-tdep.o ia64-tdep.o \
+	aarch64-insn.o \
+	aarch64-linux-tdep.o \
+	aarch64-newlib-tdep.o \
+	aarch64-tdep.o \
+	alpha-linux-tdep.o \
+	alpha-mdebug-tdep.o \
+	alpha-tdep.o \
+	alphabsd-tdep.o \
+	alphafbsd-tdep.o \
+	alphanbsd-tdep.o \
+	alphaobsd-tdep.o \
+	amd64-darwin-tdep.o \
+	amd64-dicos-tdep.o \
+	amd64-linux-tdep.o \
+	amd64-sol2-tdep.o \
+	amd64-tdep.o \
+	amd64-windows-tdep.o \
+	amd64fbsd-tdep.o \
+	amd64nbsd-tdep.o \
+	amd64obsd-tdep.o \
+	ia64-linux-tdep.o \
+	ia64-tdep.o \
+	ia64-vms-tdep.o \
 	mips64obsd-tdep.o \
-	sparc64fbsd-tdep.o sparc64-linux-tdep.o sparc64nbsd-tdep.o \
-	sparc64obsd-tdep.o sparc64-sol2-tdep.o sparc64-tdep.o
+	sparc64-linux-tdep.o \
+	sparc64-sol2-tdep.o \
+	sparc64-tdep.o \
+	sparc64fbsd-tdep.o \
+	sparc64nbsd-tdep.o \
+	sparc64obsd-tdep.o
 
 # All other target-dependent objects files (used with --enable-targets=all).
 ALL_TARGET_OBS = \
 	arc-tdep.o \
-	armbsd-tdep.o arm.o arm-linux.o arm-linux-tdep.o \
-	arm-get-next-pcs.o arm-symbian-tdep.o \
-	armnbsd-tdep.o armobsd-tdep.o \
-	arm-tdep.o arm-wince-tdep.o \
+	arm.o \
+	arm-get-next-pcs.o \
+	arm-linux.o \
+	arm-linux-tdep.o \
+	arm-symbian-tdep.o \
+	arm-tdep.o \
+	arm-wince-tdep.o \
+	armbsd-tdep.o \
+	armnbsd-tdep.o \
+	armobsd-tdep.o \
 	avr-tdep.o \
-	bfin-linux-tdep.o bfin-tdep.o \
-	cris-linux-tdep.o cris-tdep.o \
+	bfin-linux-tdep.o \
+	bfin-tdep.o \
+	bsd-uthread.o \
+	cris-linux-tdep.o \
+	cris-tdep.o \
 	dicos-tdep.o \
 	fbsd-tdep.o \
-	frv-linux-tdep.o frv-tdep.o \
+	frv-linux-tdep.o \
+	frv-tdep.o \
 	ft32-tdep.o \
+	glibc-tdep.o \
 	h8300-tdep.o \
-	hppabsd-tdep.o hppanbsd-tdep.o hppaobsd-tdep.o \
-	hppa-linux-tdep.o hppa-tdep.o \
-	i386bsd-tdep.o i386-cygwin-tdep.o i386fbsd-tdep.o i386gnu-tdep.o \
-	i386-linux-tdep.o i386nbsd-tdep.o i386-nto-tdep.o i386obsd-tdep.o \
-	i386-sol2-tdep.o i386-tdep.o i387-tdep.o \
-	i386-dicos-tdep.o i386-darwin-tdep.o \
+	hppa-linux-tdep.o \
+	hppa-tdep.o \
+	hppabsd-tdep.o \
+	hppanbsd-tdep.o \
+	hppaobsd-tdep.o \
+	i386-cygwin-tdep.o \
+	i386-darwin-tdep.o \
+	i386-dicos-tdep.o \
+	i386-linux-tdep.o \
+	i386-nto-tdep.o \
+	i386-sol2-tdep.o \
+	i386-tdep.o \
+	i386bsd-tdep.o \
+	i386fbsd-tdep.o \
+	i386gnu-tdep.o \
+	i386nbsd-tdep.o \
+	i386obsd-tdep.o \
+	i387-tdep.o \
 	iq2000-tdep.o \
+	linux-record.o \
 	linux-tdep.o \
 	lm32-tdep.o \
 	m32c-tdep.o \
-	m32r-linux-tdep.o m32r-tdep.o \
+	m32r-linux-tdep.o \
+	m32r-tdep.o \
 	m68hc11-tdep.o \
-	m68kbsd-tdep.o m68klinux-tdep.o m68k-tdep.o \
+	m68k-tdep.o \
+	m68kbsd-tdep.o \
+	m68klinux-tdep.o \
 	m88k-tdep.o \
 	mep-tdep.o \
-	microblaze-tdep.o microblaze-linux-tdep.o \
-	mips-linux-tdep.o mips-sde-tdep.o \
-	mipsnbsd-tdep.o mips-tdep.o \
-	mn10300-linux-tdep.o mn10300-tdep.o \
+	microblaze-linux-tdep.o \
+	microblaze-tdep.o \
+	mips-linux-tdep.o \
+	mips-sde-tdep.o \
+	mips-tdep.o \
+	mipsnbsd-tdep.o \
+	mn10300-linux-tdep.o \
+	mn10300-tdep.o \
 	moxie-tdep.o \
 	msp430-tdep.o \
 	mt-tdep.o \
+	nbsd-tdep.o \
 	nds32-tdep.o \
-	nios2-tdep.o nios2-linux-tdep.o \
+	nios2-linux-tdep.o \
+	nios2-tdep.o \
 	nto-tdep.o \
-	ppc-linux-tdep.o ppcfbsd-tdep.o ppcnbsd-tdep.o ppcobsd-tdep.o  \
-	ppc-sysv-tdep.o ppc64-tdep.o rl78-tdep.o \
-	rs6000-aix-tdep.o rs6000-tdep.o solib-aix.o ppc-ravenscar-thread.o \
+	obsd-tdep.o \
+	ppc-linux-tdep.o \
+	ppc-ravenscar-thread.o \
+	ppc-sysv-tdep.o \
+	ppc64-tdep.o \
+	ppcfbsd-tdep.o \
+	ppcnbsd-tdep.o \
+	ppcobsd-tdep.o \
+	ravenscar-thread.o \
+	rl78-tdep.o \
+	rs6000-aix-tdep.o \
 	rs6000-lynx178-tdep.o \
+	rs6000-tdep.o \
 	rx-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 \
-	sparc-sol2-tdep.o sparc-tdep.o sparc-ravenscar-thread.o \
-	spu-tdep.o spu-multiarch.o solib-spu.o \
-	tic6x-tdep.o tic6x-linux-tdep.o \
-	tilegx-tdep.o tilegx-linux-tdep.o \
-	v850-tdep.o \
-	vaxnbsd-tdep.o vaxobsd-tdep.o vax-tdep.o \
-	xstormy16-tdep.o \
-	xtensa-config.o xtensa-tdep.o xtensa-linux-tdep.o \
-	glibc-tdep.o \
-	bsd-uthread.o \
-	nbsd-tdep.o obsd-tdep.o \
+	sh-linux-tdep.o \
+	sh-tdep.o \
+	sh64-tdep.o \
+	shnbsd-tdep.o \
 	sol2-tdep.o \
-	solib-frv.o solib-svr4.o \
-	solib-darwin.o solib-dsbt.o \
-	xcoffread.o \
+	solib-aix.o \
+	solib-darwin.o \
+	solib-dsbt.o \
+	solib-frv.o \
+	solib-spu.o \
+	solib-svr4.o \
+	sparc-linux-tdep.o \
+	sparc-ravenscar-thread.o \
+	sparc-sol2-tdep.o \
+	sparc-tdep.o \
+	sparcnbsd-tdep.o \
+	sparcobsd-tdep.o \
+	spu-multiarch.o \
+	spu-tdep.o \
 	symfile-mem.o \
+	tic6x-linux-tdep.o \
+	tic6x-tdep.o \
+	tilegx-linux-tdep.o \
+	tilegx-tdep.o \
+	v850-tdep.o \
+	vax-tdep.o \
+	vaxnbsd-tdep.o \
+	vaxobsd-tdep.o \
 	windows-tdep.o \
-	linux-record.o \
-	ravenscar-thread.o
+	xcoffread.o \
+	xstormy16-tdep.o \
+	xtensa-config.o \
+	xtensa-linux-tdep.o \
+	xtensa-tdep.o
 
 # Host-dependent makefile fragment comes in here.
 @host_makefile_frag@
@@ -821,80 +984,230 @@ TARGET_FLAGS_TO_PASS = \
 # Links made at configuration time should not be specified here, since
 # SFILES is used in building the distribution archive.
 
-SFILES = ada-exp.y ada-lang.c ada-typeprint.c ada-valprint.c ada-tasks.c \
+SFILES = \
+	ada-exp.y \
+	ada-lang.c \
+	ada-tasks.c \
+	ada-typeprint.c \
+	ada-valprint.c \
 	ada-varobj.c \
-	addrmap.c auto-load.c \
-	auxv.c ax-general.c ax-gdb.c \
+	addrmap.c \
 	agent.c \
+	annotate.c \
+	arch-utils.c \
+	auto-load.c \
+	auxv.c \
+	ax-gdb.c \
+	ax-general.c \
 	bcache.c \
 	bfd-target.c \
-	block.c blockframe.c \
-	breakpoint.c break-catch-sig.c break-catch-throw.c \
+	block.c \
+	blockframe.c \
+	break-catch-sig.c \
 	break-catch-syscall.c \
-	build-id.c buildsym.c \
-	c-exp.y c-lang.c c-typeprint.c c-valprint.c c-varobj.c \
-	charset.c common/cleanups.c cli-out.c coffread.c coff-pe-read.c \
-	complaints.c completer.c continuations.c corefile.c corelow.c \
-	cp-abi.c cp-support.c cp-namespace.c cp-valprint.c \
-	d-exp.y d-lang.c d-namespace.c d-valprint.c \
+	break-catch-throw.c \
+	breakpoint.c \
+	btrace.c \
+	build-id.c \
+	buildsym.c \
+	c-exp.y \
+	c-lang.c \
+	c-typeprint.c \
+	c-valprint.c \
+	c-varobj.c \
+	charset.c \
+	cli-out.c \
+	coff-pe-read.c \
+	coffread.c \
+	complaints.c \
+	completer.c \
+	continuations.c \
+	copying.c \
+	corefile.c \
+	corelow.c \
+	cp-abi.c \
 	cp-name-parser.y \
-	dbxread.c demangle.c dictionary.c disasm.c doublest.c \
-	dtrace-probe.c dummy-frame.c \
-	dwarf2expr.c dwarf2loc.c dwarf2read.c dwarf2-frame.c \
+	cp-namespace.c \
+	cp-support.c \
+	cp-valprint.c \
+	ctf.c \
+	d-exp.y \
+	d-lang.c \
+	d-namespace.c \
+	d-valprint.c \
+	dbxread.c \
+	demangle.c \
+	dfp.c \
+	dictionary.c \
+	disasm.c \
+	doublest.c \
+	dtrace-probe.c \
+	dummy-frame.c \
+	dwarf2-frame.c \
 	dwarf2-frame-tailcall.c \
-	elfread.c environ.c eval.c event-loop.c event-top.c \
-	exceptions.c expprint.c extension.c \
-	f-exp.y f-lang.c f-typeprint.c f-valprint.c filesystem.c \
-	findcmd.c findvar.c frame.c frame-base.c frame-unwind.c \
-	gdbarch.c arch-utils.c gdb_bfd.c gdb_obstack.c \
-	gdbtypes.c gnu-v2-abi.c gnu-v3-abi.c \
-	go-exp.y go-lang.c go-typeprint.c go-valprint.c \
+	dwarf2expr.c \
+	dwarf2loc.c \
+	dwarf2read.c \
+	elfread.c \
+	environ.c \
+	eval.c \
+	event-loop.c \
+	event-top.c \
+	exceptions.c \
+	expprint.c \
+	extension.c \
+	f-exp.y \
+	f-lang.c \
+	f-typeprint.c \
+	f-valprint.c \
+	filesystem.c \
+	findcmd.c \
+	findvar.c \
+	frame.c \
+	frame-base.c \
+	frame-unwind.c \
+	gcore.c \
+	gdb.c \
+	gdb_bfd.c \
+	gdb-dlfcn.c \
+	gdb_obstack.c \
+	gdb_usleep.c \
+	gdbarch.c \
+	gdbtypes.c \
+	gnu-v2-abi.c \
+	gnu-v3-abi.c \
+	go-exp.y \
+	go-lang.c \
+	go-typeprint.c \
+	go-valprint.c \
+	inf-child.c \
 	inf-loop.c \
 	infcall.c \
-	infcmd.c inflow.c infrun.c \
+	infcmd.c \
+	inferior.c \
+	inflow.c \
+	infrun.c \
 	inline-frame.c \
 	interps.c \
-	language.c linespec.c location.c minidebug.c \
-	m2-exp.y m2-lang.c m2-typeprint.c m2-valprint.c \
-	macrotab.c macroexp.c macrocmd.c macroscope.c main.c maint.c \
-	mdebugread.c memattr.c mem-break.c minsyms.c mipsread.c memory-map.c \
-	memrange.c mi/mi-common.c \
+	jit.c \
+	language.c \
+	linespec.c \
+	location.c \
+	m2-exp.y \
+	m2-lang.c \
+	m2-typeprint.c \
+	m2-valprint.c \
+	macrocmd.c \
+	macroexp.c \
+	macroscope.c \
+	macrotab.c \
+	main.c \
+	maint.c \
+	mdebugread.c \
+	mem-break.c \
+	memattr.c \
+	memory-map.c \
+	memrange.c \
+	minidebug.c \
+	minsyms.c \
+	mipsread.c \
 	namespace.c \
 	objc-lang.c \
-	objfiles.c osabi.c observer.c osdata.c \
+	objfiles.c \
+	observer.c \
 	opencl-lang.c \
-	p-exp.y p-lang.c p-typeprint.c p-valprint.c parse.c printcmd.c \
-	proc-service.list progspace.c \
-	prologue-value.c psymtab.c \
-	regcache.c reggroups.c remote.c remote-fileio.c remote-notif.c reverse.c \
-	rust-exp.y rust-lang.c \
-	selftest.c sentinel-frame.c \
-	serial.c ser-base.c ser-unix.c ser-event.c skip.c \
-	solib.c solib-target.c source.c \
-	stabsread.c stack.c probe.c stap-probe.c std-regs.c \
-	symfile.c symfile-debug.c symfile-mem.c symmisc.c symtab.c \
-	target.c target-dcache.c target-descriptions.c target-memory.c \
-	tid-parse.c thread.c top.c tracepoint.c \
+	osabi.c \
+	osdata.c \
+	p-exp.y \
+	p-lang.c \
+	p-typeprint.c \
+	p-valprint.c \
+	parse.c \
+	printcmd.c \
+	probe.c \
+	proc-service.list \
+	progspace.c \
+	prologue-value.c \
+	psymtab.c \
+	record.c \
+	record-btrace.c \
+	record-full.c \
+	regcache.c \
+	reggroups.c \
+	remote.c \
+	remote-fileio.c \
+	remote-notif.c \
+	reverse.c \
+	rust-exp.y \
+	rust-lang.c \
+	selftest.c \
+	sentinel-frame.c \
+	ser-base.c \
+	ser-event.c \
+	ser-unix.c \
+	serial.c \
+	skip.c \
+	sol-thread.c \
+	solib.c \
+	solib-target.c \
+	source.c \
+	stabsread.c \
+	stack.c \
+	stap-probe.c \
+	std-regs.c \
+	stub-termcap.c \
+	symfile.c \
+	symfile-debug.c \
+	symfile-mem.c \
+	symmisc.c \
+	symtab.c \
+	target.c \
+	target-dcache.c \
+	target-descriptions.c \
+	target-memory.c \
+	thread.c \
+	tid-parse.c \
+	top.c \
+	tracepoint.c \
 	trad-frame.c \
 	tramp-frame.c \
 	typeprint.c \
-	ui-out.c utils.c ui-file.h ui-file.c \
+	ui-file.c \
+	ui-file.h \
+	ui-out.c \
 	user-regs.c \
-	valarith.c valops.c valprint.c value.c varobj.c common/vec.c \
-	xml-tdesc.c xml-support.c \
-	inferior.c gdb_usleep.c \
-	record.c record-full.c gcore.c \
-	jit.c \
+	utils.c \
+	valarith.c \
+	valops.c \
+	valprint.c \
+	value.c \
+	varobj.c \
+	xml-support.c \
 	xml-syscall.c \
-	annotate.c common/signals.c copying.c dfp.c gdb.c inf-child.c \
-	sol-thread.c stub-termcap.c \
-	common/gdb_vecs.c common/common-utils.c common/xml-utils.c \
-	common/ptid.c common/buffer.c gdb-dlfcn.c common/agent.c \
-	common/format.c common/filestuff.c btrace.c record-btrace.c ctf.c \
-	target/waitstatus.c common/print-utils.c common/rsp-low.c \
-	common/errors.c common/common-debug.c common/common-exceptions.c \
-	common/btrace-common.c common/fileio.c common/common-regcache.c \
-	common/signals-state-save-restore.c common/new-op.c \
+	xml-tdesc.c \
+	common/agent.c \
+	common/btrace-common.c \
+	common/buffer.c \
+	common/cleanups.c \
+	common/common-debug.c \
+	common/common-exceptions.c \
+	common/common-regcache.c \
+	common/common-utils.c \
+	common/errors.c \
+	common/fileio.c \
+	common/filestuff.c \
+	common/format.c \
+	common/gdb_vecs.c \
+	common/new-op.c \
+	common/print-utils.c \
+	common/ptid.c \
+	common/rsp-low.c \
+	common/signals.c \
+	common/signals-state-save-restore.c \
+	common/vec.c \
+	common/xml-utils.c \
+	mi/mi-common.c \
+	target/waitstatus.c \
 	$(SUBDIR_GCC_COMPILE_SRCS)
 
 LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
@@ -906,94 +1219,351 @@ LINTFILES = $(SFILES) $(YYFILES) $(CONFIG_SRCS) init.c
 # right, it is probably easiest just to list .h files here directly.
 
 HFILES_NO_SRCDIR = \
-common/gdb_signals.h nat/gdb_thread_db.h common/gdb_vecs.h \
-common/x86-xstate.h nat/linux-ptrace.h nat/mips-linux-watch.h \
-proc-utils.h aarch64-tdep.h arc-tdep.h arm-tdep.h ax-gdb.h ppcfbsd-tdep.h \
-ppcnbsd-tdep.h cli-out.h gdb_expat.h breakpoint.h infcall.h obsd-tdep.h \
-exec.h m32r-tdep.h osabi.h gdbcore.h x86bsd-nat.h \
-i386bsd-nat.h xml-support.h xml-tdesc.h alphabsd-tdep.h gdb_obstack.h \
-ia64-tdep.h ada-lang.h varobj.h varobj-iter.h frv-tdep.h \
-nto-tdep.h serial.h \
-c-lang.h d-lang.h go-lang.h frame.h event-loop.h block.h cli/cli-setshow.h \
-cli/cli-decode.h cli/cli-cmds.h cli/cli-utils.h \
-cli/cli-script.h macrotab.h symtab.h common/version.h \
-compile/compile.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-linux-tdep.h arm-linux-tdep.h exceptions.h macroscope.h \
-gdbarch.h bsd-uthread.h memory-map.h memrange.h obsd-nat.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 \
-f-lang.h dwarf2loc.h value.h sparc-tdep.h defs.h target-descriptions.h \
-objfiles.h common/vec.h disasm.h mips-tdep.h ser-base.h \
-gdb_curses.h bfd-target.h memattr.h inferior.h ax.h dummy-frame.h \
-inflow.h fbsd-nat.h ia64-libunwind-tdep.h completer.h \
-solib-target.h gdb_vfork.h alpha-tdep.h dwarf2expr.h \
-m2-lang.h stack.h charset.h addrmap.h command.h solist.h source.h \
-target.h target-dcache.h prologue-value.h cp-abi.h tui/tui-hooks.h tui/tui.h \
-tui/tui-file.h tui/tui-command.h tui/tui-disasm.h tui/tui-wingeneral.h \
-tui/tui-windata.h tui/tui-data.h tui/tui-win.h tui/tui-stack.h \
-tui/tui-winsource.h tui/tui-regs.h tui/tui-io.h tui/tui-layout.h \
-tui/tui-source.h sol2-tdep.h gregset.h sh-tdep.h sh64-tdep.h \
-expression.h score-tdep.h gdb_select.h ser-tcp.h \
-extension.h extension-priv.h nat/aarch64-linux-hw-point.h \
-build-id.h buildsym.h valprint.h nat/aarch64-linux.h \
-typeprint.h mi/mi-getopt.h mi/mi-parse.h mi/mi-console.h \
-mi/mi-out.h mi/mi-main.h mi/mi-common.h mi/mi-cmds.h linux-nat.h \
-complaints.h gdb_proc_service.h gdb_regex.h xtensa-tdep.h inf-loop.h \
-common/gdb_wait.h common/gdb_assert.h solib.h ppc-tdep.h cp-support.h glibc-tdep.h \
-interps.h auxv.h gdbcmd.h tramp-frame.h mipsnbsd-tdep.h	\
-amd64-linux-tdep.h linespec.h location.h i387-tdep.h mn10300-tdep.h \
-sparc64-tdep.h ppcobsd-tdep.h \
-coff-pe-read.h parser-defs.h gdb_ptrace.h mips-linux-tdep.h \
-m68k-tdep.h spu-tdep.h environ.h amd64-tdep.h \
-doublest.h regset.h hppa-tdep.h ppc-linux-tdep.h ppc64-tdep.h \
-rs6000-tdep.h rs6000-aix-tdep.h \
-common/gdb_locale.h arch-utils.h trad-frame.h gnu-nat.h \
-language.h nbsd-tdep.h solib-svr4.h \
-macroexp.h ui-file.h regcache.h tracepoint.h tracefile.h i386-tdep.h \
-inf-child.h p-lang.h event-top.h gdbtypes.h user-regs.h \
-regformats/regdef.h config/i386/nm-i386gnu.h \
-config/i386/nm-fbsd.h \
-config/nm-nto.h config/sparc/nm-sol2.h config/nm-linux.h \
-top.h bsd-kvm.h gdb-stabs.h reggroups.h \
-annotate.h sim-regno.h dictionary.h dfp.h main.h frame-unwind.h	\
-remote-fileio.h i386-linux-tdep.h vax-tdep.h objc-lang.h \
-sentinel-frame.h bcache.h symfile.h windows-tdep.h linux-tdep.h \
-gdb_usleep.h jit.h xml-syscall.h microblaze-tdep.h \
-psymtab.h psympriv.h progspace.h bfin-tdep.h \
-amd64-darwin-tdep.h charset-list.h \
-config/djgpp/langinfo.h config/djgpp/nl_types.h darwin-nat.h \
-dicos-tdep.h filesystem.h gcore.h gdb_wchar.h hppabsd-tdep.h \
-i386-darwin-tdep.h x86-nat.h linux-record.h moxie-tdep.h nios2-tdep.h \
-ft32-tdep.h nds32-tdep.h \
-osdata.h procfs.h python/py-event.h python/py-events.h python/py-stopevent.h \
-python/python-internal.h python/python.h ravenscar-thread.h record.h \
-record-full.h solib-aix.h \
-solib-darwin.h solib-spu.h windows-nat.h xcoffread.h \
-gnulib/import/extra/snippet/arg-nonnull.h gnulib/import/extra/snippet/c++defs.h \
-gnulib/import/extra/snippet/warn-on-use.h \
-gnulib/import/stddef.in.h gnulib/import/inttypes.in.h inline-frame.h skip.h \
-common/common-utils.h common/xml-utils.h common/buffer.h common/ptid.h \
-common/format.h common/host-defs.h utils.h common/queue.h \
-nat/linux-osdata.h gdb-dlfcn.h auto-load.h probe.h stap-probe.h \
-gdb_bfd.h sparc-ravenscar-thread.h ppc-ravenscar-thread.h nat/linux-btrace.h \
-nat/ppc-linux.h ctf.h nat/x86-cpuid.h nat/x86-gcc-cpuid.h target/resume.h \
-target/wait.h target/waitstatus.h nat/linux-nat.h nat/linux-waitpid.h \
-common/print-utils.h common/rsp-low.h nat/x86-dregs.h x86-linux-nat.h \
-i386-linux-nat.h common/common-defs.h common/errors.h common/common-types.h \
-common/common-debug.h common/cleanups.h common/gdb_setjmp.h \
-common/common-exceptions.h target/target.h common/symbol.h \
-common/common-regcache.h fbsd-tdep.h nat/linux-personality.h \
-common/fileio.h nat/x86-linux.h nat/x86-linux-dregs.h nat/amd64-linux-siginfo.h\
-nat/linux-namespaces.h arch/arm.h common/gdb_sys_time.h arch/aarch64-insn.h \
-tid-parse.h ser-event.h \
-common/signals-state-save-restore.h
+	aarch64-tdep.h \
+	ada-lang.h \
+	addrmap.h \
+	alpha-tdep.h \
+	alphabsd-tdep.h \
+	amd64-darwin-tdep.h \
+	amd64-linux-tdep.h \
+	amd64-nat.h \
+	amd64-tdep.h \
+	annotate.h \
+	arc-tdep.h \
+	arch-utils.h \
+	arm-linux-tdep.h \
+	arm-tdep.h \
+	auto-load.h \
+	auxv.h \
+	ax.h \
+	ax-gdb.h \
+	bcache.h \
+	bfd-target.h \
+	bfin-tdep.h \
+	block.h \
+	breakpoint.h \
+	bsd-kvm.h \
+	bsd-uthread.h \
+	build-id.h \
+	buildsym.h \
+	c-lang.h \
+	charset.h \
+	charset-list.h \
+	cli-out.h \
+	coff-pe-read.h \
+	command.h \
+	complaints.h \
+	completer.h \
+	cp-abi.h \
+	cp-support.h \
+	ctf.h \
+	d-lang.h \
+	darwin-nat.h \
+	dcache.h \
+	defs.h \
+	dfp.h \
+	dicos-tdep.h \
+	dictionary.h \
+	disasm.h \
+	doublest.h \
+	dummy-frame.h \
+	dwarf2-frame.h \
+	dwarf2-frame-tailcall.h \
+	dwarf2expr.h \
+	dwarf2loc.h \
+	environ.h \
+	event-loop.h \
+	event-top.h \
+	exceptions.h \
+	exec.h \
+	expression.h \
+	extension.h \
+	extension-priv.h \
+	f-lang.h \
+	fbsd-nat.h \
+	fbsd-tdep.h \
+	filesystem.h \
+	frame.h \
+	frame-base.h \
+	frame-unwind.h \
+	frv-tdep.h \
+	ft32-tdep.h \
+	gcore.h \
+	gdb.h \
+	gdb_bfd.h \
+	gdb_curses.h \
+	gdb-dlfcn.h \
+	gdb_expat.h \
+	gdb_obstack.h \
+	gdb_proc_service.h \
+	gdb_ptrace.h \
+	gdb_regex.h \
+	gdb_select.h \
+	gdb-stabs.h \
+	gdb_usleep.h \
+	gdb_vfork.h \
+	gdb_wchar.h \
+	gdbarch.h \
+	gdbcmd.h \
+	gdbcore.h \
+	gdbthread.h \
+	gdbtypes.h \
+	glibc-tdep.h \
+	gnu-nat.h \
+	go-lang.h \
+	gregset.h \
+	hppa-linux-offsets.h \
+	hppa-tdep.h \
+	hppabsd-tdep.h \
+	i386-darwin-tdep.h \
+	i386-linux-nat.h \
+	i386-linux-tdep.h \
+	i386-tdep.h \
+	i386bsd-nat.h \
+	i387-tdep.h \
+	ia64-libunwind-tdep.h \
+	ia64-tdep.h \
+	inf-child.h \
+	inf-loop.h \
+	inf-ptrace.h \
+	infcall.h \
+	inferior.h \
+	inflow.h \
+	inline-frame.h \
+	interps.h \
+	jit.h \
+	language.h \
+	linespec.h \
+	linux-fork.h \
+	linux-nat.h \
+	linux-record.h \
+	linux-tdep.h \
+	location.h \
+	m2-lang.h \
+	m32r-tdep.h \
+	m68k-tdep.h \
+	m88k-tdep.h \
+	macroexp.h \
+	macroscope.h \
+	macrotab.h \
+	main.h \
+	mdebugread.h \
+	memattr.h \
+	memory-map.h \
+	memrange.h \
+	microblaze-tdep.h \
+	mips-linux-tdep.h \
+	mips-tdep.h \
+	mipsnbsd-tdep.h \
+	mn10300-tdep.h \
+	moxie-tdep.h \
+	nbsd-nat.h \
+	nbsd-tdep.h \
+	nds32-tdep.h \
+	nios2-tdep.h \
+	nto-tdep.h \
+	objc-lang.h \
+	objfiles.h \
+	obsd-nat.h \
+	obsd-tdep.h \
+	osabi.h \
+	osdata.h \
+	p-lang.h \
+	parser-defs.h \
+	ppc-linux-tdep.h \
+	ppc-ravenscar-thread.h \
+	ppc-tdep.h \
+	ppc64-tdep.h \
+	ppcfbsd-tdep.h \
+	ppcnbsd-tdep.h \
+	ppcobsd-tdep.h \
+	probe.h \
+	proc-utils.h \
+	procfs.h \
+	progspace.h \
+	prologue-value.h \
+	psympriv.h \
+	psymtab.h \
+	ravenscar-thread.h \
+	record.h \
+	record-full.h \
+	regcache.h \
+	reggroups.h \
+	regset.h \
+	remote.h \
+	remote-fileio.h \
+	remote-notif.h \
+	rs6000-aix-tdep.h \
+	rs6000-tdep.h \
+	s390-linux-tdep.h \
+	score-tdep.h \
+	sentinel-frame.h \
+	ser-base.h \
+	ser-event.h \
+	ser-tcp.h \
+	ser-unix.h \
+	serial.h \
+	sh-tdep.h \
+	sh64-tdep.h \
+	sim-regno.h \
+	skip.h \
+	sol2-tdep.h \
+	solib.h \
+	solib-aix.h \
+	solib-darwin.h \
+	solib-spu.h \
+	solib-svr4.h \
+	solib-target.h \
+	solist.h \
+	source.h \
+	sparc-nat.h \
+	sparc-ravenscar-thread.h \
+	sparc-tdep.h \
+	sparc64-tdep.h \
+	spu-tdep.h \
+	stabsread.h \
+	stack.h \
+	stap-probe.h \
+	symfile.h \
+	symtab.h \
+	target.h \
+	target-dcache.h \
+	target-descriptions.h \
+	terminal.h \
+	tid-parse.h \
+	top.h \
+	tracefile.h \
+	tracepoint.h \
+	trad-frame.h \
+	tramp-frame.h \
+	typeprint.h \
+	ui-file.h \
+	ui-out.h \
+	user-regs.h \
+	utils.h \
+	valprint.h \
+	value.h \
+	varobj.h \
+	varobj-iter.h \
+	vax-tdep.h \
+	windows-nat.h \
+	windows-tdep.h \
+	x86-linux-nat.h \
+	x86-nat.h \
+	x86bsd-nat.h \
+	xcoffread.h \
+	xml-support.h \
+	xml-syscall.h \
+	xml-tdesc.h \
+	xtensa-tdep.h \
+	arch/aarch64-insn.h \
+	arch/arm.h \
+	cli/cli-cmds.h \
+	cli/cli-decode.h \
+	cli/cli-script.h \
+	cli/cli-setshow.h \
+	cli/cli-utils.h \
+	common/buffer.h \
+	common/cleanups.h \
+	common/common-debug.h \
+	common/common-defs.h \
+	common/common-exceptions.h \
+	common/common-regcache.h \
+	common/common-types.h \
+	common/common-utils.h \
+	common/errors.h \
+	common/fileio.h \
+	common/format.h \
+	common/gdb_assert.h \
+	common/gdb_locale.h \
+	common/gdb_setjmp.h \
+	common/gdb_signals.h \
+	common/gdb_sys_time.h \
+	common/gdb_vecs.h \
+	common/gdb_wait.h \
+	common/host-defs.h \
+	common/print-utils.h \
+	common/ptid.h \
+	common/queue.h \
+	common/rsp-low.h \
+	common/signals-state-save-restore.h \
+	common/symbol.h \
+	common/vec.h \
+	common/version.h \
+	common/x86-xstate.h \
+	common/xml-utils.h \
+	compile/compile.h \
+	config/nm-linux.h \
+	config/nm-nto.h \
+	config/djgpp/langinfo.h \
+	config/djgpp/nl_types.h \
+	config/i386/nm-fbsd.h \
+	config/i386/nm-i386gnu.h \
+	config/sparc/nm-sol2.h \
+	gnulib/import/inttypes.in.h \
+	gnulib/import/stddef.in.h \
+	gnulib/import/stdint.in.h \
+	gnulib/import/str-two-way.h \
+	gnulib/import/string.in.h \
+	gnulib/import/extra/snippet/arg-nonnull.h \
+	gnulib/import/extra/snippet/c++defs.h \
+	gnulib/import/extra/snippet/warn-on-use.h \
+	mi/mi-cmds.h \
+	mi/mi-common.h \
+	mi/mi-console.h \
+	mi/mi-getopt.h \
+	mi/mi-main.h \
+	mi/mi-out.h \
+	mi/mi-parse.h \
+	nat/aarch64-linux.h \
+	nat/aarch64-linux-hw-point.h \
+	nat/amd64-linux-siginfo.h \
+	nat/gdb_thread_db.h \
+	nat/linux-btrace.h \
+	nat/linux-namespaces.h \
+	nat/linux-nat.h \
+	nat/linux-osdata.h \
+	nat/linux-personality.h \
+	nat/linux-ptrace.h \
+	nat/linux-waitpid.h \
+	nat/mips-linux-watch.h \
+	nat/ppc-linux.h \
+	nat/x86-cpuid.h \
+	nat/x86-dregs.h \
+	nat/x86-gcc-cpuid.h \
+	nat/x86-linux.h \
+	nat/x86-linux-dregs.h \
+	python/py-event.h \
+	python/py-events.h \
+	python/py-stopevent.h \
+	python/python.h \
+	python/python-internal.h \
+	regformats/regdef.h \
+	target/resume.h \
+	target/target.h \
+	target/wait.h \
+	target/waitstatus.h \
+	tui/tui.h \
+	tui/tui-command.h \
+	tui/tui-data.h \
+	tui/tui-disasm.h \
+	tui/tui-file.h \
+	tui/tui-hooks.h \
+	tui/tui-io.h \
+	tui/tui-layout.h \
+	tui/tui-regs.h \
+	tui/tui-source.h \
+	tui/tui-stack.h \
+	tui/tui-win.h \
+	tui/tui-windata.h \
+	tui/tui-wingeneral.h \
+	tui/tui-winsource.h
 
 # Header files that already have srcdir in them, or which are in objdir.
 
-HFILES_WITH_SRCDIR = ../bfd/bfd.h jit-reader.h
-
+HFILES_WITH_SRCDIR = \
+	../bfd/bfd.h \
+	jit-reader.h
 
 # GDB "info" files, which should be included in their entirety
 INFOFILES = gdb.info*
@@ -1015,80 +1585,208 @@ TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
 TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
 
 COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
-	version.o \
-	annotate.o \
+	ada-lang.o \
+	ada-tasks.o \
+	ada-typeprint.o \
+	ada-valprint.o \
+	ada-varobj.o \
 	addrmap.o \
-	auto-load.o auxv.o \
 	agent.o \
+	annotate.o \
+	arch-utils.o \
+	auto-load.o \
+	auxv.o \
+	bcache.o \
 	bfd-target.o \
-	blockframe.o breakpoint.o break-catch-sig.o break-catch-throw.o \
+	block.o \
+	blockframe.o \
+	break-catch-sig.o \
 	break-catch-syscall.o \
-	findvar.o regcache.o cleanups.o \
-	charset.o continuations.o corelow.o disasm.o dummy-frame.o dfp.o \
-	source.o value.o eval.o valops.o valarith.o valprint.o printcmd.o \
-	block.o symtab.o psymtab.o symfile.o symfile-debug.o symmisc.o \
-	linespec.o dictionary.o namespace.o \
-	location.o infcall.o \
-	infcmd.o infrun.o \
-	expprint.o environ.o stack.o tid-parse.o thread.o thread-fsm.o \
+	break-catch-throw.o \
+	breakpoint.o \
+	btrace.o \
+	btrace-common.o \
+	buffer.o \
+	build-id.o \
+	buildsym.o \
+	c-lang.o \
+	c-typeprint.o \
+	c-valprint.o \
+	c-varobj.o \
+	charset.o \
+	cleanups.o \
+	cli-out.o \
+	coff-pe-read.o \
+	coffread.o \
+	common-agent.o \
+	common-debug.o \
+	common-exceptions.o \
+	common-regcache.o \
+	common-utils.o \
+	complaints.o \
+	completer.o \
+	continuations.o \
+	copying.o \
+	corefile.o \
+	corelow.o \
+	cp-abi.o \
+	cp-namespace.o \
+	cp-support.o \
+	cp-valprint.o \
+	d-lang.o \
+	d-namespace.o \
+	d-valprint.o \
+	dbxread.o \
+	debug.o \
+	demangle.o \
+	dfp.o \
+	dictionary.o \
+	disasm.o \
+	doublest.o \
+	dummy-frame.o \
+	dwarf2-frame.o \
+	dwarf2-frame-tailcall.o \
+	dwarf2expr.o \
+	dwarf2loc.o \
+	dwarf2read.o \
+	environ.o \
+	errors.o \
+	eval.o \
+	event-loop.o \
+	event-top.o \
 	exceptions.o \
+	exec.o \
+	expprint.o \
 	extension.o \
-	filesystem.o \
+	f-lang.o \
+	f-typeprint.o \
+	f-valprint.o \
+	fileio.o \
 	filestuff.o \
+	filesystem.o \
+	findcmd.o \
+	findvar.o \
+	format.o \
+	frame.o \
+	frame-base.o \
+	frame-unwind.o \
+	gcore.o \
+	gdb_bfd.o \
+	gdb-dlfcn.o \
+	gdb_obstack.o \
+	gdb_usleep.o \
+	gdb_vecs.o \
+	gdbarch.o \
+	gdbtypes.o \
+	gnu-v2-abi.o \
+	gnu-v3-abi.o \
+	go-lang.o \
+	go-typeprint.o \
+	go-valprint.o \
 	inf-child.o \
+	inf-loop.o \
+	infcall.o \
+	infcmd.o \
+	inferior.o \
+	infrun.o \
+	inline-frame.o \
 	interps.o \
-	minidebug.o \
+	jit.o \
+	language.o \
+	linespec.o \
+	location.o \
+	m2-lang.o \
+	m2-typeprint.o \
+	m2-valprint.o \
+	macrocmd.o \
+	macroexp.o \
+	macroscope.o \
+	macrotab.o \
 	main.o \
-	macrotab.o macrocmd.o macroexp.o macroscope.o \
+	maint.o \
+	mdebugread.o \
+	mem-break.o \
+	memattr.o \
+	memory-map.o \
+	memrange.o \
 	mi-common.o \
-	event-loop.o event-top.o inf-loop.o completer.o \
-	gdbarch.o arch-utils.o gdbtypes.o gdb_bfd.o gdb_obstack.o \
-	osabi.o copying.o \
-	memattr.o mem-break.o target.o target-dcache.o parse.o language.o \
-	build-id.o buildsym.o \
-	findcmd.o \
-	std-regs.o \
-	signals-state-save-restore.o \
-	signals.o \
-	exec.o reverse.o \
-	bcache.o objfiles.o observer.o minsyms.o maint.o demangle.o \
-	dbxread.o coffread.o coff-pe-read.o \
-	dwarf2read.o mipsread.o stabsread.o corefile.o \
-	dwarf2expr.o dwarf2loc.o dwarf2-frame.o dwarf2-frame-tailcall.o \
-	ada-lang.o c-lang.o d-lang.o f-lang.o objc-lang.o \
-	ada-tasks.o ada-varobj.o c-varobj.o \
-	ui-out.o cli-out.o \
-	varobj.o vec.o \
-	go-lang.o go-valprint.o go-typeprint.o \
-	m2-lang.o opencl-lang.o p-lang.o p-typeprint.o p-valprint.o \
-	selftest.o sentinel-frame.o \
-	complaints.o typeprint.o \
-	ada-typeprint.o c-typeprint.o f-typeprint.o m2-typeprint.o \
-	ada-valprint.o c-valprint.o cp-valprint.o d-valprint.o f-valprint.o \
-	m2-valprint.o \
-	ser-event.o serial.o mdebugread.o top.o utils.o utils-selftests.o \
-	ui-file.o \
-	user-regs.o \
-	frame.o frame-unwind.o doublest.o \
-	frame-base.o \
-	inline-frame.o \
-	gnu-v2-abi.o gnu-v3-abi.o cp-abi.o cp-support.o \
-	cp-namespace.o d-namespace.o \
+	minidebug.o \
+	minsyms.o \
+	mipsread.o \
+	namespace.o \
+	new-op.o \
+	objc-lang.o \
+	objfiles.o \
+	observer.o \
+	opencl-lang.o \
+	osabi.o \
+	osdata.o \
+	p-lang.o \
+	p-typeprint.o \
+	p-valprint.o \
+	parse.o \
+	print-utils.o \
+	printcmd.o \
+	probe.o \
+	progspace.o \
+	prologue-value.o \
+	psymtab.o \
+	ptid.o \
+	record.o \
+	record-btrace.o \
+	record-full.o \
+	regcache.o \
 	reggroups.o \
+	registry.o \
+	reverse.o \
+	rsp-low.o \
 	rust-lang.o \
+	selftest.o \
+	sentinel-frame.o \
+	ser-event.o \
+	serial.o \
+	signals.o \
+	signals-state-save-restore.o \
+	skip.o \
+	solib.o \
+	solib-target.o \
+	source.o \
+	stabsread.o \
+	stack.o \
+	std-regs.o \
+	symfile.o \
+	symfile-debug.o \
+	symmisc.o \
+	symtab.o \
+	target.o \
+	target-dcache.o \
+	target-descriptions.o \
+	target-memory.o \
+	thread.o \
+	thread-fsm.o \
+	tid-parse.o \
+	top.o \
 	trad-frame.o \
 	tramp-frame.o \
-	solib.o solib-target.o \
-	prologue-value.o memory-map.o memrange.o \
-	xml-support.o xml-syscall.o xml-utils.o \
-	target-descriptions.o target-memory.o xml-tdesc.o xml-builtin.o \
-	inferior.o osdata.o gdb_usleep.o record.o record-full.o gcore.o \
-	gdb_vecs.o jit.o progspace.o skip.o probe.o \
-	common-utils.o buffer.o ptid.o gdb-dlfcn.o common-agent.o \
-	format.o registry.o btrace.o record-btrace.o waitstatus.o \
-	print-utils.o rsp-low.o errors.o common-debug.o debug.o \
-	common-exceptions.o btrace-common.o fileio.o \
-	common-regcache.o new-op.o \
+	typeprint.o \
+	ui-file.o \
+	ui-out.o \
+	user-regs.o \
+	utils.o \
+	utils-selftests.o \
+	valarith.o \
+	valops.o \
+	valprint.o \
+	value.o \
+	varobj.o \
+	vec.o \
+	version.o \
+	waitstatus.o \
+	xml-builtin.o \
+	xml-support.o \
+	xml-syscall.o \
+	xml-tdesc.o \
+	xml-utils.o \
 	$(SUBDIR_GCC_COMPILE_OBS)
 
 TSOBS = inflow.o
@@ -1103,15 +1801,28 @@ CLEANDIRS = $(SUBDIRS)
 REQUIRED_SUBDIRS = doc | testsuite | $(GNULIB_BUILDDIR) | data-directory
 
 # For now, shortcut the "configure GDB for fewer languages" stuff.
-YYFILES = c-exp.c \
-	cp-name-parser.c \
-	ada-lex.c \
+YYFILES = \
 	ada-exp.c \
-	d-exp.c f-exp.c go-exp.c m2-exp.c p-exp.c rust-exp.c
-YYOBJ = c-exp.o \
-	cp-name-parser.o \
+	ada-lex.c \
+	c-exp.c \
+	cp-name-parser.c \
+	d-exp.c \
+	f-exp.c \
+	go-exp.c \
+	m2-exp.c \
+	p-exp.c \
+	rust-exp.c
+
+YYOBJ = \
 	ada-exp.o \
-	d-exp.o f-exp.o go-exp.o m2-exp.o p-exp.o rust-exp.o
+	c-exp.o \
+	cp-name-parser.o \
+	d-exp.o \
+	f-exp.o \
+	go-exp.o \
+	m2-exp.o \
+	p-exp.o \
+	rust-exp.o
 
 # Things which need to be built when making a distribution.
 
@@ -1119,8 +1830,15 @@ DISTSTUFF = $(YYFILES)
 
 
 # All generated files which can be included by another file.
-generated_files = config.h observer.h observer.inc ada-lex.c jit-reader.h \
-	$(GNULIB_H) $(NAT_GENERATED_FILES) gcore
+generated_files = \
+	ada-lex.c \
+	config.h \
+	gcore \
+	jit-reader.h \
+	observer.h \
+	observer.inc \
+	$(GNULIB_H) \
+	$(NAT_GENERATED_FILES)
 
 # Flags needed to compile Python code
 PYTHON_CFLAGS=@PYTHON_CFLAGS@
@@ -1709,114 +2427,211 @@ force_update:
 MAKEOVERRIDES=
 
 ALLDEPFILES = \
-	aarch64-tdep.c aarch64-linux-tdep.c aarch64-newlib-tdep.c \
 	aarch64-linux-nat.c \
+	aarch64-linux-tdep.c \
+	aarch64-newlib-tdep.c \
+	aarch64-tdep.c \
 	aix-thread.c \
-	alphabsd-nat.c alpha-linux-nat.c \
-	alpha-tdep.c alpha-mdebug-tdep.c \
+	alpha-linux-nat.c \
 	alpha-linux-tdep.c \
-	alphabsd-tdep.c alphafbsd-tdep.c alphanbsd-tdep.c alphaobsd-tdep.c \
-	arc-tdep.c \
-	amd64-nat.c amd64-tdep.c \
-	amd64bsd-nat.c amd64fbsd-nat.c amd64fbsd-tdep.c \
-	amd64nbsd-nat.c amd64nbsd-tdep.c \
-	amd64obsd-nat.c amd64obsd-tdep.c \
+	alpha-mdebug-tdep.c \
+	alpha-tdep.c \
+	alphabsd-nat.c \
+	alphabsd-tdep.c \
+	alphafbsd-tdep.c \
+	alphanbsd-tdep.c \
+	alphaobsd-tdep.c \
 	amd64-darwin-tdep.c \
 	amd64-dicos-tdep.c \
-	amd64-linux-nat.c amd64-linux-tdep.c \
+	amd64-linux-nat.c \
+	amd64-linux-tdep.c \
+	amd64-nat.c \
 	amd64-sol2-tdep.c \
-	arm.c arm-get-next-pcs.c \
-	arm-linux.c arm-linux-nat.c arm-linux-tdep.c \
-	arm-symbian-tdep.c arm-tdep.c \
-	armnbsd-nat.c armbsd-tdep.c armnbsd-tdep.c armobsd-tdep.c \
+	amd64-tdep.c \
+	amd64bsd-nat.c \
+	amd64fbsd-nat.c \
+	amd64fbsd-tdep.c \
+	amd64nbsd-nat.c \
+	amd64nbsd-tdep.c \
+	amd64obsd-nat.c \
+	amd64obsd-tdep.c \
+	arc-tdep.c \
+	arm.c \
+	arm-get-next-pcs.c \
+	arm-linux.c \
+	arm-linux-nat.c \
+	arm-linux-tdep.c \
+	arm-symbian-tdep.c \
+	arm-tdep.c \
+	armbsd-tdep.c \
+	armnbsd-nat.c \
+	armnbsd-tdep.c \
+	armobsd-tdep.c \
 	avr-tdep.c \
-	bfin-linux-tdep.c bfin-tdep.c \
-	bsd-uthread.c bsd-kvm.c \
+	bfin-linux-tdep.c \
+	bfin-tdep.c \
+	bsd-kvm.c \
+	bsd-uthread.c \
 	core-regset.c \
-	dcache.c dicos-tdep.c darwin-nat.c \
+	darwin-nat.c \
+	dcache.c \
+	dcache.c \
+	dicos-tdep.c \
 	exec.c \
 	fbsd-nat.c \
 	fbsd-tdep.c \
 	fork-child.c \
 	ft32-tdep.c \
 	glibc-tdep.c \
-	go32-nat.c h8300-tdep.c \
+	go32-nat.c \
+	h8300-tdep.c \
+	hppa-linux-nat.c \
+	hppa-linux-tdep.c \
 	hppa-tdep.c \
-	hppa-linux-tdep.c hppa-linux-nat.c \
 	hppabsd-tdep.c \
-	hppanbsd-nat.c hppanbsd-tdep.c \
-	hppaobsd-nat.c hppaobsd-tdep.c \
-	i386-tdep.c i386-linux-nat.c \
-	i386v4-nat.c i386-cygwin-tdep.c \
-	i386bsd-nat.c i386bsd-tdep.c i386fbsd-nat.c i386fbsd-tdep.c \
-	i386nbsd-nat.c i386nbsd-tdep.c i386obsd-nat.c i386obsd-tdep.c \
-	i387-tdep.c \
-	i386-darwin-tdep.c i386-darwin-nat.c \
+	hppanbsd-nat.c \
+	hppanbsd-tdep.c \
+	hppaobsd-nat.c \
+	hppaobsd-tdep.c \
+	i386-cygwin-tdep.c \
+	i386-darwin-nat.c \
+	i386-darwin-tdep.c \
 	i386-dicos-tdep.c \
-	i386-linux-tdep.c x86-nat.c \
-	i386-sol2-nat.c i386-sol2-tdep.c \
-	i386gnu-nat.c i386gnu-tdep.c \
-	ia64-linux-nat.c ia64-linux-tdep.c ia64-tdep.c ia64-vms-tdep.c \
-	inf-ptrace.c \
+	i386-linux-nat.c \
+	i386-linux-tdep.c \
+	i386-sol2-nat.c \
+	i386-sol2-tdep.c \
+	i386-tdep.c \
+	i386bsd-nat.c \
+	i386bsd-tdep.c \
+	i386fbsd-nat.c \
+	i386fbsd-tdep.c \
+	i386gnu-nat.c \
+	i386gnu-tdep.c \
+	i386nbsd-nat.c \
+	i386nbsd-tdep.c \
+	i386obsd-nat.c \
+	i386obsd-tdep.c \
+	i386v4-nat.c \
+	i387-tdep.c \
 	ia64-libunwind-tdep.c \
+	ia64-linux-nat.c \
+	ia64-linux-tdep.c \
+	ia64-tdep.c \
+	ia64-vms-tdep.c \
+	inf-ptrace.c \
 	linux-fork.c \
-	linux-tdep.c \
 	linux-record.c \
+	linux-tdep.c \
 	lm32-tdep.c \
-	m68hc11-tdep.c \
+	m32r-linux-nat.c \
+	m32r-linux-tdep.c \
 	m32r-tdep.c \
-	m32r-linux-nat.c m32r-linux-tdep.c \
+	m68hc11-tdep.c \
 	m68k-tdep.c \
-	m68kbsd-nat.c m68kbsd-tdep.c \
-	m68klinux-nat.c m68klinux-tdep.c \
-	m88k-tdep.c m88kbsd-nat.c \
-	microblaze-tdep.c microblaze-linux-tdep.c \
-	mingw-hdep.c common/mingw-strerror.c \
-	mips-linux-nat.c mips-linux-tdep.c \
+	m68kbsd-nat.c \
+	m68kbsd-tdep.c \
+	m68klinux-nat.c \
+	m68klinux-tdep.c \
+	m88k-tdep.c \
+	m88kbsd-nat.c \
+	microblaze-linux-tdep.c \
+	microblaze-tdep.c \
+	mingw-hdep.c \
+	mips-linux-nat.c \
+	mips-linux-tdep.c \
 	mips-sde-tdep.c \
 	mips-tdep.c \
-	mipsnbsd-nat.c mipsnbsd-tdep.c \
-	mips64obsd-nat.c mips64obsd-tdep.c \
+	mips64obsd-nat.c \
+	mips64obsd-tdep.c \
+	mipsnbsd-nat.c \
+	mipsnbsd-tdep.c \
 	msp430-tdep.c \
+	nbsd-nat.c \
+	nbsd-tdep.c \
 	nds32-tdep.c \
-	nios2-tdep.c nios2-linux-tdep.c \
-	nbsd-nat.c nbsd-tdep.c obsd-nat.c obsd-tdep.c \
-	posix-hdep.c common/posix-strerror.c \
-	ppc-sysv-tdep.c ppc-linux-nat.c ppc-linux-tdep.c ppc64-tdep.c \
-	ppcfbsd-nat.c ppcfbsd-tdep.c \
-	ppcnbsd-nat.c ppcnbsd-tdep.c \
-	ppcobsd-nat.c ppcobsd-tdep.c \
+	nios2-linux-tdep.c \
+	nios2-tdep.c \
+	obsd-nat.c \
+	obsd-tdep.c \
+	posix-hdep.c \
+	ppc-linux-nat.c \
+	ppc-linux-tdep.c \
+	ppc-ravenscar-thread.c \
+	ppc-sysv-tdep.c \
+	ppc64-tdep.c \
+	ppcfbsd-nat.c \
+	ppcfbsd-tdep.c \
+	ppcnbsd-nat.c \
+	ppcnbsd-tdep.c \
+	ppcobsd-nat.c \
+	ppcobsd-tdep.c \
 	procfs.c \
 	ravenscar-thread.c \
 	remote-sim.c \
-	dcache.c \
 	rl78-tdep.c \
-	rs6000-nat.c rs6000-tdep.c solib-aix.c ppc-ravenscar-thread.c \
 	rs6000-lynx178-tdep.c \
+	rs6000-nat.c \
+	rs6000-tdep.c \
 	rx-tdep.c \
-	s390-linux-tdep.c s390-linux-nat.c \
+	s390-linux-nat.c \
+	s390-linux-tdep.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 \
+	ser-go32.c \
+	ser-mingw.c \
+	ser-pipe.c \
+	ser-tcp.c \
+	sh-tdep.c \
+	sh64-tdep.c \
+	shnbsd-nat.c \
+	shnbsd-tdep.c \
 	sol2-tdep.c \
+	solib-aix.c \
+	solib-spu.c \
 	solib-svr4.c \
-	sparc-linux-nat.c sparc-linux-tdep.c \
-	sparc-sol2-nat.c sparc-sol2-tdep.c sparc64-sol2-tdep.c \
-	sparc-nat.c sparc-tdep.c sparc64-linux-nat.c sparc64-linux-tdep.c \
-	sparc64-nat.c sparc64-tdep.c sparc64fbsd-nat.c sparc64fbsd-tdep.c \
-	sparc64nbsd-nat.c sparc64nbsd-tdep.c \
-	sparc64obsd-nat.c sparc64obsd-tdep.c \
-	sparcnbsd-nat.c sparcnbsd-tdep.c sparcobsd-tdep.c \
+	sparc-linux-nat.c \
+	sparc-linux-tdep.c \
+	sparc-nat.c \
 	sparc-ravenscar-thread.c \
-	spu-linux-nat.c spu-tdep.c spu-multiarch.c solib-spu.c \
-	tilegx-linux-nat.c tilegx-tdep.c tilegx-linux-tdep.c \
+	sparc-sol2-nat.c \
+	sparc-sol2-tdep.c \
+	sparc-tdep.c \
+	sparc64-linux-nat.c \
+	sparc64-linux-tdep.c \
+	sparc64-nat.c \
+	sparc64-sol2-tdep.c \
+	sparc64-tdep.c \
+	sparc64fbsd-nat.c \
+	sparc64fbsd-tdep.c \
+	sparc64nbsd-nat.c \
+	sparc64nbsd-tdep.c \
+	sparc64obsd-nat.c \
+	sparc64obsd-tdep.c \
+	sparcnbsd-nat.c \
+	sparcnbsd-tdep.c \
+	sparcobsd-tdep.c \
+	spu-linux-nat.c \
+	spu-multiarch.c \
+	spu-tdep.c \
+	tilegx-linux-nat.c \
+	tilegx-linux-tdep.c \
+	tilegx-tdep.c \
 	v850-tdep.c \
-	vax-tdep.c vaxbsd-nat.c vaxnbsd-tdep.c \
-	windows-nat.c windows-tdep.c \
+	vax-tdep.c \
+	vaxbsd-nat.c \
+	vaxnbsd-tdep.c \
+	windows-nat.c \
+	windows-tdep.c \
+	x86-nat.c \
 	xcoffread.c \
 	xstormy16-tdep.c \
-	xtensa-tdep.c xtensa-config.c \
-	xtensa-linux-tdep.c xtensa-linux-nat.c xtensa-xtregs.c
+	xtensa-config.c \
+	xtensa-linux-nat.c \
+	xtensa-linux-tdep.c \
+	xtensa-tdep.c \
+	xtensa-xtregs.c \
+	common/mingw-strerror.c \
+	common/posix-strerror.c
 
 # Some files need explicit build rules (due to -Werror problems) or due
 # to sub-directory fun 'n' games.
diff --git a/gdb/data-directory/Makefile.in b/gdb/data-directory/Makefile.in
index 3f23516..51b5c2a 100644
--- a/gdb/data-directory/Makefile.in
+++ b/gdb/data-directory/Makefile.in
@@ -16,6 +16,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Please keep lists in this file sorted alphabetically, with one item per line.
+# See gdb/Makefile.in for guidelines on ordering files and directories.
+
 srcdir = @srcdir@
 SYSCALLS_SRCDIR = $(srcdir)/../syscalls
 PYTHON_SRCDIR = $(srcdir)/../python/lib
@@ -45,12 +48,20 @@ GDB_DATADIR = @GDB_DATADIR@
 
 SYSCALLS_DIR = syscalls
 SYSCALLS_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(SYSCALLS_DIR)
-GEN_SYSCALLS_FILES = arm-linux.xml aarch64-linux.xml \
-	ppc-linux.xml ppc64-linux.xml \
-	i386-linux.xml amd64-linux.xml \
-	sparc-linux.xml sparc64-linux.xml \
-	mips-o32-linux.xml mips-n32-linux.xml mips-n64-linux.xml \
-	s390-linux.xml s390x-linux.xml
+GEN_SYSCALLS_FILES = \
+	aarch64-linux.xml \
+	amd64-linux.xml \
+	arm-linux.xml \
+	i386-linux.xml \
+	mips-n32-linux.xml \
+	mips-n64-linux.xml \
+	mips-o32-linux.xml \
+	ppc-linux.xml \
+	ppc64-linux.xml \
+	s390-linux.xml \
+	s390x-linux.xml \
+	sparc-linux.xml \
+	sparc64-linux.xml
 
 SYSCALLS_FILES = gdb-syscalls.dtd freebsd.xml $(GEN_SYSCALLS_FILES)
 
@@ -58,22 +69,22 @@ PYTHON_DIR = python
 PYTHON_INSTALL_DIR = $(DESTDIR)$(GDB_DATADIR)/$(PYTHON_DIR)
 PYTHON_FILE_LIST = \
 	gdb/__init__.py \
-	gdb/frames.py \
-	gdb/FrameIterator.py \
 	gdb/FrameDecorator.py \
-	gdb/types.py \
+	gdb/FrameIterator.py \
+	gdb/frames.py \
 	gdb/printing.py \
-	gdb/unwinder.py \
 	gdb/prompt.py \
+	gdb/types.py \
+	gdb/unwinder.py \
 	gdb/xmethod.py \
 	gdb/command/__init__.py \
-	gdb/command/xmethods.py \
+	gdb/command/explore.py \
 	gdb/command/frame_filters.py \
-	gdb/command/unwinders.py \
-	gdb/command/type_printers.py \
 	gdb/command/pretty_printers.py \
 	gdb/command/prompt.py \
-	gdb/command/explore.py \
+	gdb/command/type_printers.py \
+	gdb/command/unwinders.py \
+	gdb/command/xmethods.py \
 	gdb/function/__init__.py \
 	gdb/function/as_string.py \
 	gdb/function/caller_is.py \
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index c25d21e..70e2dce 100644
--- a/gdb/gdbserver/Makefile.in
+++ b/gdb/gdbserver/Makefile.in
@@ -15,6 +15,9 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Please keep lists in this file sorted alphabetically, with one item per line.
+# See gdb/Makefile.in for guidelines on ordering files and directories.
+
 prefix = @prefix@
 exec_prefix = @exec_prefix@
 
@@ -146,43 +149,74 @@ INTERNAL_LDFLAGS = $(LDFLAGS) @RDYNAMIC@
 
 # All source files that go into linking GDB remote server.
 
-SFILES=	$(srcdir)/gdbreplay.c $(srcdir)/inferiors.c $(srcdir)/dll.c \
-	$(srcdir)/mem-break.c $(srcdir)/proc-service.c \
-	$(srcdir)/proc-service.list $(srcdir)/regcache.c \
-	$(srcdir)/remote-utils.c $(srcdir)/server.c $(srcdir)/target.c \
-	$(srcdir)/thread-db.c $(srcdir)/utils.c $(srcdir)/debug.c \
+SFILES = \
+	$(srcdir)/debug.c \
+	$(srcdir)/dll.c \
+	$(srcdir)/gdbreplay.c \
+	$(srcdir)/hostio.c \
+	$(srcdir)/hostio-errno.c \
+	$(srcdir)/i387-fp.c \
+	$(srcdir)/inferiors.c \
 	$(srcdir)/linux-aarch64-low.c \
-	$(srcdir)/linux-arm-low.c $(srcdir)/linux-bfin-low.c \
-	$(srcdir)/linux-cris-low.c $(srcdir)/linux-crisv32-low.c \
-	${srcdir}/x86-low.c $(srcdir)/i387-fp.c \
-	$(srcdir)/linux-ia64-low.c $(srcdir)/linux-low.c \
+	$(srcdir)/linux-arm-low.c \
+	$(srcdir)/linux-bfin-low.c \
+	$(srcdir)/linux-cris-low.c \
+	$(srcdir)/linux-crisv32-low.c \
+	$(srcdir)/linux-ia64-low.c \
+	$(srcdir)/linux-low.c \
 	$(srcdir)/linux-m32r-low.c \
-	$(srcdir)/linux-m68k-low.c $(srcdir)/linux-mips-low.c \
+	$(srcdir)/linux-m68k-low.c \
+	$(srcdir)/linux-mips-low.c \
 	$(srcdir)/linux-nios2-low.c \
-	$(srcdir)/linux-ppc-low.c $(srcdir)/nat/ppc-linux.c \
+	$(srcdir)/linux-ppc-low.c \
 	$(srcdir)/linux-s390-low.c \
-	$(srcdir)/linux-sh-low.c $(srcdir)/linux-sparc-low.c \
+	$(srcdir)/linux-sh-low.c \
+	$(srcdir)/linux-sparc-low.c \
+	$(srcdir)/linux-tile-low.c \
 	$(srcdir)/linux-x86-low.c \
 	$(srcdir)/linux-xtensa-low.c \
-	$(srcdir)/linux-tile-low.c \
-	$(srcdir)/win32-arm-low.c $(srcdir)/win32-i386-low.c \
-	$(srcdir)/win32-low.c $(srcdir)/wincecompat.c \
-	$(srcdir)/hostio.c $(srcdir)/hostio-errno.c \
-	$(srcdir)/common/vec.c $(srcdir)/common/gdb_vecs.c \
-	$(srcdir)/common/common-utils.c $(srcdir)/common/xml-utils.c \
-	$(srcdir)/nat/linux-osdata.c $(srcdir)/common/ptid.c \
-	$(srcdir)/nat/linux-personality.c \
-	$(srcdir)/common/buffer.c $(srcdir)/nat/linux-btrace.c \
-	$(srcdir)/common/filestuff.c $(srcdir)/target/waitstatus.c \
-	$(srcdir)/nat/mips-linux-watch.c $(srcdir)/common/print-utils.c \
-	$(srcdir)/common/rsp-low.c $(srcdir)/common/errors.c \
-	$(srcdir)/common/common-debug.c $(srcdir)/common/cleanups.c \
-	$(srcdir)/common/common-exceptions.c $(srcdir)/symbol.c \
+	$(srcdir)/mem-break.c \
+	$(srcdir)/proc-service.c \
+	$(srcdir)/proc-service.list \
+	$(srcdir)/regcache.c \
+	$(srcdir)/remote-utils.c \
+	$(srcdir)/server.c \
+	$(srcdir)/symbol.c \
+	$(srcdir)/target.c \
+	$(srcdir)/thread-db.c \
+	$(srcdir)/utils.c \
+	$(srcdir)/win32-arm-low.c \
+	$(srcdir)/win32-i386-low.c \
+	$(srcdir)/win32-low.c \
+	$(srcdir)/wincecompat.c \
+	$(srcdir)/arch/arm.c \
+	$(srcdir)/arch/arm-get-next-pcs.c \
+	$(srcdir)/arch/arm-linux.c \
 	$(srcdir)/common/btrace-common.c \
-	$(srcdir)/common/fileio.c $(srcdir)/nat/linux-namespaces.c \
-	$(srcdir)/arch/arm.c $(srcdir)/common/common-regcache.c \
-	$(srcdir)/arch/arm-linux.c $(srcdir)/arch/arm-get-next-pcs.c \
-	$(srcdir)/common/new-op.c
+	$(srcdir)/common/buffer.c \
+	$(srcdir)/common/cleanups.c \
+	$(srcdir)/common/common-debug.c \
+	$(srcdir)/common/common-exceptions.c \
+	$(srcdir)/common/common-regcache.c \
+	$(srcdir)/common/common-utils.c \
+	$(srcdir)/common/errors.c \
+	$(srcdir)/common/fileio.c \
+	$(srcdir)/common/filestuff.c \
+	$(srcdir)/common/gdb_vecs.c \
+	$(srcdir)/common/new-op.c \
+	$(srcdir)/common/print-utils.c \
+	$(srcdir)/common/ptid.c \
+	$(srcdir)/common/rsp-low.c \
+	$(srcdir)/common/vec.c \
+	$(srcdir)/common/xml-utils.c \
+	$(srcdir)/nat/linux-btrace.c \
+	$(srcdir)/nat/linux-namespaces.c \
+	$(srcdir)/nat/linux-osdata.c \
+	$(srcdir)/nat/linux-personality.c \
+	$(srcdir)/nat/mips-linux-watch.c \
+	$(srcdir)/nat/ppc-linux.c \
+	$(srcdir)/target/waitstatus.c \
+	${srcdir}/x86-low.c
 
 DEPFILES = @GDBSERVER_DEPFILES@
 
@@ -191,14 +225,50 @@ LIBOBJS = @LIBOBJS@
 SOURCES = $(SFILES)
 TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
 
-OBS = agent.o ax.o inferiors.o regcache.o remote-utils.o server.o signals.o \
-      target.o waitstatus.o utils.o debug.o version.o vec.o gdb_vecs.o \
-      mem-break.o hostio.o event-loop.o tracepoint.o xml-utils.o \
-      common-utils.o ptid.o buffer.o format.o filestuff.o dll.o notif.o \
-      tdesc.o print-utils.o rsp-low.o errors.o common-debug.o cleanups.o \
-      common-exceptions.o symbol.o btrace-common.o fileio.o common-regcache.o \
-      signals-state-save-restore.o new-op.o \
-      $(XML_BUILTIN) $(DEPFILES) $(LIBOBJS)
+OBS = \
+	agent.o \
+	ax.o \
+	btrace-common.o \
+	buffer.o \
+	cleanups.o \
+	common-debug.o \
+	common-exceptions.o \
+	common-regcache.o \
+	common-utils.o \
+	debug.o \
+	dll.o \
+	errors.o \
+	event-loop.o \
+	fileio.o \
+	filestuff.o \
+	format.o \
+	gdb_vecs.o \
+	hostio.o \
+	inferiors.o \
+	mem-break.o \
+	new-op.o \
+	notif.o \
+	print-utils.o \
+	ptid.o \
+	regcache.o \
+	remote-utils.o \
+	rsp-low.o \
+	server.o \
+	signals.o \
+	signals-state-save-restore.o \
+	symbol.o \
+	target.o \
+	tdesc.o \
+	tracepoint.o \
+	utils.o \
+	vec.o \
+	version.o \
+	waitstatus.o \
+	xml-utils.o \
+	$(DEPFILES) \
+	$(LIBOBJS) \
+	$(XML_BUILTIN)
+
 GDBREPLAY_OBS = gdbreplay.o version.o
 GDBSERVER_LIBS = @GDBSERVER_LIBS@
 XM_CLIBS = @LIBS@
diff --git a/gdb/testsuite/gdb.base/default.exp b/gdb/testsuite/gdb.base/default.exp
index b8a449b..c5a9072 100644
--- a/gdb/testsuite/gdb.base/default.exp
+++ b/gdb/testsuite/gdb.base/default.exp
@@ -511,7 +511,7 @@ gdb_test "set history size" "Argument required .integer to set it to.*" "set his
 #test set history
 gdb_test "set history" "\"set history\" must be followed by the name of a history subcommand.(\[^\r\n\]*\[\r\n\])+List of set history subcommands:(\[^\r\n\]*\[\r\n\])+set history expansion -- Set history expansion on command input(\[^\r\n\]*\[\r\n\])+set history filename -- Set the filename in which to record the command history(\[^\r\n\]*\[\r\n\])+set history save -- Set saving of the history record on exit(\[^\r\n\]*\[\r\n\])+set history size -- Set the size of the command history(\[^\r\n\]*\[\r\n\])+Type \"help set history\" followed by set history subcommand name for full documentation.(\[^\r\n\]*\[\r\n\])+Command name abbreviations are allowed if unambiguous." "set history"
 #test set language
-gdb_test "set language" "Requires an argument. Valid arguments are auto, local, unknown, ada, c, c.., asm, minimal, d, fortran, objective-c, go, modula-2, opencl, pascal, rust." "set language"
+gdb_test "set language" "Requires an argument. Valid arguments are ada, c, c.., asm, minimal, d, fortran, go, auto, local, unknown, modula-2, objective-c, opencl, pascal, rust." "set language"
 #test set listsize
 gdb_test "set listsize" "Argument required .integer to set it to.*" "set listsize"
 #test set print "p" abbreviation
-- 
2.10.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 1/3] Makefiles: Flatten and sort file lists
       [not found]   ` <bef8fae4-4c94-493e-b5f0-93521f1083f3@redhat.com>
@ 2016-11-22 21:01     ` Simon Marchi
  0 siblings, 0 replies; 6+ messages in thread
From: Simon Marchi @ 2016-11-22 21:01 UTC (permalink / raw)
  To: Pedro Alves; +Cc: gdb-patches@sourceware.org

On 2016-11-22 11:31, Pedro Alves wrote:
> On 11/19/2016 04:08 AM, Simon Marchi wrote:
> 
>> Running the patch through the buildbot found that gdb.base/default.exp
>> started to fail.  The languages in the error message shown when typing
>> "set language" have changed order.  We could probably improve gdb so
>> that it prints them in a stable order, regardless of the order of the
>> object list passed to the linked, but just fixing the test is easier 
>> for
>> now.
> 
> Eh.

Now I feel like I have to do something about it. :)

The least we could do is make sure to keep the languages vector sorted 
when adding a new language, so the order of printing would be guaranteed 
to be stable.  But I kinda liked that the "special" languages (auto, 
local, unknown) were placed at the beginning.  We can probably keep them 
at the beginning of the vector with a custom comparator function.  WDYT?


>>  SUBDIR_GCC_COMPILE_SRCS = \
>>  	compile/compile.c \
>> +	compile/compile-c-support.c \
>>  	compile/compile-c-symbols.c \
>>  	compile/compile-c-types.c \
>> +	compile/compile-loc2c.c \
>>  	compile/compile-object-load.c \
>>  	compile/compile-object-load.h \
>>  	compile/compile-object-run.c \
>> -	compile/compile-object-run.h \
>> -	compile/compile-loc2c.c \
>> -	compile/compile-c-support.c
>> +	compile/compile-object-run.h
> 
> Unrelated to the patch, but I wonder why we have .h files here?
> Probably no good reason.

No idea, but they're not listed anywhere else, so they're probably not 
checked by check-headers or indexed by tags.  I am not familiar with all 
the features of the Makefile, so I didn't want to start removing stuff I 
didn't understand.

>> ...
>> +	$(srcdir)/target/waitstatus.c \
>> +	${srcdir}/x86-low.c
> 
> This last one should come before the dirs.
> 
> OK with that fixed.

Ah, it uses curly braces instead of parentheses, so it managed to beat 
my super fancy sorting script.  Fixed locally.

Thanks for reviewing!

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2 0/3] More Makefile cleanups
  2016-11-19  4:08 [PATCH v2 0/3] More Makefile cleanups Simon Marchi
                   ` (2 preceding siblings ...)
  2016-11-19  4:08 ` [PATCH v2 3/3] Minor formatting fixups in Makefiles Simon Marchi
@ 2016-11-22 21:18 ` Simon Marchi
  3 siblings, 0 replies; 6+ messages in thread
From: Simon Marchi @ 2016-11-22 21:18 UTC (permalink / raw)
  To: gdb-patches

On 2016-11-18 23:08, Simon Marchi wrote:
> This patch series is the v2 of patches 3 and 4 of my original
> Makefile-related series:
> 
>   https://sourceware.org/ml/gdb-patches/2016-11/msg00326.html
> 
>  - Patch 1 organizes file lists in the Makefiles.
>  - Patch 2 renames many architecture files to match our defacto naming
>    convention.
>  - Patch 3 is new, it contains a few whitespace inconsistency fixes 
> that didn't
>    fit in the other patches.
> 
> Simon Marchi (3):
>   Makefiles: Flatten and sort file lists
>   Normalize names of some source files
>   Minor formatting fixups in Makefiles

I just pushed this series, including the little fixup in patch 1.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-11-22 21:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-19  4:08 [PATCH v2 0/3] More Makefile cleanups Simon Marchi
2016-11-19  4:08 ` [PATCH v2 1/3] Makefiles: Flatten and sort file lists Simon Marchi
     [not found]   ` <bef8fae4-4c94-493e-b5f0-93521f1083f3@redhat.com>
2016-11-22 21:01     ` Simon Marchi
2016-11-19  4:08 ` [PATCH v2 2/3] Normalize names of some source files Simon Marchi
2016-11-19  4:08 ` [PATCH v2 3/3] Minor formatting fixups in Makefiles Simon Marchi
2016-11-22 21:18 ` [PATCH v2 0/3] More Makefile cleanups Simon Marchi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).