mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-06 23:50:09 +08:00
Add common/ dir in build directories
gdb/ * Makefile.in: (COMMON_SFILES): Add common/*.c files. (SFILES): Remove common/*.c files. (COMMON_OBS): Remove some *.o files built from common/*.c files. * common/common.host: Add common reference. * configure.ac: Likewise. * configure: Regenerate. gdbserver/ * Makefile.in: Add common directory in build. * configure.ac: Add common reference. * configure: Regenerate.
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2018-02-19 Alan Hayward <alan.hayward@arm.com>
|
||||||
|
|
||||||
|
* Makefile.in: (COMMON_SFILES): Add common/*.c files.
|
||||||
|
(SFILES): Remove common/*.c files.
|
||||||
|
(COMMON_OBS): Remove some *.o files built from common/*.c files.
|
||||||
|
* common/common.host: Add common reference.
|
||||||
|
* configure.ac: Likewise.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2018-02-16 Yao Qi <yao.qi@linaro.org>
|
2018-02-16 Yao Qi <yao.qi@linaro.org>
|
||||||
|
|
||||||
* block.c (block_namespace_info): Inherit allocate_on_obstack.
|
* block.c (block_namespace_info): Inherit allocate_on_obstack.
|
||||||
|
@ -524,7 +524,7 @@ CONFIG_INSTALL = @CONFIG_INSTALL@
|
|||||||
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
CONFIG_UNINSTALL = @CONFIG_UNINSTALL@
|
||||||
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
|
HAVE_NATIVE_GCORE_TARGET = @HAVE_NATIVE_GCORE_TARGET@
|
||||||
|
|
||||||
CONFIG_SRC_SUBDIR = arch cli mi compile tui unittests guile python target
|
CONFIG_SRC_SUBDIR = arch cli mi common compile tui unittests guile python target
|
||||||
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
|
CONFIG_DEP_SUBDIR = $(addsuffix /$(DEPDIR),$(CONFIG_SRC_SUBDIR))
|
||||||
|
|
||||||
# -I. for config files.
|
# -I. for config files.
|
||||||
@ -937,6 +937,31 @@ COMMON_SFILES = \
|
|||||||
cli-out.c \
|
cli-out.c \
|
||||||
coff-pe-read.c \
|
coff-pe-read.c \
|
||||||
coffread.c \
|
coffread.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/environ.c \
|
||||||
|
common/fileio.c \
|
||||||
|
common/filestuff.c \
|
||||||
|
common/format.c \
|
||||||
|
common/job-control.c \
|
||||||
|
common/gdb_tilde_expand.c \
|
||||||
|
common/gdb_vecs.c \
|
||||||
|
common/new-op.c \
|
||||||
|
common/print-utils.c \
|
||||||
|
common/ptid.c \
|
||||||
|
common/rsp-low.c \
|
||||||
|
common/run-time-clock.c \
|
||||||
|
common/signals.c \
|
||||||
|
common/signals-state-save-restore.c \
|
||||||
|
common/vec.c \
|
||||||
|
common/xml-utils.c \
|
||||||
complaints.c \
|
complaints.c \
|
||||||
completer.c \
|
completer.c \
|
||||||
continuations.c \
|
continuations.c \
|
||||||
@ -1119,31 +1144,6 @@ SFILES = \
|
|||||||
stub-termcap.c \
|
stub-termcap.c \
|
||||||
symfile-mem.c \
|
symfile-mem.c \
|
||||||
ui-file.h \
|
ui-file.h \
|
||||||
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/environ.c \
|
|
||||||
common/fileio.c \
|
|
||||||
common/filestuff.c \
|
|
||||||
common/format.c \
|
|
||||||
common/job-control.c \
|
|
||||||
common/gdb_tilde_expand.c \
|
|
||||||
common/gdb_vecs.c \
|
|
||||||
common/new-op.c \
|
|
||||||
common/print-utils.c \
|
|
||||||
common/ptid.c \
|
|
||||||
common/rsp-low.c \
|
|
||||||
common/run-time-clock.c \
|
|
||||||
common/signals.c \
|
|
||||||
common/signals-state-save-restore.c \
|
|
||||||
common/vec.c \
|
|
||||||
common/xml-utils.c \
|
|
||||||
mi/mi-common.c \
|
mi/mi-common.c \
|
||||||
$(SUBDIR_TARGET_SRCS) \
|
$(SUBDIR_TARGET_SRCS) \
|
||||||
$(COMMON_SFILES) \
|
$(COMMON_SFILES) \
|
||||||
@ -1533,35 +1533,10 @@ TAGFILES_NO_SRCDIR = $(SFILES) $(HFILES_NO_SRCDIR) $(ALLDEPFILES) \
|
|||||||
TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
|
TAGFILES_WITH_SRCDIR = $(HFILES_WITH_SRCDIR)
|
||||||
|
|
||||||
COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
|
COMMON_OBS = $(DEPFILES) $(CONFIG_OBS) $(YYOBJ) \
|
||||||
btrace-common.o \
|
|
||||||
buffer.o \
|
|
||||||
cleanups.o \
|
|
||||||
common-agent.o \
|
|
||||||
common-debug.o \
|
|
||||||
common-exceptions.o \
|
|
||||||
job-control.o \
|
|
||||||
common-regcache.o \
|
|
||||||
common-utils.o \
|
|
||||||
environ.o \
|
|
||||||
errors.o \
|
|
||||||
exec.o \
|
exec.o \
|
||||||
fileio.o \
|
|
||||||
filestuff.o \
|
|
||||||
format.o \
|
|
||||||
gdb_tilde_expand.o \
|
|
||||||
gdb_vecs.o \
|
|
||||||
mi/mi-common.o \
|
mi/mi-common.o \
|
||||||
new-op.o \
|
|
||||||
print-utils.o \
|
|
||||||
ptid.o \
|
|
||||||
rsp-low.o \
|
|
||||||
run-time-clock.o \
|
|
||||||
signals.o \
|
|
||||||
signals-state-save-restore.o \
|
|
||||||
vec.o \
|
|
||||||
version.o \
|
version.o \
|
||||||
xml-builtin.o \
|
xml-builtin.o \
|
||||||
xml-utils.o \
|
|
||||||
$(patsubst %.c,%.o,$(COMMON_SFILES)) \
|
$(patsubst %.c,%.o,$(COMMON_SFILES)) \
|
||||||
$(SUBDIR_TARGET_OBS) \
|
$(SUBDIR_TARGET_OBS) \
|
||||||
$(SUBDIR_GCC_COMPILE_OBS)
|
$(SUBDIR_GCC_COMPILE_OBS)
|
||||||
@ -1629,10 +1604,6 @@ $(CONFIG_DEP_SUBDIR):
|
|||||||
python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)
|
python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)
|
||||||
|
|
||||||
# Rules for compiling .c files in the various source subdirectories.
|
# Rules for compiling .c files in the various source subdirectories.
|
||||||
%.o: ${srcdir}/common/%.c
|
|
||||||
$(COMPILE) $<
|
|
||||||
$(POSTCOMPILE)
|
|
||||||
|
|
||||||
%.o: $(srcdir)/gdbtk/generic/%.c
|
%.o: $(srcdir)/gdbtk/generic/%.c
|
||||||
$(COMPILE) $(all_gdbtk_cflags) $<
|
$(COMPILE) $(all_gdbtk_cflags) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
@ -1641,12 +1612,6 @@ python/%.o: INTERNAL_CFLAGS += $(PYTHON_CFLAGS)
|
|||||||
$(COMPILE) $<
|
$(COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
# Specify an explicit rule for gdb/common/agent.c, to avoid a clash with the
|
|
||||||
# object file generate by gdb/agent.c.
|
|
||||||
common-agent.o: $(srcdir)/common/agent.c
|
|
||||||
$(COMPILE) $(srcdir)/common/agent.c
|
|
||||||
$(POSTCOMPILE)
|
|
||||||
|
|
||||||
installcheck:
|
installcheck:
|
||||||
|
|
||||||
# The check target can not use subdir_do, because subdir_do does not
|
# The check target can not use subdir_do, because subdir_do does not
|
||||||
|
@ -27,10 +27,10 @@
|
|||||||
|
|
||||||
case "${host}" in
|
case "${host}" in
|
||||||
|
|
||||||
*-mingw*) common_host_obs=mingw-strerror.o
|
*-mingw*) common_host_obs=common/mingw-strerror.o
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
common_host_obs=posix-strerror.o
|
common_host_obs=common/posix-strerror.o
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
2
gdb/configure
vendored
2
gdb/configure
vendored
@ -17661,7 +17661,7 @@ if $development; then
|
|||||||
|
|
||||||
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
|
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
|
||||||
|
|
||||||
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) selftest.o selftest-arch.o"
|
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
|
||||||
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
|
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -2299,7 +2299,7 @@ AC_DEFINE(GDB_DEFAULT_HOST_CHARSET, "UTF-8",
|
|||||||
if $development; then
|
if $development; then
|
||||||
AC_DEFINE(GDB_SELF_TEST, 1,
|
AC_DEFINE(GDB_SELF_TEST, 1,
|
||||||
[Define if self-testing features should be enabled])
|
[Define if self-testing features should be enabled])
|
||||||
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) selftest.o selftest-arch.o"
|
CONFIG_OBS="$CONFIG_OBS \$(SUBDIR_UNITTESTS_OBS) common/selftest.o selftest-arch.o"
|
||||||
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
|
CONFIG_SRCS="$CONFIG_SRCS \$(SUBDIR_UNITTESTS_SRCS) common/selftest.c selftest-arch.c"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1,3 +1,9 @@
|
|||||||
|
2018-02-19 Alan Hayward <alan.hayward@arm.com>
|
||||||
|
|
||||||
|
* Makefile.in: Add common directory in build.
|
||||||
|
* configure.ac: Add common reference.
|
||||||
|
* configure: Regenerate.
|
||||||
|
|
||||||
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
2018-02-09 Markus Metzger <markus.t.metzger@intel.com>
|
||||||
|
|
||||||
* linux-low.c (linux_target_ops): Remove linux_supports_btrace.
|
* linux-low.c (linux_target_ops): Remove linux_supports_btrace.
|
||||||
|
@ -231,48 +231,48 @@ SOURCES = $(SFILES)
|
|||||||
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
|
TAGFILES = $(SOURCES) ${HFILES} ${ALLPARAM} ${POSSLIBS}
|
||||||
|
|
||||||
OBS = \
|
OBS = \
|
||||||
agent.o \
|
|
||||||
ax.o \
|
ax.o \
|
||||||
btrace-common.o \
|
common/agent.o \
|
||||||
buffer.o \
|
common/btrace-common.o \
|
||||||
cleanups.o \
|
common/buffer.o \
|
||||||
common-debug.o \
|
common/cleanups.o \
|
||||||
common-exceptions.o \
|
common/common-debug.o \
|
||||||
job-control.o \
|
common/common-exceptions.o \
|
||||||
common-regcache.o \
|
common/job-control.o \
|
||||||
common-utils.o \
|
common/common-regcache.o \
|
||||||
|
common/common-utils.o \
|
||||||
|
common/errors.o \
|
||||||
|
common/environ.o \
|
||||||
|
common/fileio.o \
|
||||||
|
common/filestuff.o \
|
||||||
|
common/format.o \
|
||||||
|
common/gdb_tilde_expand.o \
|
||||||
|
common/gdb_vecs.o \
|
||||||
|
common/new-op.o \
|
||||||
|
common/print-utils.o \
|
||||||
|
common/ptid.o \
|
||||||
|
common/rsp-low.o \
|
||||||
|
common/signals.o \
|
||||||
|
common/signals-state-save-restore.o \
|
||||||
|
common/vec.o \
|
||||||
|
common/xml-utils.o \
|
||||||
debug.o \
|
debug.o \
|
||||||
dll.o \
|
dll.o \
|
||||||
errors.o \
|
|
||||||
environ.o \
|
|
||||||
event-loop.o \
|
event-loop.o \
|
||||||
fileio.o \
|
|
||||||
filestuff.o \
|
|
||||||
format.o \
|
|
||||||
gdb_tilde_expand.o \
|
|
||||||
gdb_vecs.o \
|
|
||||||
hostio.o \
|
hostio.o \
|
||||||
inferiors.o \
|
inferiors.o \
|
||||||
mem-break.o \
|
mem-break.o \
|
||||||
new-op.o \
|
|
||||||
notif.o \
|
notif.o \
|
||||||
print-utils.o \
|
|
||||||
ptid.o \
|
|
||||||
regcache.o \
|
regcache.o \
|
||||||
remote-utils.o \
|
remote-utils.o \
|
||||||
rsp-low.o \
|
|
||||||
server.o \
|
server.o \
|
||||||
signals.o \
|
|
||||||
signals-state-save-restore.o \
|
|
||||||
symbol.o \
|
symbol.o \
|
||||||
target.o \
|
target.o \
|
||||||
tdesc.o \
|
tdesc.o \
|
||||||
tracepoint.o \
|
tracepoint.o \
|
||||||
utils.o \
|
utils.o \
|
||||||
vec.o \
|
|
||||||
version.o \
|
version.o \
|
||||||
waitstatus.o \
|
waitstatus.o \
|
||||||
xml-utils.o \
|
|
||||||
$(DEPFILES) \
|
$(DEPFILES) \
|
||||||
$(LIBOBJS) \
|
$(LIBOBJS) \
|
||||||
$(XML_BUILTIN)
|
$(XML_BUILTIN)
|
||||||
@ -392,17 +392,17 @@ gdbreplay$(EXEEXT): $(GDBREPLAY_OBS) $(LIBGNU) $(LIBIBERTY)
|
|||||||
|
|
||||||
IPA_OBJS = \
|
IPA_OBJS = \
|
||||||
ax-ipa.o \
|
ax-ipa.o \
|
||||||
common-utils-ipa.o \
|
common/common-utils-ipa.o \
|
||||||
errors-ipa.o \
|
common/errors-ipa.o \
|
||||||
format-ipa.o \
|
common/format-ipa.o \
|
||||||
print-utils-ipa.o \
|
common/print-utils-ipa.o \
|
||||||
|
common/rsp-low-ipa.o \
|
||||||
|
common/vec-ipa.o \
|
||||||
regcache-ipa.o \
|
regcache-ipa.o \
|
||||||
remote-utils-ipa.o \
|
remote-utils-ipa.o \
|
||||||
rsp-low-ipa.o \
|
|
||||||
tdesc-ipa.o \
|
tdesc-ipa.o \
|
||||||
tracepoint-ipa.o \
|
tracepoint-ipa.o \
|
||||||
utils-ipa.o \
|
utils-ipa.o \
|
||||||
vec-ipa.o \
|
|
||||||
${IPA_DEPFILES}
|
${IPA_DEPFILES}
|
||||||
|
|
||||||
IPA_LIB = libinproctrace.so
|
IPA_LIB = libinproctrace.so
|
||||||
@ -562,7 +562,7 @@ arch/%.o: ../arch/%.c
|
|||||||
$(IPAGENT_COMPILE) $<
|
$(IPAGENT_COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
%-ipa.o: ../common/%.c
|
common/%-ipa.o: ../common/%.c
|
||||||
$(IPAGENT_COMPILE) $<
|
$(IPAGENT_COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
@ -580,7 +580,7 @@ arch/%-ipa.o: ../arch/%.c
|
|||||||
$(COMPILE) $<
|
$(COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
%.o: ../common/%.c
|
common/%.o: ../common/%.c
|
||||||
$(COMPILE) $<
|
$(COMPILE) $<
|
||||||
$(POSTCOMPILE)
|
$(POSTCOMPILE)
|
||||||
|
|
||||||
|
4
gdb/gdbserver/configure
vendored
4
gdb/gdbserver/configure
vendored
@ -5815,7 +5815,7 @@ fi
|
|||||||
|
|
||||||
|
|
||||||
if $development; then
|
if $development; then
|
||||||
srv_selftest_objs="selftest.o"
|
srv_selftest_objs="common/selftest.o"
|
||||||
|
|
||||||
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
|
$as_echo "#define GDB_SELF_TEST 1" >>confdefs.h
|
||||||
|
|
||||||
@ -5858,7 +5858,7 @@ ac_config_commands="$ac_config_commands depdir"
|
|||||||
|
|
||||||
|
|
||||||
# Create sub-directories for objects and dependencies.
|
# Create sub-directories for objects and dependencies.
|
||||||
CONFIG_SRC_SUBDIR="arch"
|
CONFIG_SRC_SUBDIR="arch common"
|
||||||
|
|
||||||
|
|
||||||
ac_config_commands="$ac_config_commands gdbdepdir"
|
ac_config_commands="$ac_config_commands gdbdepdir"
|
||||||
|
@ -57,7 +57,7 @@ fi
|
|||||||
GDB_AC_LIBMCHECK(${libmcheck_default})
|
GDB_AC_LIBMCHECK(${libmcheck_default})
|
||||||
|
|
||||||
if $development; then
|
if $development; then
|
||||||
srv_selftest_objs="selftest.o"
|
srv_selftest_objs="common/selftest.o"
|
||||||
AC_DEFINE(GDB_SELF_TEST, 1,
|
AC_DEFINE(GDB_SELF_TEST, 1,
|
||||||
[Define if self-testing features should be enabled])
|
[Define if self-testing features should be enabled])
|
||||||
fi
|
fi
|
||||||
@ -69,7 +69,7 @@ ACX_NONCANONICAL_HOST
|
|||||||
ZW_CREATE_DEPDIR
|
ZW_CREATE_DEPDIR
|
||||||
|
|
||||||
# Create sub-directories for objects and dependencies.
|
# Create sub-directories for objects and dependencies.
|
||||||
CONFIG_SRC_SUBDIR="arch"
|
CONFIG_SRC_SUBDIR="arch common"
|
||||||
AC_SUBST(CONFIG_SRC_SUBDIR)
|
AC_SUBST(CONFIG_SRC_SUBDIR)
|
||||||
|
|
||||||
AC_CONFIG_COMMANDS([gdbdepdir],[
|
AC_CONFIG_COMMANDS([gdbdepdir],[
|
||||||
|
Reference in New Issue
Block a user