aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver/Makefile.in
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2016-11-22 16:14:22 -0500
committerSimon Marchi <simon.marchi@ericsson.com>2016-11-23 09:45:22 -0500
commitb593ecca856860a8b38deb808493bba4beef3aee (patch)
tree243b9c409075f4b821f25a282cc89860f923d083 /gdb/gdbserver/Makefile.in
parent1a9ccd70f9a75dc6b48d340059f28ef3550c107b (diff)
downloadgdb-b593ecca856860a8b38deb808493bba4beef3aee.zip
gdb-b593ecca856860a8b38deb808493bba4beef3aee.tar.gz
gdb-b593ecca856860a8b38deb808493bba4beef3aee.tar.bz2
Makefiles: Flatten and sort file lists
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".
Diffstat (limited to 'gdb/gdbserver/Makefile.in')
-rw-r--r--gdb/gdbserver/Makefile.in146
1 files changed, 108 insertions, 38 deletions
diff --git a/gdb/gdbserver/Makefile.in b/gdb/gdbserver/Makefile.in
index c25d21e..261ab55 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)/x86-low.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
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@